1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-03-19 20:57:50 +02:00

30 Commits

Author SHA1 Message Date
Alan D. Cabrera
ad48e464a0 Fix ExpectedExec Stringer implementation
Sometimes the result is incorrectly set, so the cast that takes place in
the String() method returns nil.
2021-01-15 07:02:35 -08:00
Nikita Koryabkin
db5c272208 fix 2019-12-02 14:48:50 +03:00
Matthew Huxtable
dd0fe2afd6 Add ExpectPing to watch for db Ping calls 2019-11-06 14:15:28 +00:00
Camal Cakar
b03ef5f2a4
Update expectations.go
Case sensitivity update for comments.
2019-02-18 18:42:21 +01:00
gedi
f7b0b9305b
closes #114 allow expecting rows to be closed 2018-12-11 17:38:12 +02:00
gedi
a6e6646ad9
use configured QueryMatcher in order to match expected SQL to actual, closes #70 2018-12-11 15:20:44 +02:00
Jan Waś
f2bc8f904e allow to use a custom converter 2018-08-06 22:29:24 +02:00
gedi
9d03611ad1
allow to expect prepared statement to be closed, closes #89 2017-09-01 10:24:02 +03:00
RJ
bfd9a9de56 Fixed spelling error 2017-08-02 21:09:34 -04:00
gedi
18ab7ac1c7
improves error messages, closes #77 2017-04-26 09:56:38 +03:00
gedi
a00b6aa80e asserts ordinal argument position, fixes expected query error message 2017-02-16 22:33:12 +02:00
gedi
128bf5c539 implements next rows result set support 2017-02-08 17:35:32 +02:00
gedi
cfb2877c66 tests Context sql driver extensions 2017-02-07 15:03:05 +02:00
gedi
d11f623794 implements named arguments support and adds delay expectation for context deadline simulation 2017-02-06 14:38:57 +02:00
Kris Brandow
19a0529399 Fixing incorrect []byte handling in expectation.
Fixes the incorrect handling of []byte when comparing an argument
recieved from Exec or Query and the exepected value.

Closes #35
2016-02-25 08:34:10 -05:00
gedi
2165444c8d add AnyArg func to provide any kind of argument matcher 2016-02-23 11:24:34 +02:00
gedi
de514b7bf0 closes #31 2016-02-23 11:14:34 +02:00
Konrad Mrozek
4a802e4278 add bool type to query arg matcher 2016-01-26 15:20:18 +01:00
gedi
febff80c09 do not expose sql driver methods for sqlmock, give interface 2015-08-28 11:06:14 +03:00
gedi
5c18417f3f more expressive expectation error output 2015-08-28 10:26:55 +03:00
gedi
566ca54083 allow unordered expectation matching, support for goroutines
* 1778939 take care of locks for goroutine based matching
2015-08-28 10:26:42 +03:00
gedi
a071483cba concurrency support, closes #20 and closes #9 and closes #15
* c600769 do not require a connection name, unique dsn is generated
* 1b20b9c update travis
* 1097b6a add comments for godoc documentation
* c142a95 fix golint reported issues
2015-08-28 10:25:20 +03:00
Luigi Kapaj
bdbf874463 mock Prepare to return error 2014-09-23 17:38:15 -04:00
gedi
4c6f0e69c3 update formatting and readme 2014-05-29 17:11:13 +03:00
Algirdas Matas
27fabfa23a add custom argument matching 2014-05-29 16:43:37 +03:00
John Robinson
52242da115 make arg expectations optional
sometimes it's impossible to anticipate the args (such as in an
insert), sometimes args don't need to be checked
2014-02-27 13:53:46 -08:00
gedi
af59e07d27 update and test query whitespace stripping 2014-02-07 15:04:47 +02:00
gedi
ee2ed8f2d5 add doc blocks, split files 2014-02-07 10:02:57 +02:00
gedi
2fc5a0dd15 add readme and update error messages 2014-02-06 17:03:46 +02:00
gedi
3e67393335 initial commit 2014-02-05 16:21:07 +02:00