You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered this constellation while fixing https://github.com/rillig/gobco so that it can handle a mixture of black box and white box tests in the same directory.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?go version go1.19.4 windows/amd64
What did you do?
What did you expect to see?
file2.go:1:9: only test files may declare a package ending in '_test'
What did you see instead?
found packages pkgname (file1_test.go) and pkgname_test (file2.go)
That error message was confusing because
file1_test.go
does not declare the packagepkgname
.The documentation of
MultiplePackageError.Files
says:I discovered this constellation while fixing https://github.com/rillig/gobco so that it can handle a mixture of black box and white box tests in the same directory.
The text was updated successfully, but these errors were encountered: