Repository navigation
test: raise line coverage - #61
Merged
Merged
Conversation
The method is protected and has no caller in the package, but subclasses written before v1.2 may still call it. Assisted-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 1.x #61 +/- ##
===========================================
+ Coverage 97.83% 100.00% +2.16%
===========================================
Files 20 20
Lines 416 416
===========================================
+ Hits 407 416 +9
+ Misses 9 0 -9
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:
|
The isType() tests add an equivalent mutant (the integer branch returns what the fallback would), which took MSI under the 97% gate; these cases kill four escaped validateColumnName() removals. Assisted-By: Claude Opus 5.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 was changed
RegistryModifier::isType()is called the way a subclass would, for datetime, integer, uuid and any other type, by column and by field type.add*Column()rejects an existing field of its type that is linked to another column.Why?
Line coverage: Codecov 97.83% → 100% (the 9 missed lines were all in
isType()). Locally with pcov on PHP 8.5, Unit + SQLite merged the way Codecov does: 444/453 → 453/453.Checklist
Review notes
isType()has no caller in the package andRegistryModifieris@internal, but the class is not final and the method is protected, so a subclass written before v1.2 may still call it. The test reaches it through an anonymous subclass; if the method is meant to go, deleting it and the two tests is the alternative.isType()returns what the final fallback would, so removing thatreturnis an equivalent mutant; the column-name cases above kill four older escaped mutants and keep MSI over the 97% gate.