Skip to content

bufio: can't TestReaderSize #45373

@awmorgan

Description

@awmorgan

What version of Go are you using (go version)?

$ go version
go version go1.16.3 darwin/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/billmorgan/Library/Caches/go-build"
GOENV="/Users/billmorgan/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/billmorgan/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/billmorgan/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.16.3"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Volumes/git/go/src/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/rp/fpc8t1293dn1r6jycrqn0hlw0000gn/T/go-build2935965998=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I Cloned the repo. checked out release-branch.go1.16. cd'd to src/bufio and tried to run: go test -run TestReaderSize

What did you expect to see?

test passed

What did you see instead?

/Volumes/git/go/src/bufio (release-branch.go1.16)$ go version
go version go1.16.3 darwin/amd64
/Volumes/git/go/src/bufio (release-branch.go1.16)$ git log -1 --pretty=format:"%h %an %ad"
9baddd3f21 Dmitri Shuralyov Thu Apr 1 11:28:29 2021 -0400
/Volumes/git/go/src/bufio (release-branch.go1.16)$ go test -run TestReaderSize
# std/bufio_test [std/bufio.test]
./bufio_test.go:1456:41: undefined: DefaultBufSize
./bufio_test.go:1465:41: undefined: DefaultBufSize
./scan_test.go:23:6: undefined: IsSpace
./scan_test.go:193:3: s.MaxTokenSize undefined (type *bufio.Scanner has no field or method MaxTokenSize)
./scan_test.go:229:3: s.MaxTokenSize undefined (type *bufio.Scanner has no field or method MaxTokenSize)
./scan_test.go:353:8: s.ErrOrEOF undefined (type *bufio.Scanner has no field or method ErrOrEOF)
./scan_test.go:408:9: scanner.MaxTokenSize undefined (type *bufio.Scanner has no field or method MaxTokenSize)
FAIL    std/bufio [build failed]
/Volumes/git/go/src/bufio (release-branch.go1.16)$ 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions