Should pgxmock.Rows
implement pgx.Rows
interface?
#119
Unanswered
VictorDotZ
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hi, would you please provide a code sample that should work and doesn't right now? Thanks in advance |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
pgx.Rows
returned frompgxmock.NewRows
is notpgx.Rows
and can not be passed into a function that handlespgx.Rows
. But the query withWillReturnRows
has rows aspgxmock.rowSets
and all is fine.So, should
pgxmock.Rows
implementpgx.Rows
interface, or have you any idea how to test that kind of function without wrapping it by empty queries?Beta Was this translation helpful? Give feedback.
All reactions