Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/cover: 'GoCover_0 redeclared in this block' error with SWIG example #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