various: reduce overuse of os.EINVAL + others

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5372081
This commit is contained in:
Russ Cox 2011-11-13 22:42:42 -05:00
parent 7af553ab52
commit fd34e78b53
15 changed files with 36 additions and 42 deletions

View file

@ -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) {