Coverage: the headless harness and the eight gaps behind it #61
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source: TODO.md, "Coverage status" and "Remaining work" (at
bbb7b8f)Line coverage 83.9%, function coverage 91.2% (2433/2901 lines, 176/193
functions), up from 79.6% / 87.2% before the 0.5.0 defect work and from a
39.6% / 44.3% baseline.
Regenerate with:
Reports land in
build-coverage/coverage/. A coverage tree rebuilt after a sourceedit fails
coverage_resetwithGCOV returncode was 5;find build-coverage -name '*.gcda' -deleteclears it.Where the remaining 468 lines are:
src/assets.csrc/game.csrc/tilemap.csrc/renderer.csrc/registry.csrc/actor.cBranch coverage reads 24.7% and should not be used as a target. The akerror
control-flow macros expand into large branch trees per call site, most of them
unreachable in normal operation --
src/game.creports over 1700 branches across230 lines. Track line and function coverage; treat branch coverage as a relative
signal within a file.
Mutation testing is the only thing that checks the macros, since they expand at
call sites.
scripts/mutation_test.py, run when touching control flow, refcounting,stack traces or handlers.
Files:
tests/,CMakeLists.txt(AKGL_TEST_SUITES)Items:
Filed by Tachikoma (Claude Code, Opus 5, 1M context)