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

bleedingdeacons / trusted / 30474417709
92%

Build:
DEFAULT BRANCH: main
Ran 29 Jul 2026 05:14PM UTC
Jobs 1
Files 23
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

29 Jul 2026 05:14PM UTC coverage: 93.051% (+71.2%) from 21.813%
30474417709

push

github

web-flow
test: raise line coverage to ~93% (tests only) (#20)

Add unit tests across Trusted's WordPress-coupled layers to bring line coverage
from ~19.5% to ~93% without touching production code:

- RestController: every trusted/v1 admin endpoint (week/slot/assignment/member/
  template) end to end against the in-memory repositories, the real
  RotaFactory/ShiftSignup and a real TemplateApplicator
- SignupController: the member-facing sign-up endpoints and no-cache header
  filter (beyond the permission gate the existing suite pins)
- TemplateApplicator: options/shiftsForTemplate/apply (create, skip-existing,
  replace, pre-assign) and createFromWeek serialisation
- TemplateFields / TemplatePostType: the ACF field group and CPT registration
- RotaRepository / AssignmentRepository / Database: the $wpdb-backed reads,
  writes, deletes and the unique-index migration, via a Mockery wpdb
- TrustedServiceProvider: every service resolves through a fake Unity container
- Rota serialisation accessors

Coverage config excludes src/Admin (calendar/developer/help pages, asset
enqueuing — WordPress admin glue) and src/Contracts (pure interfaces), matching
the exclusions the other suite plugins apply. A tests/wp-stubs.php harness
supplies the WP_REST_* / WP_Error classes WP_Mock does not, plus the plugin
constants and a few pure passthrough helpers; the bootstrap also loads Unity's
Container contract from the sibling checkout.

1098 of 1180 relevant lines covered (93.05%)

3.02 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
97.62
-2.38% trusted/trusted/src/Template/TemplateValidator.php
Jobs
ID Job ID Ran Files Coverage
1 30474417709.1 29 Jul 2026 05:14PM UTC 23
93.05
GitHub Action Run
Source Files on build 30474417709
  • Tree
  • List 23
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30474417709
  • 51590b19 on github
  • Prev Build on main (#29916011120)
  • Next Build on main (#30559190866)
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