mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-10 21:27:02 +01:00
36 tests, no production change - the module is byte-identical to HEAD. Lands separately from the split that follows, because tests written in the same commit as a split are written against the post-split shape. This one mattered more than the last: the uncovered 61% was almost exactly the code a split would extract - the subprocess plumbing and the native atop_agg path. Splitting that first would have proved nothing. _atop_agg_binary had no tests at all; all five outcomes are now covered (fresh cache, no compiler, make raising, make exiting 0 with no binary, successful build + chmod). The fresh-cache test asserts by installing a subprocess.run that fails if called. Every subprocess is faked - no test spawns atop, make or cc. Also covers _run's two error paths, _iter_atop_lines with and without a stdout pipe, the native N/W TSV rows including malformed ones, _parse_name's six paths, _parse_prm, _window_from_epochs' median interval, _fold_pid_aggregates, and aggregate_atop end to end. 219 stmts / 62 branches, 0 missed. Directory: 143 -> 179 passing. No suppressions - two mypy exit-return findings were fixed by typing the fakes' __exit__ as None rather than silencing them. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011w2Pj4Ek3ZNMQVYcFHgXDY |
||
|---|---|---|
| .. | ||
| explanations | ||
| superpowers | ||
| app-split-recipes.md | ||
| device-owner-wipe-checklist.md | ||
| dns-filtering-parked.md | ||
| mcp-shortlist.html | ||
| python-split-recipes.md | ||
| shared-checkout-safety.md | ||
| shell-split-harness.md | ||
| shell-split-recipes.md | ||
| shell-split-verification.md | ||
| syncyomi-restore-runbook.md | ||