Repository navigation
refactor(daily): move DailyHub test-only seams off the shipping UI surface - #907
Merged
Merged
Conversation
…rface The DailyHub view models exposed test-only API on the shipping SudokuUI/ MinesweeperUI product surface (setPhase2PendingForTesting, setStateForTesting, setWeekStripForTesting, plus internal(set)/public widenings), accreted across #842/#878/#882/#886 to drive snapshot fixtures without bootstrap(). Every consumer is an in-package test target (or GameTestSupportKit) using @testable import, so the lightest mechanism suffices: demote all seams to internal — no @_spi, no new target. MS's inline seams move to a new MinesweeperDailyHubViewModel+Testing.swift mirroring Sudoku's +Testing.swift shape; doc comments travel with them. A normal import SudokuUI / import MinesweeperUI now sees zero test seams. Verified: SudokuKit --filter DailyHub 68 + Snapshot 4, MinesweeperKit --no-parallel 361, GameTestSupportKit 3 all green; swiftlint --strict 0 violations on the 4 touched files. Dual CR: APPROVE x2, no blocking findings. Closes #905 Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Demotes the DailyHub test-only seams (
setPhase2PendingForTesting,setStateForTesting,setWeekStripForTesting, and the related access widenings) frompublictointernalon SudokuUI/MinesweeperUI, and extracts MS's inline seams toMinesweeperDailyHubViewModel+Testing.swiftmirroring Sudoku's+Testing.swiftshape.Why
These seams (accreted across #842/#878/#882/#886 for snapshot fixtures) were test scaffolding on the shipping product surface. Consumer inventory showed every caller is an in-package test target (or GameTestSupportKit) using
@testable import, so plaininternalis sufficient — no@_spi, no new target. A normalimport SudokuUI/import MinesweeperUInow sees zero test seams.Verification
--filter DailyHub68 +--filter Snapshot4 pass--no-parallel361 pass; GameTestSupportKit 3 passswiftlint --strict0 violations on the 4 touched filesCloses #905
🤖 Generated with Claude Code