Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: merge coverage profiles from subprocesses #28235
According to this snippet,
That seems counterproductive when we're collecting coverage from a test that runs a binary multiple times (such as the tests for
Instead, I suspect that we should use OS-level file locking so that we can merge coverage from multiple invocations.
If we do that, I'm not entirely sure when we should remove the previous profile, though.