test(android,harmonyos,linux,provision-kit): cover boot-failure and toolchain probe branches

Merged
TH
2mo ago
+400-3

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:

FunctionBeforeAfter
emulator-lifecycle.ts normalizedAndroidBootFailureReason30.05.0
emulator-lifecycle.ts buildAndroidBootFailureDetails30.05.0
emulator-lifecycle.ts buildAndroidBootError30.05.1
doctor.ts probeAndroidReverse30.05.0
boot-diagnostics.ts bootFailureHint35.810.0
hdc.ts ensureHarmonyToolchainPathConfigured56.07.0
snapshot.ts rectArea30.05.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.