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

dal-go / dalgo / 30207238497
100%

Build:
DEFAULT BRANCH: main
Ran 26 Jul 2026 02:59PM UTC
Jobs 1
Files 124
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

26 Jul 2026 02:59PM UTC coverage: 99.966%. Remained the same
30207238497

push

github

web-flow
fix(mocks): regenerate session and transaction mocks so recorders match (#107)

MockReadSession, MockReadwriteSession, MockReadTransaction and
MockReadwriteTransaction each implemented ExecuteQueryToRecordsReader and
ExecuteQueryToRecordsetReader while their recorders still exposed the
pre-rename names GetRecordsReader and GetRecordsetReader. The recorder bodies
recorded the new method names, so the wrappers were merely misnamed and our own
tests kept passing - but a consumer writing EXPECT().ExecuteQueryToRecordsReader
against the real interface got a compile error, with no way to set a query
expectation at all. dal-go/dalgo-demo hit exactly this while migrating to
v0.64.2.

This is the L1 pattern in our own repo: the fake drifted from the interface it
stands in for, our tests were written against the drifted fake, and every signal
stayed green. Nothing compares a generated mock against the interface it is
generated from, so a hand-edit or partial regeneration is invisible.

Regenerated both files with mockgen v0.6.0, the version in go.mod, and renamed
the 27 EXPECT() call sites in our own tests. The rename is behaviour-preserving:
the old recorder already recorded "ExecuteQueryToRecordsReader", so the same
expectation is set on the same method. Scoped strictly to EXPECT() call sites -
GetRecordsReader is also a real method on dal.Query with a different signature,
and a blanket rename would have corrupted those.

Verified: build, vet and all 19 packages green. Proven load-bearing against
dalgo-demo via a local replace - it now builds, vets and tests clean, having
failed to compile before.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

156 of 156 new or added lines in 2 files covered. (100.0%)

8848 of 8851 relevant lines covered (99.97%)

1.15 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30207238497.1 26 Jul 2026 02:59PM UTC 124
99.97
GitHub Action Run
Source Files on build 30207238497
  • Tree
  • List 124
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 874a5981 on github
  • Prev Build on main (#30168641919)
  • Next Build on main (#30559586305)
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