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

saygoweb / anorm / 25304498901
97%

Build:
DEFAULT BRANCH: master
Ran 04 May 2026 06:30AM 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 06:29AM UTC coverage: 91.587% (+7.0%) from 84.619%
25304498901

push

github

web-flow
chore: improve test coverage for TableMaker, QueryBuilder, and Model (#50)

* test(tablemaker): cover _fix() 23000 and HY000 switch cases

Add TableMakerTestExceptionWithMessage helper class and three tests
that exercise the 23000 (foreign key constraint) and HY000 (general
error with/without foreign key message) branches of TableMaker::_fix().

* test(tablemaker): use @doesNotPerformAssertions instead of assertTrue(true)

* fix(tablemaker): correct relationship type case in createForeignKeyFromRelationship

'ManyHasOne'/'OneHasMany' → 'manyHasOne'/'oneHasMany' to match getType() return values.
FK creation via TableMaker::fix() was silently a no-op for all relationship types.
Also ensure source table exists before adding FK column (needed for hasMany path).

* test(tablemaker): add tearDown cleanup and strengthen idempotency assertion

* test(querybuilder): cover with(), joinRelationship(), perf monitor, nested rels

Add tests for previously uncovered QueryBuilder paths: with() string input,
invalid/empty specs, joinRelationship() (undefined and valid), setBatchLoadingConfig,
setPerformanceMonitor, someWithBatchLoading() performance-monitor branches, and
loadNestedRelationships() via posts.comments nesting.

* test(querybuilder): use \$this->pdo consistently and strengthen eager-load assertions

* test(model): cover setNullDelete, restrictDelete, constraintOptions, auto property names

* test(model): use @doesNotPerformAssertions, add cascadeDelete test, remove duplicate

Replace assertTrue(true) with @doesNotPerformAssertions annotation, remove the
duplicate testConstraintOptions_DefaultValues test, and add testCascadeDelete_ReturnsCorrectOptions
with a publicCascadeDelete() helper on ExposedModel.

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

1829 of 1997 relevant lines covered (91.59%)

18.73 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25304498901.1 04 May 2026 06:30AM UTC 34
91.59
GitHub Action Run
Source Files on build 25304498901
  • Tree
  • List 34
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d802fcb0 on github
  • Prev Build on master (#25294204668)
  • Next Build on master (#25305557492)
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