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

saygoweb / anorm
97%

Build:
DEFAULT BRANCH: master
Repo Added 26 Nov 2018 05:01AM UTC
Files 34
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 master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • V1.5.0
  • bug/1
  • bug/map
  • build/docker
  • build/upgrade
  • chore/coverage-1
  • chore/coverage-2
  • dependabot/composer/guzzlehttp/guzzle-6.5.6
  • dependabot/composer/guzzlehttp/guzzle-6.5.7
  • dependabot/composer/guzzlehttp/guzzle-6.5.8
  • dependabot/composer/guzzlehttp/psr7-1.8.5
  • feat/change
  • feature/ai-guard
  • feature/binding
  • feature/cli
  • feature/dynamic
  • feature/factory
  • feature/find
  • feature/groupby
  • feature/join
  • feature/join-model
  • feature/join-optimize
  • feature/limit
  • feature/mango-query
  • feature/null
  • feature/nulldate
  • feature/oneOrThrow
  • feature/readOrThrow
  • feature/remote-agent
  • feature/replace
  • feature/transform
  • feature/transformer
  • fix/mango
  • fix/write-on-change
  • master
  • v0.1.0
  • v0.1.1
  • v0.2.0
  • v0.2.3
  • v0.9.0
  • v0.9.1
  • v0.9.2
  • v1.0.0
  • v1.1.0
  • v1.2.0
  • v1.3.0
  • v1.3.2
  • v1.4.0
  • v1.6.0
  • v1.6.1

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

Relevant lines Covered
Build:
Build:
1997 RELEVANT LINES 1943 COVERED LINES
21.27 HITS PER LINE
Source Files on master
  • Tree
  • List 34
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
25305557492 master 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 addin... push 04 May 2026 07:01AM UTC web-flow github
97.3
25305339380 chore/coverage-2 Merge 33595321b into d802fcb01 Pull #51 04 May 2026 06:55AM UTC web-flow github
97.3
25305151928 chore/coverage-2 Merge e594c91e1 into d802fcb01 Pull #51 04 May 2026 06:50AM UTC web-flow github
97.3
25304498901 master 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 con... push 04 May 2026 06:30AM UTC web-flow github
91.59
25296473107 chore/coverage-1 Merge 4da9f5eea into 13f7268f4 Pull #50 04 May 2026 01:20AM UTC web-flow github
91.59
25294204668 master feat(lifecycle): allow listeners to call write() without re-invocation (#49) * feat(lifecycle): allow listeners to call write() without re-invoking listener A ChangeListener may now call DataMapper::write() — typically to persist a follow-up rec... push 03 May 2026 11:42PM UTC web-flow github
84.62
25294134586 fix/write-on-change Merge 9e4e7543a into 93d3c8543 Pull #49 03 May 2026 11:39PM UTC web-flow github
84.62
25293852622 fix/write-on-change Merge fafdbe2a8 into 93d3c8543 Pull #49 03 May 2026 11:25PM UTC web-flow github
84.52
25251759671 master Read/write lifecycle hooks for change detection (#48) * Add CLAUDE.md and Serena project config/memories Onboards AI agents (Claude Code, Serena) with project layout, conventions, commands, and done-criteria so future sessions can ramp up withou... push 02 May 2026 12:20PM UTC web-flow github
84.56
25251006500 feat/change Merge cf92bf674 into fda280951 Pull #48 02 May 2026 11:36AM UTC web-flow github
84.56
See All Builds (146)
  • 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