docs(coverage): the floor rises to 95.45% core and 92.58% store
V-D2's tests (94 of them: 85 in ledger-core, 9 in ledger-store) take the core from 89.79% to 95.45% of lines (17,299 -> 18,391 of 19,267) and the store from 92.09% to 92.58% (14,301 -> 14,379 of 15,531), from the full `just coverage` run before and after on the same code and tools. The recorded floors, 90.01% and 91.71%, rise to the new totals; coverage-check reads them from the floor line of docs/coverage-floor.md and passes at exactly the new numbers. Per file: evidence.rs 33.85% -> 100%, conventions.rs 77.76% -> 97.24%, audit.rs 80.33% -> 94.14%, settings.rs 91.05% -> 98.16%, ledger.rs 86.00% -> 96.87%, reconcilable.rs 0% -> 100%. What is left is mostly arms no posted book reaches (a sum past Decimal's range; a line is capped at 1e15) and replay-only refusals. docs/testing.md gets V-D2's record: the tests by area and rule, the finding, what was not reached and the P12 mutation targets. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
11314db1f7
commit
1a25e66f23
2 files changed
+80
-4
No files matched your search
+32
-4
@@ -31,14 +31,42 @@ report drift down unnoticed.
|
||||
measurement movement; more means a test stopped reaching what it used
|
||||
to.
|
||||
|
||||
**Floor: `ledger-core` 90.01% lines, `ledger-store` 91.71% lines** (2026-11-08: the first measurement, from the full `just coverage` run; `ledger-core` 16,839 of 18,708 lines, `ledger-store` 14,255 of 15,543; 256-case properties everywhere, no special shard settings. The store measured 91.98% on an earlier run the same day; properties choose random cases, so a few tenths move between runs, which the 0.5 pp tolerance absorbs. The floor records the lower run.)
|
||||
**Floor: `ledger-core` 95.45% lines, `ledger-store` 92.58% lines** (2026-11-09: V-D2's tests, from the full `just coverage` run after them; `ledger-core` 18,391 of 19,267 lines, `ledger-store` 14,379 of 15,531; 256-case properties everywhere, no special shard settings. Properties choose random cases, so a few tenths move between runs, which the 0.5 pp tolerance absorbs. The floor records the run as measured; it only rises: the first floors, 90.01% and 91.71% (2026-11-08), are in the history below.)
|
||||
|
||||
| Crate | Lines | Regions | Branches | Lines (covered / total) | Measured |
|
||||
|---|---|---|---|---|---|
|
||||
| `ledger-core` | 90.01% | 88.86% | 82.65% | 16,839 / 18,708 | 2026-11-08 |
|
||||
| `ledger-store` | 91.71% | 85.27% | 80.73% | 14,255 / 15,543 | 2026-11-08 |
|
||||
| `ledger-core` | 95.45% | 93.06% | 88.90% | 18,391 / 19,267 | 2026-11-09 (V-D2) |
|
||||
| `ledger-store` | 92.58% | 85.98% | 81.72% | 14,379 / 15,531 | 2026-11-09 (V-D2) |
|
||||
| `ledger-core` | 90.01% | 88.86% | 82.65% | 16,839 / 18,708 | 2026-11-08 (first) |
|
||||
| `ledger-store` | 91.71% | 85.27% | 80.73% | 14,255 / 15,543 | 2026-11-08 (first) |
|
||||
|
||||
## First measurement: the fifteen files with the most uncovered lines
|
||||
## Second measurement: V-D2, tests where coverage was thinnest (2026-11-09)
|
||||
|
||||
The first measurement named its holes; V-D2 wrote the tests that reach
|
||||
them, each encoding the rule the code serves (the rule ids are in the
|
||||
commits and in `docs/testing.md`, "V-D2"). The run at the start of the
|
||||
unit, on the same code and tools, is the "before": the core had drifted to
|
||||
89.79% (the code had grown since 2026-11-08), the store to 92.09%.
|
||||
|
||||
| File | Lines before | Lines after | Branches before | Branches after |
|
||||
|---|---|---|---|---|
|
||||
| `ledger-core/src/evidence.rs` | 33.85% (129 of 195 missed) | 100.00% (0 missed) | 8.93% | 96.43% |
|
||||
| `ledger-core/src/conventions.rs` | 77.76% (145 of 652 missed) | 97.24% (18 missed) | 78.21% | 96.15% |
|
||||
| `ledger-core/src/audit.rs` | 80.33% (94 of 478 missed) | 94.14% (28 missed) | 61.36% | 84.09% |
|
||||
| `ledger-core/src/settings.rs` | 91.05% (117 of 1,307 missed) | 98.16% (24 missed) | 81.25% | 89.84% |
|
||||
| `ledger-core/src/ledger.rs` | 86.00% (862 of 6,158 missed) | 96.87% (193 missed) | 80.38% | 91.32% |
|
||||
| `ledger-store/src/reconcilable.rs` | 0.00% (76 of 76 missed) | 100.00% (0 of 78 missed) | 0.00% | 100.00% |
|
||||
| `ledger-core` total | 89.79% (17,299 of 19,267) | 95.45% (18,391 of 19,267) | 82.26% | 88.90% |
|
||||
| `ledger-store` total | 92.09% (14,301 of 15,529) | 92.58% (14,379 of 15,531) | 80.92% | 81.72% |
|
||||
|
||||
What is left in the core is mostly arms no posted book reaches: a sum past
|
||||
exact arithmetic in the audit's equation, control and register checks (a
|
||||
journal line is capped at 1e15, so no realistic sum overflows `Decimal`),
|
||||
and the defensive arms of `ledger.rs` (about 190 lines of scattered
|
||||
replay-only and overflow refusals). `reconcilable.rs` gained two lines
|
||||
because the fix to the digest's account order (its own commit) added them.
|
||||
|
||||
## First measurement: the fifteen files with the most uncovered lines (2026-11-08)
|
||||
|
||||
| File | Lines | Regions | Branches | Uncovered lines |
|
||||
|---|---|---|---|---|
|
||||
|
||||
Reference in new issue
Block a user