Status: New
Owner: ----
New issue 9212 by
mi...@google.com: go.tools/cmd/cover: 'GoCover_0
redeclared in this block' error with SWIG example
https://code.google.com/p/go/issues/detail?id=9212
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
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings