Documentation
¶
Overview ¶
Package evidence resolves the evidence references that documents in this repository cite, so a checker can fail when a cited test, CI job or file no longer exists. It is shared by tools/threatmodelcheck (docs/threat-model.md) and tools/checklistcheck (docs/release/v1-checklist.md).
References are backticked in the documents and carry a kind prefix:
- `test:<dir>.<Func>`: a test function named <Func> with the signature go test runs (func TestX(t *testing.T), FuzzX(f *testing.F), BenchmarkX(b *testing.B) or ExampleX()) in a *_test.go file directly in <dir> (repo-relative, forward slashes). Any build tag counts (e2e, benchmark, an OS) except one that no build can satisfy, such as //go:build ignore: go test never runs such a file;
- `job:<workflow>/<job id>`: a job id under jobs: in .github/workflows/<workflow>;
- `file:<path>`: a repo-relative file or directory.
Index ¶
Constants ¶
const Workflows = ".github/workflows"
Workflows is the directory of the GitHub Actions workflows, relative to the root.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver resolves references against one repository root, caching parsed workflows.
func (*Resolver) Jobs ¶
Jobs returns the job ids of one workflow file name, or nil when it cannot be read or has no jobs.