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

pashagolub / pgxmock
94%
master: 94%

Build:
Build:
LAST BUILD BRANCH: fix-one-row-error
DEFAULT BRANCH: master
Repo Added 11 Feb 2021 08:42AM UTC
Files 9
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

LAST BUILD ON BRANCH fix-one-row-error
branch: fix-one-row-error
CHANGE BRANCH
x
Reset
  • fix-one-row-error
  • 133-fix-single-row-query
  • 225-pgxmockcopyfrom-should-utilise-pgxcopyfromsource-argument
  • add-querymatcherany
  • bugfix/err-empty-result
  • bump-golangci-lint-action
  • bump-pgx-5.7.4
  • convert-on-scan
  • fix-close-error-issue
  • fix-pool-config
  • master
  • panic-safe-argument
  • simplify-type-args

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

Relevant lines Covered
Build:
Build:
880 RELEVANT LINES 828 COVERED LINES
1.1 HITS PER LINE
Source Files on fix-one-row-error
  • Tree
  • List 9
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
18850917292 fix-one-row-error 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 requ... Pull #245 27 Oct 2025 05:55PM UTC theory github
94.09
18850854427 fix-one-row-error 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 requ... Pull #245 27 Oct 2025 05:53PM UTC theory github
94.09
See All Builds (310)
  • Repo on GitHub
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