refactor(move): split RunnerTests+CommandExecution.swift along command families

Merged
TH
2mo ago
+2041-1986

Summary

Closes #2792. Stacked on #2854.

Pure move: RunnerTests+CommandExecution.swift (1,985 lines after #2854) is split by moving whole declarations along command families:

  • CommandDispatch (620): dispatch entry, recovery loop, target preparation, recorded-failure conversion
  • CommandExecution (638): the prepared-command switch
  • GestureExecution (165)
  • ScrollDragExecution (287)
  • TypeExecution (142)
  • SnapshotExecution (151)

The tests split the same way. The dispatch recovery test follows executeDispatchedWithRecovery into CommandDispatchTests. The shared helpers move beside what they drive: execute(command:) goes to TransportTests and runnerCommandFixture to ModelsTests. The split widens 12 declarations from private to internal, each read from another file. Every #if guard is kept. 15 files.

git diff -M90% --stat refactor/2792-move-runner-inline-tests...HEAD: 15 files, +2041/āˆ’1986. A removed-vs-added line multiset differs only in private→internal, the per-file import/extension RunnerTests { headers, and the iOS stub block split between two test files under the same guard.

Validation

Tested at e9a7193a7 (tree-identical to the originally tested fe30c8f65):

  • macOS host lane, signed: 233 tests, 0 failures before (base 60e533284) and 233, 0 failures after.
  • pnpm check:xctest-selection: host 233, iOS PR list 103, nightly 280, green.
  • pnpm check:packaged-runner-swift: green.
  • pnpm check:affected --run: all runnable checks passed.
  • iOS simulator build-for-testing, with and without the unit-test flag: succeeded.
  • Declared func test names: 285 before and after.

An adversarial fresh-context review found no functional issues: bodies, guards, lane reach, and widenings were confirmed, and every file is under 1,000 lines. The three stale comments it found are fixed in #2854.

šŸ¤– Generated with Claude Code