mirror of
https://github.com/kuhyx/screen-locker.git
synced 2026-11-26 10:57:13 +01:00
The file's four post-`main()` declarations were the blocker: FailingSyncService, OkSyncService, HangingSyncService and CountingSyncService all `extends WorkoutSyncService` and override `syncNow`. They moved to _home_test_fixtures.dart together with the `_pump` / `_wrap` locals, so both halves bind to one definition of each. home_screen_test.dart 185 navigation, resume, start-workout home_sync_card_test.dart 172 the sync-status card and its Retry tick _home_test_fixtures.dart 66 pumpHome, wrapHome, the four fakes Worth recording for the workout_sync_service.dart work still to come: these four fakes are exactly why `syncNow` cannot move into a `part` extension. Extension methods dispatch statically, so a subclass override of an extension member never runs — the real implementation would, and the tests would hang rather than fail. 402 tests pass; the name set gains only the new file's reporter lifecycle records. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EveB813BQ8abAP68VSqZ5Y |
||
|---|---|---|
| .. | ||
| models | ||
| screens | ||
| services | ||
| ui | ||
| widgets | ||
| fake_audio_platform.dart | ||
| fake_secure_storage.dart | ||
| firebase_backend_google_test.dart | ||
| google_platform_test.dart | ||
| google_platform_web_test.dart | ||
| google_sign_in_backend_test.dart | ||
| widget_test.dart | ||