Repository navigation
test: raise line coverage - #65
Merged
Merged
Conversation
…i 3 bootstrap Assisted-By: Claude Opus 5.5 <[email protected]>
…uery in the Unit suite On PHP 8.5 the Unit report marked the ActiveQuery constructor as an unexecuted line no other suite reports, which Codecov counted as missed. 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 #65 +/- ##
===========================================
+ Coverage 95.00% 100.00% +5.00%
===========================================
Files 10 10
Lines 100 99 -1
===========================================
+ Hits 95 99 +4
+ Misses 5 0 -5
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.
What was changed
ActiveRecordProviderand the Yii 3 bootstrap hand their container to theFacade.Cycle\ActiveRecord\TransactionModeand…\Exception\Transaction\TransactionExceptionnames resolve to the cycle/transaction classes.ActiveQuerybuilds a select for its role on the ORM theFacaderesolves.Why?
Codecov on
1.xshowed 95% (86.7% on the repository page, which still reads the stalemasterbranch): the two framework bridges and the two alias files had no test. TheActiveQuerymiss came from pcov on PHP 8.5+: the Unit suite never loaded the class, so its report listed the constructor signature line from static analysis, a line the database suites do not report for executed code, and Codecov merged it as missed.Review notes
Codecov (merged flags): 95.0% → 100% (5 → 0 missed lines).
With pcov on PHP 8.5 in docker, Unit + SQLite merged the way Codecov does: 109/109 lines.
Locally with Xdebug the report still lists the declaration lines of
ActiveRecordExceptionandConfigurationException(both used byFacadeTest); pcov does not count them as executable, so they do not reach Codecov.Checklist