aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-06 12:19:44 -0500
committerCraig Jennings <c@cjennings.net>2026-06-06 12:19:44 -0500
commit8d7a988feb84cd42344afc9eec43f53a3e4d20c3 (patch)
treec71d45d75e0185ecb6941c35c28005ea105dec1b /docs
parent0930ec3c259d93a68fc59854677cdc7fef634e71 (diff)
downloadduet-8d7a988feb84cd42344afc9eec43f53a3e4d20c3.tar.gz
duet-8d7a988feb84cd42344afc9eec43f53a3e4d20c3.zip
test: cover the coverage-summary tooling
scripts/coverage-summary.el carries real JSON parsing and report-formatting logic, but make coverage instruments only duet.el, so the tool itself had no tests. This adds them, mirroring the pattern from the other package's suite: synthetic SimpleCov reports written to temp files, so the tests are pure and need no prior coverage run. The cases cover the normal percentage path, a fully covered file, a file with no executable lines, a multi-key union, basename-versus-path key matching, a tracked source absent from the report counting as 0%, missing and malformed JSON erroring as a user-error, and the formatted summary text. There is no new target. The test file requires the script and runs under make test like every other suite, holding the tooling to the same bar as the package.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions