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

pashagolub / pgxmock / 18850917292
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: fix-one-row-error
DEFAULT BRANCH: master
Ran 27 Oct 2025 05:55PM 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

27 Oct 2025 05:54PM UTC coverage: 94.091% (+0.1%) from 93.977%
18850917292

Pull #245

github

theory
Allow RowSet with error with no corresponding row

Allow a RowSet to be specified with an error row number that has no
corresponding row. Since the row returns an error, it seems unnecessary
for there to be a row.

In other words, rather than require something like:

	NewRows([]string{"id", "title"}).
		AddRow("one").
		RowError(0, fmt.Errorf("error"))

In which both a row and a row error specify index 0, but the row is
never returned, allow omission of the row:

	NewRows([]string{"id", "title"}).
		RowError(0, fmt.Errorf("error"))

The pattern was broken in d07ccec, which checked only the number of rows
before closing a RowSet. Fix by having `Next` check both the length of
rows and whether an error is registered for the current row number. Add
a test for this case, as well.
Pull Request #245: Allow RowSet with error with no corresponding row

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

828 of 880 relevant lines covered (94.09%)

1.1 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18850917292.1 27 Oct 2025 05:55PM UTC 9
94.09
GitHub Action Run
Source Files on build 18850917292
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #245
  • PR Base - master (#18276721412)
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