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

valkyrjaio / sindri-php / 27863212787
100%

Build:
DEFAULT BRANCH: 26.x
Ran 20 Jun 2026 06:43AM UTC
Jobs 1
Files 79
Run time 1min
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

20 Jun 2026 06:42AM UTC coverage: 100.0%. Remained the same
27863212787

push

github

web-flow
[Tests] Add --path-coverage to PHPUnit test coverage (#117)

# Description

Brings Sindri to 100% branch coverage (958/958) alongside its existing
100% line coverage. Two sources of uncovered branches were addressed:
namespace-fallback phantom branches from unqualified builtin calls
(removed by importing global functions), and a set of genuinely untested
decision branches — ternary fall-throughs and `foreach` loops whose body
ran but never hit the early `return` — which are now exercised directly.
Adds `--path-coverage` to the coverage script so this stays measurable.

---

## Types of Changes

- [x] Improvement _(non-breaking change which improves code)_
- [ ] Bug fix _(non-breaking change which fixes an issue)_
- [ ] New feature _(non-breaking change which adds functionality)_
- [ ] Deprecation _(breaking change which removes functionality)_
- [ ] Breaking change _(fix or feature that would cause existing
functionality to change)_
- [ ] Documentation improvement

---

## Changes

- **`src/Sindri/**` (function imports)** — `native_function_invocation`
+ `global_namespace_import` applied so unqualified builtin calls become
`use function` imports, removing namespace-fallback phantom branches
- **`src/Sindri/Generator/Ast/Http/AstHttpDataFileGenerator.php`** —
extracted the temporary route's placeholder `fn(): never => throw`
handler into an `unreachableRouteHandler()` seam (typed `@return
Closure(): never`) so the intentionally-unreachable throw can be covered
by a direct test
- **`tests/Tests/Unit/Ast/ConfigReaderTest.php`** — cover
`resolvePathExpr` realpath success/failure arms and `computeSrcDir`
empty-namespace zero-depth arm
- **`tests/Tests/Unit/Ast/HttpRouteAttributeReaderTest.php`** — cover
the `extractClassPathPrefix` / `extractClassNamePrefix` foreach
fall-through (attribute present but value empty)
- **`tests/Tests/Unit/Ast/HttpRouteMiddlewareReaderTest.php`** — cover
`updateRequestStruct` / `updateResponseStruct` foreach fall-through
- **`... (continued)

3 of 3 new or added lines in 1 file covered. (100.0%)

1546 of 1546 relevant lines covered (100.0%)

17.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27863212787.1 20 Jun 2026 06:43AM UTC 79
100.0
GitHub Action Run
Source Files on build 27863212787
  • Tree
  • List 79
  • Changed 14
  • Source Changed 14
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #27863212787
  • c0f9455d on github
  • Prev Build on 26.x (#27853532419)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc