Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 1.15 KB

README.rst

File metadata and controls

31 lines (25 loc) · 1.15 KB

nogo test with coverage

Tests to ensure that nogo works with coverage.

coverage_cgo_test

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.

coverage_test

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.

gen_code_test

Checks how nogo should not run on source code that was generated as part of rules_go's coverage implementation.