Skip to content

test: raise line coverage - #17

Merged
roxblnfk merged 1 commit into
1.xfrom
test/coverage-100
Nov 20, 2026
Merged

roxblnfk merged 1 commit into
1.xfrom
test/coverage-100

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

What was changed

  • Unit: PhpFileSchemaProvider::clear() returns false and keeps a read-only schema file instead of deleting it.

Why?

Line coverage: Codecov 99.51% → 100%; this was the last missed line. Locally on Unit: 100%, both on Windows and with pcov on PHP 8.5 as a non-root user.

Checklist

  • Closes: no issue
  • Tested
    • Unit suite passes locally (Windows and Linux)
    • Unit tests added
  • Documentation: not needed

Review notes

  • The test skips itself when the current user can still write the file after chmod 0444, which is the case for root (e.g. a docker run without --user). The GitHub runner is not root, so CI covers the line.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
@roxblnfk
roxblnfk requested a review from a team November 20, 2026 20:32
@codecov

codecov Bot commented Nov 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e6b727b) to head (a1a59e1).
⚠️ Report is 1 commits behind head on 1.x.

Additional details and impacted files
@@             Coverage Diff             @@
##              1.x       #17      +/-   ##
===========================================
+ Coverage   99.51%   100.00%   +0.48%     
===========================================
  Files          12        12              
  Lines         208       208              
===========================================
+ Hits          207       208       +1     
+ Misses          1         0       -1     
Flag Coverage Δ
unit 100.00% <ø> (+0.48%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roxblnfk
roxblnfk merged commit 802a7cc into 1.x Nov 20, 2026
13 checks passed
@roxblnfk
roxblnfk deleted the test/coverage-100 branch November 20, 2026 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant