mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
various: reduce overuse of os.EINVAL + others
R=golang-dev, r CC=golang-dev https://golang.org/cl/5372081
This commit is contained in:
parent
7af553ab52
commit
fd34e78b53
15 changed files with 36 additions and 42 deletions
|
|
@ -7,7 +7,6 @@ package xml
|
|||
import (
|
||||
"bytes"
|
||||
"io"
|
||||
"os"
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
|
|
@ -205,7 +204,7 @@ func (d *downCaser) ReadByte() (c byte, err error) {
|
|||
|
||||
func (d *downCaser) Read(p []byte) (int, error) {
|
||||
d.t.Fatalf("unexpected Read call on downCaser reader")
|
||||
return 0, os.EINVAL
|
||||
panic("unreachable")
|
||||
}
|
||||
|
||||
func TestRawTokenAltEncoding(t *testing.T) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue