Skip to content

Comments

Update test suite to ensure 100% code coverage#37

Merged
clue merged 1 commit intoclue:1.xfrom
clue-labs:coverage
Feb 21, 2026
Merged

Update test suite to ensure 100% code coverage#37
clue merged 1 commit intoclue:1.xfrom
clue-labs:coverage

Conversation

@clue
Copy link
Owner

@clue clue commented Feb 21, 2026

Builds on top of #35, #26 and clue/reactphp-eventsource#35

@clue clue added this to the v1.3.0 milestone Feb 21, 2026
@clue clue requested a review from Copilot February 21, 2026 19:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to enforce and advertise 100% code coverage by adding CI enforcement, documenting local coverage generation, and excluding an environment-specific line from coverage.

Changes:

  • Add a CI step that fails the build unless statement coverage is 100%.
  • Add a README badge and testing docs describing 100% coverage expectations and local coverage reporting.
  • Mark a PHP-version-dependent line in Encoder as ignored for coverage.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/Encoder.php Adds a @codeCoverageIgnore annotation for a PHP version-specific code path.
README.md Adds a 100% coverage badge and documents how to generate coverage locally.
.github/workflows/ci.yml Adds a CI step intended to enforce 100% coverage by parsing a Clover XML report.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@clue clue merged commit 865e3d9 into clue:1.x Feb 21, 2026
16 checks passed
@clue clue deleted the coverage branch February 21, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant