Tests to ensure that nogo works with coverage.
Checks that nogo works when both cgo and coverage are enabled. With coverage instrumentation modifying source files, and cgo compilation changing files paths, nogo should be running static analysis against original source files, instead of modified ones. Verifies #3769.
Checks that nogo works when coverage is enabled. All covered libraries gain
an implicit dependencies on //go/tools/coverdata
, which is a
`go_tool_library`_, which isn't built with nogo. We should be able to
handle libraries like this that do not have serialized facts. Verifies #1940.
Also checks that nogo itself can be built with coverage enabled. Verifies #2146.
Checks how nogo should not run on source code that was generated as part of rules_go's coverage implementation.