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: go test -c -cover runtime fails #10270
The problem is that cover strips all comments, including important //go:noescape/nosplit/linkname comments that affect behavior. We have such comments in runtime, bytes, crypto/md5, syscall and maybe other packages.
cover must not strip these comments.
FWIW, here is a patch that works for me: