• 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: master
CHANGE BRANCH
x
Reset
  • master
  • 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
  • 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
18276721412 master [-] fix copy-paste issue in `CopyFrom()`, closes #244 push 06 Oct 2025 09:44AM UTC pashagolub github
93.98
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
16295279314 master [*] simplify type arguments (#237) push 15 Jul 2025 01:56PM UTC web-flow github
93.99
15756491940 master Fix unsafe lock behavior on Argument panic (#234) * Fix unsafe lock behavior on Argument panic --------- Co-authored-by: Pavlo Golub <pavlo.golub@gmail.com> push 19 Jun 2025 11:14AM UTC web-flow github
93.99
15756245693 master [+] bump `golangci/golangci-lint-action` to v8 (#235) push 19 Jun 2025 11:01AM UTC web-flow github
93.97
14467126161 master [+] bump `jackc/pgx/v5` from v5.7.2 to v5.7.4 (#233) go: upgraded github.com/jackc/pgx/v5 v5.7.0 => v5.7.4 go: upgraded github.com/jackc/puddle/v2 v2.2.1 => v2.2.2 go: upgraded golang.org/x/crypto v0.27.0 => v0.37.0 go: upgraded golang.org/x/sync... push 15 Apr 2025 10:25AM UTC web-flow github
93.97
13634867676 master [+] convert types in `Scan` if possible (#232) Co-authored-by: Pavlo Golub <pavlo.golub@gmail.com> push 03 Mar 2025 03:51PM UTC web-flow github
93.97
13259667991 master [+] add `QueryMatcherAny` to skip expected SQL checks (#230) push 11 Feb 2025 09:26AM UTC web-flow github
94.18
13248639051 master add AnyQuery regexp const Pull #227 10 Feb 2025 07:19PM UTC Daniil Avtushko github
94.16
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