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

pashagolub / pgxmock / 25912613469
94%

Build:
DEFAULT BRANCH: master
Ran 15 May 2026 10:17AM UTC
Jobs 1
Files 9
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

15 May 2026 10:17AM UTC coverage: 94.183% (+0.06%) from 94.124%
25912613469

push

github

web-flow
[-] return non-nil errRows from Query on failure, fixes #258 (#259)

pgx's `pool.Query` returns an `errRows` sentinel (not nil) when a query
fails, so callers can safely pass the rows value to `pgx.CollectRows` &
`pgx.CollectOneRow` without first nil-checking it.

pgxmock was returning nil rows on any `Query` error, causing a nil-pointer
panic when code followed that pattern.

Add an `errRows` type that implements `pgx.Rows` and surfaces the error
through every method. Query now returns `&errRows{err}` instead of nil
when no matching expectation is found or an expectation returns an error.

Add `TestIssue258QueryReturnsErrRowsOnFailure` to reproduce the panic and
confirm the fix.

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

842 of 894 relevant lines covered (94.18%)

1.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25912613469.1 15 May 2026 10:17AM UTC 9
94.18
GitHub Action Run
Source Files on build 25912613469
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 30d8aa3a on github
  • Prev Build on master (#24884710080)
  • Next Build on master (#25916195406)
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