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
What does 'go version' print?
Tested under these versions:
go version go1.3.3 linux/amd64
go version go1.4rc2 linux/amd64
What steps reproduce the problem?
Run 'go test -coverprofile=coverage.out' for this example:
https://gist.github.com/michael-schaller/94a2ee39bde248c83742
What happened?
$ go test -coverprofile=coverage.out
# example
./example_test.go:8: undefined: NewExample
./example_test.go:9: undefined: DeleteExample
/tmp/go-build051079047/example/_test/_obj_test/example.go:12: GoCover_0 redeclared in
this block
previous declaration at $WORK/example/_test/_obj_test/example.go:12
FAIL example [build failed]
What should have happened instead?
Clean build as with 'go test -v' + coverage analysis.
Here is the 'go test -v' output:
$ go test -v
=== RUN TestExample
--- PASS: TestExample (0.00s)
PASS
ok example 0.002s
The text was updated successfully, but these errors were encountered:
mikioh
changed the title
go.tools/cmd/cover: 'GoCover_0 redeclared in this block' error with SWIG example
cmd/cover: 'GoCover_0 redeclared in this block' error with SWIG example
Jan 4, 2015
rsc
changed the title
cmd/cover: 'GoCover_0 redeclared in this block' error with SWIG example
x/tools/cmd/cover: 'GoCover_0 redeclared in this block' error with SWIG example
Apr 14, 2015
rsc
changed the title
x/tools/cmd/cover: 'GoCover_0 redeclared in this block' error with SWIG example
cmd/cover: 'GoCover_0 redeclared in this block' error with SWIG example
Nov 10, 2017
The text was updated successfully, but these errors were encountered: