Skip to content

refactor: reduce duplication and increase test coverage#58

Merged
ericodx merged 2 commits intomainfrom
increase-coverage
Apr 8, 2026
Merged

refactor: reduce duplication and increase test coverage#58
ericodx merged 2 commits intomainfrom
increase-coverage

Conversation

@ericodx
Copy link
Copy Markdown
Owner

@ericodx ericodx commented Apr 8, 2026

Summary

  • Extract recordResult in TestExecutionStage to eliminate duplicated result-handling logic between run and runSPM
  • Add test for TestFilesHasher external symlink fallback path (line 20)

Type of Change

  • refactor: A code change that neither fixes a bug nor adds a feature.
  • test: Addition or correction of tests.

Invariants Checklist

  • Original project is never modified — all mutations happen inside an isolated sandbox
  • xcodebuild build-for-testing runs exactly once for all schematizable mutants
  • No mutant results are lost or duplicated
  • Mutant positions (file, line, column) are accurate in all reported results
  • A cancelled task never leaves a simulator slot permanently acquired from the pool
  • schematizedContent never contains the __swiftMutationTestingID global declaration
  • Swift 6 Strict Concurrency compatible
  • Pipeline stages remain stateless pure transformations

Pipeline Impact

Which stages are affected?

  • TestExecutionStage

Testing

  • Unit tests added or updated
  • Tests use mock ProcessLaunching — no real xcodebuild, xcrun simctl, or xcresulttool
  • Tests use FileHelpers for any filesystem interaction (temp directories only)
  • All tests pass locally (swift test)

@ericodx ericodx self-assigned this Apr 8, 2026
@ericodx ericodx changed the title Increase coverage refactor: reduce duplication and increase test coverage Apr 8, 2026
@ericodx ericodx added refactor Code change that neither fixes a bug nor adds a feature test Addition or correction of tests labels Apr 8, 2026
@ericodx ericodx merged commit 3271825 into main Apr 8, 2026
@ericodx ericodx deleted the increase-coverage branch April 8, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code change that neither fixes a bug nor adds a feature test Addition or correction of tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant