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

saygoweb / anorm / 25305557492
97%

Build:
DEFAULT BRANCH: master
Ran 04 May 2026 07:01AM UTC
Jobs 1
Files 34
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

04 May 2026 07:00AM UTC coverage: 97.296% (+5.7%) from 91.587%
25305557492

push

github

web-flow
test(relationship): improve src/Relationship coverage to ≥90% (#51)

* test(relationship): improve src/Relationship coverage to ≥90% for all files

Bring 8 previously under-covered Relationship classes from 41–88% up to
90%+ line coverage by adding targeted tests for uncovered methods:

- ManyHasMany: generateForeignKeyConstraints, batchLoad, distributeBatchResults,
  estimateDataSize, getCardinality (53% → 98%)
- ManyHasManyBatchLoader: batchLoad, distributeBatchResults (42% → 98%)
- ManyHasOne: generateForeignKeyConstraints (67% → 97%)
- OneHasMany: generateForeignKeyConstraints, batchLoad strategy branches (71% → 95%)
- Relationship base: getOptions, getOption, getConstraintName (79% → 100%)
- BatchLoadingOrchestrator: executeBatchLoading, executeIndividualLoading,
  private method branches (85% → 97%)
- JoinWithSelectionLoader: buildWhereClause empty branch, createPartialModel
  null-PDO branch, distributeBatchResults cardinality branches (86% → 92%)
- NestedRelationshipParser: field-merge branch, circular-reference detection,
  generateCircularKey empty-models branch (89% → 97%)

* test(relationship): replace naive assertTrue(true) with meaningful assertions

Replace all assertTrue(true) placeholders with either:
- expectNotToPerformAssertions() for pure "no exception" cases (empty models,
  missing relationships, void early-return paths)
- Real state assertions where the code produces observable output
  (assertIsArray on loaded relationships, assertFalse on unset properties,
  assertInstanceOf for loaded related models, assertNull for unloaded depth)

Also fix a weak assertion in testExecuteIndividualLoadingSuccess:
assertTrue(isset($user->posts) || $user->posts !== false) → assertIsArray($user->posts)

1943 of 1997 relevant lines covered (97.3%)

21.27 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25305557492.1 04 May 2026 07:01AM UTC 34
97.3
GitHub Action Run
Source Files on build 25305557492
  • Tree
  • List 34
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a8a265d8 on github
  • Prev Build on master (#25304498901)
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