• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
You are now the owner of this repo.

valkyrjaio / sindri-php
100%

Build:
DEFAULT BRANCH: 26.x
Repo Added 18 Apr 2026 03:33AM UTC
Token hPvaYweRytwhphTJXziYKRWKd0QO9kF1b regen
Build 221 Last
Files 79
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

LAST BUILD ON BRANCH 26.x
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • 26.x
  • add-cli-header
  • add-generators
  • add-missing-tests
  • add-path-coverage
  • deps/ensure-workflows-26.x
  • deps/fix-trailing-newlines-26.x
  • deps/update-.github-workflow-refs-26.x
  • deps/update-ci-phpcodesniffer-php-workflow-refs-26.x
  • deps/update-ci-phpcsfixer-php-workflow-refs-26.x
  • deps/update-ci-phpstan-php-workflow-refs-26.x
  • deps/update-ci-phpunit-php-workflow-refs-26.x
  • deps/update-ci-rector-php-workflow-refs-26.x
  • deps/update-dependencies-2026-04-18
  • deps/update-dependencies-2026-04-19
  • deps/update-dependencies-2026-04-24
  • deps/update-dependencies-2026-04-27
  • deps/update-dependencies-2026-05-01
  • deps/update-dependencies-2026-05-05
  • deps/update-dependencies-2026-05-07
  • deps/update-dependencies-2026-05-10
  • deps/update-dependencies-2026-05-12
  • deps/update-dependencies-2026-05-13
  • deps/update-dependencies-2026-05-14
  • deps/update-dependencies-2026-05-16
  • deps/update-dependencies-2026-05-19
  • deps/update-dependencies-2026-05-21
  • deps/update-dependencies-2026-05-28
  • deps/update-dependencies-2026-05-29
  • deps/update-dependencies-2026-05-30
  • deps/update-dependencies-2026-06-01
  • deps/update-dependencies-2026-06-02
  • deps/update-dependencies-2026-06-04
  • deps/update-dependencies-2026-06-05
  • deps/update-dependencies-2026-06-06
  • deps/update-dependencies-2026-06-08
  • deps/update-dependencies-2026-06-16
  • deps/update-dependencies-2026-06-17
  • deps/update-dependencies-2026-06-18
  • deps/update-dependencies-2026-06-19
  • deps/update-github-workflow-refs-26.x
  • fix-constants-generated
  • move-ast-result-namespace
  • refactor-cli-http-route-attribute-readers
  • refactor-readers
  • update-private-to-protected
  • update-providers
  • update-valkyrja
  • update-workflows
  • use-phpunit-ci-service-provider-test-case

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

Relevant lines Covered
Build:
Build:
1546 RELEVANT LINES 1546 COVERED LINES
17.25 HITS PER LINE
Source Files on 26.x
  • Tree
  • List 79
  • Changed 14
  • Source Changed 14
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27863212787 26.x [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 bra... push 20 Jun 2026 06:43AM UTC web-flow github
100.0
27863134187 add-path-coverage Merge 4dac97aab into a1c283cde Pull #117 20 Jun 2026 06:40AM UTC web-flow github
100.0
27853532419 26.x [GitHub] Update .github workflow refs to v26.9.5 (#116) # Description Update reusable workflow references from `valkyrjaio/.github` to release `v26.9.5`. ## Types of changes - [X] Improvement _(non-breaking change which improves code)_ - [ ] B... push 19 Jun 2026 11:47PM UTC web-flow github
100.0
27853422122 deps/update-.github-workflow-refs-26.x Merge 24c1731df into 8794fb47f Pull #116 19 Jun 2026 11:45PM UTC web-flow github
100.0
27853421104 deps/update-.github-workflow-refs-26.x Merge a0e403362 into 8794fb47f Pull #116 19 Jun 2026 11:45PM UTC web-flow github
100.0
27853338125 26.x [Tests] Adding missing tests (#115) # Description Brings Sindri to 100% test coverage with the stronger guarantee that every source file containing logic is covered 100% by its own dedicated test in isolation — not merely as a side effect of oth... push 19 Jun 2026 11:41PM UTC web-flow github
100.0
27853006379 deps/update-.github-workflow-refs-26.x Merge 029132a05 into 48b00931b Pull #116 19 Jun 2026 11:29PM UTC web-flow github
100.0
27851162802 add-missing-tests Merge f103ee3ed into 48b00931b Pull #115 19 Jun 2026 10:26PM UTC web-flow github
100.0
27850975651 add-missing-tests Merge 862f8b5de into 48b00931b Pull #115 19 Jun 2026 10:20PM UTC web-flow github
100.0
27850964479 add-missing-tests Merge 9b47ae17c into 48b00931b Pull #115 19 Jun 2026 10:19PM UTC web-flow github
100.0
See All Builds (220)

Badge your Repo: sindri-php

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

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

Refresh
  • Settings
  • Repo on GitHub
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