test(android,harmonyos,linux,provision-kit): cover boot-failure and toolchain probe branches
Summary
Covers the coverage-based CRAP findings from #3419 (part of #3414) by testing each function through its package's existing public seam — no production exports or test-only DI. Before → after CRAP:
| Function | Before | After |
|---|---|---|
emulator-lifecycle.ts normalizedAndroidBootFailureReason | 30.0 | 5.0 |
emulator-lifecycle.ts buildAndroidBootFailureDetails | 30.0 | 5.0 |
emulator-lifecycle.ts buildAndroidBootError | 30.0 | 5.1 |
doctor.ts probeAndroidReverse | 30.0 | 5.0 |
boot-diagnostics.ts bootFailureHint | 35.8 | 10.0 |
hdc.ts ensureHarmonyToolchainPathConfigured | 56.0 | 7.0 |
snapshot.ts rectArea | 30.0 | 5.0 |
Also clears the same file's matches comparator (30.0 → 5.0) via the readLinuxTextAtPoint entry point. Boot failures exercise waitForAndroidBoot with the package's mocked adb executor; HarmonyOS PATH wiring uses a real temp toolchain layout through isExecutablePath.
Closes #3419
Validation
Head 84700ba61. pnpm check:affected --run passes (all runnable checks, 56 related tests). pnpm check:coverage-crap --all on a coverage run of the owned files reports "no function(s) at or above 30". pnpm typecheck, pnpm format clean; fallow audit finds no issues in the 5 changed files.