mirror of
https://github.com/zhashkevych/go-sqlxmock.git
synced 2025-06-06 21:46:11 +02:00
commit
f900b6ec8a
@ -272,7 +272,7 @@ sqlmock.ExpectCommit().WillReturnError(fmt.Errorf("Deadlock occured"))
|
|||||||
```
|
```
|
||||||
|
|
||||||
In same fashion, we can expect queries to match arguments. If there are any, it must be matched.
|
In same fashion, we can expect queries to match arguments. If there are any, it must be matched.
|
||||||
Instead of result we can return error..
|
Instead of result we can return error.
|
||||||
|
|
||||||
``` go
|
``` go
|
||||||
sqlmock.ExpectQuery("SELECT (.*) FROM orders").
|
sqlmock.ExpectQuery("SELECT (.*) FROM orders").
|
||||||
|
Loading…
x
Reference in New Issue
Block a user