Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Document codecov compare API line encoding (#2563)

Maximilian Roos7324b6f6d88e
diff --git a/CLAUDE.md b/CLAUDE.md
index 5929c7739..756f36fd0 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -296,6 +296,8 @@ cargo llvm-cov report --show-missing-lines | grep <file> # find uncovered line
For each uncovered function/method, either write a test or document why it's intentionally untested. Integration tests (via `assert_cmd_snapshot!`) do capture subprocess coverage.
+`cargo llvm-cov report --show-missing-lines` is the authoritative miss list — it matches codecov line-for-line. If codecov's compare API must be queried directly, `coverage.head` is a `LineType` enum: `0=hit`, `1=miss`, `2=partial`.
+
**Renames and moves:** File renames (`git mv`) can trigger codecov/patch failures on pre-existing uncovered lines — codecov treats changed lines in renamed files as part of the patch. If the uncovered lines are unchanged and existed before the rename, this is a false positive. Verify by checking coverage on `main` for the same lines under the old path.
### "N functions have mismatched data" Warning