mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-13 00:10:53 +01:00
hosts_guard_migrate.sh 81/81 and hosts_guard_rollback.sh 65/65, both 100.00% through run_all.sh at --min 100, and check_shell_coverage.sh passes with each allowlist line already deleted. 82 assertions over 36 cases in three files sharing one harness: all four validate_requirements refusals, plugin installation, the mount-collapse loop in every arm (clears, fails, hits its 20-iteration bound, dry-run), per-instance migration for both the bind-mounted and the plugin flavour, and do_migrate's refusal to retire the legacy pacman hooks when nothing registered -- the arm that exists so a failed migration cannot leave the files with no unlock hook at all. INSTRUMENT FIX: rollback measured 97.01% with lines 69 and 108 uncovered, both `done <redirect>` closing a loop. Reproduced minimally: in a three-iteration loop ending `done >"$1"`, the body reports hits=3 and the `done` line hits=0, because bash attributes the redirected compound statement to the loop's OPENING line. That is the same defect _CLOSING_BRACE_OP already handles for `} |`, so _LOOP_END_OP is its twin. The redirect is required by the pattern: a bare `done` stays in the denominator, so genuinely uncovered loops are still caught. Audited as the instrument notes demand -- every newly excluded line printed with its text -- and it is exactly those two lines across all of fixes/lib. Acceptance pair unchanged and exact: dot_resolver_install.sh 39/39, rpi_nc_ca.sh 73/73. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| arch_desktop_harness.sh | ||
| arch_perf_harness.sh | ||
| arch_sysctl_quarantined_cases.sh | ||
| bt_harness.sh | ||
| hosts_guard_harness.sh | ||
| lib_test_core.sh | ||
| pacman_hook_stall_entry_harness.sh | ||
| pacman_hook_stall_harness.sh | ||
| run_all.sh | ||
| test_arch_cpu.sh | ||
| test_arch_hardware_boot.sh | ||
| test_arch_hardware.sh | ||
| test_arch_perf_fixes.sh | ||
| test_arch_perf_probes_health.sh | ||
| test_arch_perf_probes.sh | ||
| test_arch_perf_report_fixes.sh | ||
| test_arch_perf_report.sh | ||
| test_bt_adapter_reset.sh | ||
| test_bt_adapter.sh | ||
| test_bt_audio_connect.sh | ||
| test_bt_audio_health.sh | ||
| test_bt_audio.sh | ||
| test_bt_pairing_usb.sh | ||
| test_bt_pairing.sh | ||
| test_bt_report.sh | ||
| test_diagnose_pacman_hook_stall_args.sh | ||
| test_diagnose_pacman_hook_stall_timing.sh | ||
| test_hosts_guard_migrate_flow.sh | ||
| test_hosts_guard_migrate.sh | ||
| test_hosts_guard_rollback.sh | ||
| test_pacman_hook_stall_capture.sh | ||
| test_pacman_hook_stall_load.sh | ||
| test_pacman_hook_stall_setup.sh | ||
| test_pacman_hook_stall_summary.sh | ||
| test_pacman_hook_stall_usage.sh | ||
| test_pacman_hook_stall_watch.sh | ||
| test_thorium_repairs_deep.sh | ||
| test_thorium_repairs.sh | ||
| test_ubuntu_perf_more.sh | ||
| thorium_harness.sh | ||
| ubuntu_perf_harness.sh | ||