• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

valkyrjaio / valkyrja-php / 30232707721
100%

Build:
DEFAULT BRANCH: 26.x
Ran 27 Jul 2026 02:41AM UTC
Jobs 1
Files 1138
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

27 Jul 2026 02:39AM UTC coverage: 100.0%. Remained the same
30232707721

push

github

web-flow
[Http] Add routing path/regex/parameter combination tests (#923)

# Description

The HTTP routing code (`Processor`, `Matcher`,
`AttributeRouteCollector`) already
reported 100% line and branch coverage, but that coverage was shallow on
*combinations*: the existing tests exercised a single parameter type,
one optional
parameter, one non-capturing parameter, etc. — enough to touch each
line/branch once,
but not enough to prove that arbitrary developer-authored routes produce
the correct
regex and match correctly.

This PR adds combination-matrix tests so a developer can trust that any
route they
define — via direct `Route`/`DynamicRoute` construction **or** via
attributes — produces
the expected regex and matches request paths correctly. It adds tests
only; there are no
source changes, so coverage cannot drop.

Highlights:
- **Exact regex production** is now asserted (not just non-empty) across
every `Regex`
parameter type, structural layouts (parameter at start/middle/end,
multiple/adjacent
parameters, static+dynamic mixes), and modifiers (optional, multiple
optional,
non-capture, optional+non-capture, the `{name?}` auto-optional path),
plus the guard
  branches. Each produced regex is also asserted to be valid PCRE.
- **Matching correctness** is verified per parameter type (valid input
matches and binds,
invalid input is rejected) and — for the first time — **request-method
filtering**
(every prior `Matcher` test used `RequestMethod::ANY`), trailing-slash
normalization,
static-over-dynamic precedence, multi-parameter extraction, and
non-capturing
  parameters not being bound.
- The **attribute construction path** is asserted to produce the same
regex as direct
  construction via a new controller fixture.

Part of a cross-language effort; sibling Java and TypeScript PRs will
follow.

## Types of changes

- [x] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-break... (continued)

12587 of 12587 relevant lines covered (100.0%)

17.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30232707721.1 27 Jul 2026 02:41AM UTC 1138
100.0
GitHub Action Run
Source Files on build 30232707721
  • Tree
  • List 1138
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30232707721
  • 5e1b4249 on github
  • Prev Build on 26.x (#30232552358)
  • Next Build on 26.x (#30232758335)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc