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

stephenafamo / bob / 28856117809
48%
main: 48%

Build:
Build:
LAST BUILD BRANCH: loader-dedup
DEFAULT BRANCH: main
Ran 07 Jul 2026 09:42AM UTC
Jobs 2
Files 252
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

07 Jul 2026 09:30AM UTC coverage: 47.594% (+0.5%) from 47.059%
28856117809

Pull #715

github

sandonemaki
feat(orm)!: preload child structs with a generated NULL-safe typed mapper

Generate a per-table NULL-tolerant typed mapper (<table>ScanMapperNullable)
for every table that is the target of a to-one relationship, and pass it to
orm.Preload so the joined child columns are scanned without reflection while
preserving the LEFT JOIN semantics of the previous scan.StructMapper path:
an all-NULL row still yields no child object, and NULL values scanned into
non-nullable fields still leave the zero value.

Builds on #715 and benefits from stephenafamo/scan#8.

BREAKING CHANGE: orm.Preload (and the psql/mysql/sqlite Preload wrappers)
gain a new PreloadMapper[T] parameter. Only hand-written callers of
orm.Preload are affected; generated code is regenerated as part of this
change. Pass nil to keep the previous reflection-based behaviour.
Pull Request #715: perf(gen): generate typed scan mappers and inject them via the model constructors

41 of 56 new or added lines in 10 files covered. (73.21%)

3 existing lines in 3 files now uncovered.

11821 of 24837 relevant lines covered (47.59%)

721.81 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
25.56
1.69% dialect/mysql/view.go
3
0.0
0.0% dialect/sqlite/table.go
2
0.0
0.0% dialect/mysql/load.go
2
0.0
0.0% dialect/psql/load.go
2
0.0
0.0% dialect/sqlite/load.go
2
55.0
55.0% orm/load.go
1
57.71
0.0% dialect/mysql/table.go

Coverage Regressions

Lines Coverage ∆ File
1
0.0
0.0% dialect/mysql/load.go
1
0.0
0.0% dialect/psql/load.go
1
0.0
0.0% dialect/sqlite/load.go
Jobs
ID Job ID Ran Files Coverage
1 go-stable - 28856117809.1 07 Jul 2026 09:43AM UTC 252
47.56
GitHub Action Run
2 go-oldstable - 28856117809.2 07 Jul 2026 09:42AM UTC 252
47.59
GitHub Action Run
Source Files on build 28856117809
  • Tree
  • List 252
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #715
  • PR Base - main (#28581791851)
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