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 |
||
|---|---|---|
| .. | ||
| lib | ||
| __init__.py | ||
| conftest.py | ||
| test_android_guardian_post_fs_data.sh | ||
| test_android_guardian_service.sh | ||
| test_fast_count.py | ||
| test_hosts_file_monitor.sh | ||
| test_hosts_guard_pacman_integration.sh | ||
| test_i3blocks_efficiency.sh | ||
| test_i3blocks_persist_common.sh | ||
| test_makepkg_capped.sh | ||
| test_makepkg_wrapper.sh | ||
| test_monitor_report.py | ||
| test_music_parallelism.sh | ||
| test_network_diagnostics.bats | ||
| test_pacman_wrapper_security.sh | ||
| test_security_hardening.sh | ||
| test_session_autopsy_hooks.py | ||
| test_setup_dns_blocker.sh | ||
| test_shutdown_timer_monitor.sh | ||
| test_strip_workout_hosts.py | ||
| test_usage_monitoring_installer_efficiency.sh | ||
| test_usage_report_atop_io.py | ||
| test_usage_report_format.py | ||
| test_usage_report_gpu_table.py | ||
| test_usage_report_host.py | ||
| test_usage_report_merge.py | ||
| test_usage_report_modes.py | ||
| test_usage_report_parse_records.py | ||
| test_usage_report_pmon_names.py | ||
| test_usage_report_render.py | ||
| test_usage_report_since.py | ||
| test_usage_report_tables.py | ||
| test_validate_contract.py | ||
| test_validate_evidence.py | ||