Expand description
Go project discovery: what Supercov measures, and what it deliberately does not.
Go settles two questions other languages leave ambiguous. A test file is
exactly one ending in _test.go — the toolchain enforces it, so there is no
heuristic to get wrong. And vendor/ and testdata/ have meanings fixed by
the toolchain: vendored code is someone else’s, and the compiler ignores
testdata entirely, so measuring either would put obligations on code this
project’s tests were never meant to exercise.
Structs§
Functions§
- discover_
go_ files - go_
integrity_ inputs - Integrity inputs: sources and tests are hashed separately, dependency and configuration files identify the environment, and the test command identifies execution.
- is_
test_ file - A Go test file is exactly one whose name ends
_test.go. The toolchain enforces this, so unlike every other language there is no guessing here. - module_
path - The module path declared in
go.mod, which package identities are relative to. - prepare_
go_ project - test_
packages - Package directories that hold at least one test file, which is the unit
go testactually runs. - workspace_
modules - The module directories a
go.workdeclares, relative to the workspace root and/-separated.