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

pashagolub / pgxmock / 16851312510
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: fix-one-row-error
DEFAULT BRANCH: master
Ran 19 Aug 2025 12:26PM UTC
Jobs 1
Files 9
Run time 3min
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

09 Aug 2025 04:16PM UTC coverage: 93.977% (-0.01%) from 93.988%
16851312510

Pull #241

github

theory
Teach Rows.CloseError to set the error

`Rows.Close` doesn't return an error, so up to now `Rows.CloseError` was
a no-op. However, pgx's `Rows.Err` can return an error after `Rows.Next`
returns false, or after `Rows.Close` has been called.

Add `rowSets.close()` to mark the current rows closed, jump the record
number to the last row, and to set the close error for that row. Then
have `rowSets.Close()` call it and `rowSets.Next()` call it once it has
processed the last row. These changes cause both `Rows.Err` and
`Rows.Scan` to return the close error once it has been set. Add tests
for this behavior.

While at it, have `Rows.Scan` return immediately when the rows have been
closed, rather than carrying out all the scanning.

Add tests to test these behaviors.

Fixes #238.

Authors:
*   asayapini <asayapini@ozon.ru>
*   David E. Wheeler <david@justatheory.com>
Pull Request #241: Teach Rows.CloseError to set the error

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

1 existing line in 1 file now uncovered.

827 of 880 relevant lines covered (93.98%)

1.09 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
92.31
0.08% rows.go
Jobs
ID Job ID Ran Files Coverage
1 16851312510.1 19 Aug 2025 12:26PM UTC 9
93.98
GitHub Action Run
Source Files on build 16851312510
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #241
  • PR Base - master (#16295279314)
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

© 2025 Coveralls, Inc