test(platform-runtime): cover Apple perf capture and runner transport branches
Summary
Burns down the five 0%-coverage CRAP findings from #3416 by testing the Apple branches through the perf-capture host and the Apple runner screen-recording transport entry points (xctrace start with template derivation and the no-identity reclaim, descriptor cleanup/reattach across every managed-process outcome, each malformed apple descriptor body at the decode boundary, and the live-session / stale-lease branches of local runner inspection). Two test files changed; no production code or exports changed.
| Function | Before | After |
|---|---|---|
perf-capture-host.ts:388 isApplePerfCapture | 72 | 8 |
perf-capture-host.ts:208 cleanupApplePerfCaptureDescriptor | 56 | 7 |
perf-capture-host.ts:56 startApplePerfCapture | 42 | 6 |
perf-capture-host.ts:226 inspectApplePerfCaptureDescriptor | 30 | 5 |
screen-recording-apple-runner-transport.ts:142 inspectLocalRunner | 90 | 9 |
Validation
Tested SHA 51a320b3f. pnpm check:affected --run passes (lint, typecheck, fallow audit, related tests). pnpm check:coverage-crap --all on a coverage map limited to the two owned files reports no function at or above 30 (after-scores above; each equals its CC at ~full coverage).