Skip to content

Commit

Permalink
[-] fix bad method name for CopyFrom()
Browse files Browse the repository at this point in the history
  • Loading branch information
lsimeonov authored Jan 26, 2025
1 parent d0c4457 commit a153ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgxmock.go
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ func (c *pgxmock) Conn() *pgx.Conn {
}

func (c *pgxmock) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, _ pgx.CopyFromSource) (int64, error) {
ex, err := findExpectationFunc[*ExpectedCopyFrom](c, "BeginTx()", func(copyExp *ExpectedCopyFrom) error {
ex, err := findExpectationFunc[*ExpectedCopyFrom](c, "CopyFrom()", func(copyExp *ExpectedCopyFrom) error {
if !reflect.DeepEqual(copyExp.expectedTableName, tableName) {
return fmt.Errorf("CopyFrom: table name '%s' was not expected, expected table name is '%s'", tableName, copyExp.expectedTableName)
}
Expand Down

0 comments on commit a153ad8

Please sign in to comment.