Fix tests for Flutter 3.38 compatibility and add model tests#120
Conversation
Remove golden_toolkit dependency (incompatible with Flutter 3.38), replace with standard flutter_test APIs. Remove tests for deleted widgets/providers (AudioProvider, AssetsAudioPlayer), fix tests for renamed APIs (router params, DownloadProvider), fix LRC parser bugs (single-digit minutes, multi-tag lines, millisecond precision), and add comprehensive model unit tests. Update CI workflow actions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis pull request removes the Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes The changes span heterogeneous areas: systematic mock updates across 6 files requiring verification of API consistency, addition of ~550 lines of new model tests with repetitive but comprehensive coverage, removal of golden-file test infrastructure, and moderate LRC parsing logic updates. The mock changes follow a pattern but demand careful review to ensure all provider signatures (PlaylistProvider, AuthProvider, AppRouter, DownloadProvider) align across multiple files. Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment Tip CodeRabbit can generate a title for your PR based on the changes with custom instructions.Set the |
Summary
golden_toolkitdependency (incompatible with Flutter 3.38) and replace with standardflutter_testAPIsAudioProvider,AssetsAudioPlayer,FullWidthPrimaryIconButton)DownloadProviderchanges,OopsBox.showLogOutButton)Song,Artist,Album,Playlist, andPlayablecheckout@v4,flutter-action@v2)Test plan
flutter test)🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Chores