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

pashagolub / pgxmock
94%

Build:
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 master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • 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-one-row-error
  • fix-pool-config
  • master
  • panic-safe-argument
  • simplify-type-args

29 Oct 2025 12:44PM UTC coverage: 94.091% (+0.1%) from 93.977%
18908305465

push

github

web-flow
[+] allow `RowSet` with error with no corresponding row (#245)

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.

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 master
  • 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
18908305465 master [+] allow `RowSet` with error with no corresponding row (#245) 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, rat... push 29 Oct 2025 12:45PM UTC web-flow github
94.09
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
18276721412 master [-] fix copy-paste issue in `CopyFrom()`, closes #244 push 06 Oct 2025 09:44AM UTC pashagolub github
93.98
17268895943 fix-close-error-issue [-] fix CloseErr not affecting Next() Pull #240 28 Aug 2025 03:46PM UTC TRCMKR github
93.99
16853713054 fix-close-error-issue [-] fix CloseErr not affecting Next() Pull #240 19 Aug 2025 12:31PM UTC TRCMKR github
94.05
17069593533 master [+] teach `Rows.CloseError` to set the error (#241) `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 ca... push 19 Aug 2025 12:30PM UTC web-flow github
93.98
16851312510 fix-close-error-issue 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 `r... Pull #241 19 Aug 2025 12:26PM UTC theory github
93.98
16717792967 133-fix-single-row-query Revert "Full issue use case" This reverts commit 7f6974b51. Pull #239 04 Aug 2025 08:27AM UTC MartyHub github
94.02
16672028441 fix-close-error-issue [-] fix not affecting Pull #240 01 Aug 2025 10:09AM UTC asayapini github
94.02
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

© 2025 Coveralls, Inc