On the pull request
Diff coverage, not just a total
gocov fetches the pull request's diff from your forge and checks every changed line against the report. The question a reviewer has — of the lines this change touches, how many are tested? — gets a number and a list.
- One comment per pull request, updated in place on every push
- A
coverage: X% (±Y%)status on every commit - GitHub: a check run with annotations in Files changed
- Bitbucket: a Code Insights report with annotations in the diff
- GitLab: the comment as a merge request note
gocov report for 9f31c2ab7e5d
- Total coverage: 84.2% (+0.6%)
- Gate: passed
- Diff coverage: 91.7% (110/120 changed lines covered)
Uncovered changed lines:
| File | Lines |
|---|---|
src/billing/invoice.ts | 87-89, 112-115 |
src/billing/refund.ts | 41, 56-57 |
Full report