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
Builds running both on LUCI and coordinator, for example this one.
What did you see happen?
...
# golang.org/x/text/encoding_test
# [golang.org/x/text/encoding_test]
encoding/example_test.go:19:1: ExampleDecodeWindows1252 refers to unknown identifier: DecodeWindows1252
...
# golang.org/x/text/collate_test
# [golang.org/x/text/collate_test]
collate/sort_test.go:15:1: ExampleCollator_Strings refers to unknown field or method: Collator.Strings
FAIL golang.org/x/text/collate [build failed]
? golang.org/x/text/collate/tools/colcmp [no test files]
FAIL golang.org/x/text/encoding [build failed]
...
# golang.org/x/text/feature/plural_test
# [golang.org/x/text/feature/plural_test]
feature/plural/example_test.go:13:1: ExampleSelect refers to unknown identifier: Select
FAIL golang.org/x/text/feature/plural [build failed]
What did you expect to see?
Expected successful build.
The cause is vet errors from declaration of Example test functions which do not obey the convention described by go help testfunc:
Godoc displays the body of ExampleXxx to demonstrate the use of the function, constant, or variable Xxx.
For example in x/text/encoding/example_test.go, the funtion ExampleDecodeWindows1252 is declared, but there's no corresponding identifier DecodeWindows1252 declared in the package. A simple way to fix the error would be to rename ExampleDecodeWindows1252 to Example_decodeWindows1252.
Go version
gotip on all platforms
Output of
go env
in your module/workspace:What did you do?
Builds running both on LUCI and coordinator, for example this one.
What did you see happen?
What did you expect to see?
Expected successful build.
The cause is vet errors from declaration of Example test functions which do not obey the convention described by
go help testfunc
:For example in
x/text/encoding/example_test.go
, the funtionExampleDecodeWindows1252
is declared, but there's no corresponding identifierDecodeWindows1252
declared in the package. A simple way to fix the error would be to renameExampleDecodeWindows1252
toExample_decodeWindows1252
.This is similar to issue #68839
The text was updated successfully, but these errors were encountered: