• Home
Name Date Size #Lines LOC

..--

BUILD.bazelD04-Jul-2025234 129

README.rstD04-Jul-2025806 2418

coverage_test.goD04-Jul-20251.7 KiB6643

gen_code_test.goD04-Jul-20253.2 KiB13195

README.rst

1nogo test with coverage
2=======================
3
4.. _nogo: /go/nogo.rst
5.. _#1940: https://github.com/bazelbuild/rules_go/issues/1940
6.. _#2146: https://github.com/bazelbuild/rules_go/issues/2146
7
8Tests to ensure that `nogo`_ works with coverage.
9
10coverage_test
11-------------
12Checks that `nogo`_ works when coverage is enabled. All covered libraries gain
13an implicit dependencies on ``//go/tools/coverdata``, which is a
14`go_tool_library`_, which isn't built with `nogo`_. We should be able to
15handle libraries like this that do not have serialized facts. Verifies `#1940`_.
16
17Also checks that `nogo`_ itself can be built with coverage enabled.
18Verifies `#2146`_.
19
20gen_code_test
21-------------
22Checks how `nogo`_ should not run on source code that was generated as part of
23rules_go's coverage implementation.
24