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
cmd/cover: clarify the format of cover profile generated with go test -coverprofile #40251
Processing the coverage profile generated from
The profile looks like
and the first element of each item (link) is often called FileName, but this is not the true file name.
Code here determines what this is. It is either the import path and the base file name, or the absolute path (isn't it platform dependent?)
This detail is hidden deep in the source code. We need to document this.