cmd/cover: go test coverprofile wrong path at panic backtrace #20909
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.8.3 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
i make a simpe code to reproduce
file
i.go
file
sample_test.go
What did you expect to see?
if i run this test without coverage i have normal panic backtrace
What did you see instead?
but if i run this test with coverprofile i have
So from this backtrace i can't undestand the line of code where panic was throw.
As i can undestand this path
github.com/minaevmike/sample/ss/_test/_obj_test/i.go:12
is relative path to/tmp/go-build*
dir. But it's impossible to detect the right folder. And this only happens when i run go test with coverprofileThe text was updated successfully, but these errors were encountered: