Repository navigation
v1.27.2: APICronStoreDB.buildRepositories returns List<DBSQLEntityRepository> - #191
Merged
Merged
Conversation
…ository> It can be added to a provider's list of DBSQLEntityRepository with no cast, and still to a list of EntityRepository (lists are covariant). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #191 +/- ##
=======================================
Coverage 95.53% 95.53%
=======================================
Files 73 73
Lines 25179 25179
=======================================
+ Hits 24054 24055 +1
+ Misses 1125 1124 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
APICronStoreDB.buildRepositoriesnow returnsList<DBSQLEntityRepository>instead ofList<EntityRepository<Object>>.DBSQLEntityRepositorywith no cast; before, it needed.cast<DBSQLEntityRepository>().EntityRepository, because lists are covariant.<Entity>, adding a non-Entityrepository would throw aTypeErrorat runtime.Tests
buildRepositoriesfits both kinds of provider list.List<DBSQLEntityRepository>, and a new test checks their tables and entity types.dart analyze --fatal-infos: no issues.🤖 Generated with Claude Code