Documentation
¶
Overview ¶
Package annotations emits CI-native annotation lines from test and coverage reports, enabling inline PR comments and pipeline summaries.
GitHub Actions ::error file=…,line=…,title=…::message GitLab CI ANSI-coloured lines to stdout
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteCovAnnotations ¶
WriteCovAnnotations emits one warning per file whose line coverage is below threshold, sorted worst-first, plus a summary error if overall is below too.
Types ¶
type Platform ¶
type Platform string
Platform selects the annotation syntax.
const ( // GitHub is the annotation platform identifier for GitHub Actions. GitHub Platform = "github" // GitLab is the annotation platform identifier for GitLab CI. GitLab Platform = "gitlab" // Azure is the annotation platform identifier for Azure DevOps. Azure Platform = "azure" // Auto detects from $GITHUB_ACTIONS / $GITLAB_CI / $TF_BUILD; falls back to GitHub format. Auto Platform = "auto" )
Click to show internal directories.
Click to hide internal directories.