1
0
mirror of https://github.com/zhashkevych/go-sqlxmock.git synced 2024-11-24 08:12:13 +02:00
Commit Graph

66 Commits

Author SHA1 Message Date
Gediminas Morkevicius
f191e86036 Merge pull request #41 from omnicolor/fix-typo
Fixed typo (stetement -> statement)
2016-04-14 09:08:51 +03:00
Omni Adams
4e7175497a
Fixed typo (stetement -> statement) 2016-04-13 14:19:21 -05:00
Gediminas Morkevicius
9958e5c69d Merge pull request #39 from jamiecuthill/master
Trigger expectations met when query and args matched
2016-02-26 19:13:42 +00:00
Jamie Cuthill
4689a4afbf When Exec/Query is expected to error correctly mark expectation as triggered
- Fixes regression from issue 37 'fix'
2016-02-26 16:07:19 +00:00
gedi
37302508b4 fix go vet tool reported formatting issues 2016-02-26 14:45:18 +02:00
gedi
11d3eed600 change package url for README consistency with example, closes #34 2016-02-26 14:41:45 +02:00
gedi
b465b1f024 refers to #37 2016-02-26 14:38:04 +02:00
Gediminas Morkevicius
55a0289da5 Merge pull request #38 from jamiecuthill/master
Fixes issue with false positive on met expectations
2016-02-26 12:27:59 +00:00
Jamie Cuthill
721ae9b924 Move expectation triggered below error cases.
- Issue https://github.com/DATA-DOG/go-sqlmock/issues/37
2016-02-26 11:37:24 +00:00
gedi
3769fed739 add a test for slice argument matching 2016-02-25 15:43:56 +02:00
Gediminas Morkevicius
f071545205 Merge pull request #36 from skriptble/master
Fixing incorrect []byte handling in expectation.
2016-02-25 13:42:47 +00: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
Gediminas Morkevicius
b54b0cd4c8 Merge pull request #32 from DATA-DOG/natural-argument-converters
Natural argument converters
2016-02-23 10:03:17 +00:00
gedi
cee8a78569 add 1.6 to travis 2016-02-23 11:57:14 +02:00
gedi
4bb07b88b3 closes #25 2016-02-23 11:47:39 +02: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
gedi
808cdc9973 document time.Time argument matching example 2016-02-04 09:42:49 +02:00
Gediminas Morkevicius
f49a90b6f7 Merge pull request #28 from mrroman/master
Add bool type to query arg matcher
2016-01-27 18:03:58 +02:00
Konrad Mrozek
4a802e4278 add bool type to query arg matcher 2016-01-26 15:20:18 +01:00
gedi
f55ca83ba0 update travis ci config 2016-01-21 21:18:28 +02:00
gedi
5b568f0d25 update readme and check with linters 2016-01-21 21:09:44 +02:00
gedi
081a694b0a closes #24 2015-09-10 21:31:35 +03:00
gedi
febff80c09 do not expose sql driver methods for sqlmock, give interface 2015-08-28 11:06:14 +03:00
Gediminas Morkevicius
711064c51d Merge pull request #21 from DATA-DOG/refactor
concurrency support, closes #20 and closes #9 and closes #15
2015-08-28 10:37:42 +03:00
gedi
32a1b9d93f update readme and add example
* dcca987 add an old example and a basic one
2015-08-28 10:26:55 +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
5a740a6373 rows scan error mocking test 2015-08-28 10:26:42 +03:00
gedi
acfbd5d998 allow null values from csv string to be converted to nil 2015-08-28 10:26:42 +03:00
gedi
dc0efdab8f allow to set errors for rows scan
* 9a36c2e more examples and tests for rows
* 908877e cannot mock rows.Columns error so far
2015-08-28 10:25:49 +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
gedi
ed4836e31d update readme 2015-07-09 09:21:36 +03:00
Gediminas Morkevicius
f900b6ec8a Merge pull request #19 from brunoqc/patch-1
Fix typo in README
2015-06-27 11:07:18 +03:00
Bruno Bigras
51558a3715 Fix typo in README 2015-06-26 14:29:02 -04:00
gedi
5d1551fda1 check for errors 2015-03-30 22:32:57 +03:00
gedi
e163520142 related to sql escaping #14 2015-03-30 21:38:39 +03:00
gedi
5b6166bfbf update travis 2015-01-25 12:40:37 +02:00
Gediminas Morkevicius
8b39a1b05d Merge pull request #12 from totalcareauto/cj_expectation_error
Move errors in expectation to after query and args checks.
2015-01-25 11:42:48 +02:00
Craig Jackson
02e14710b4 Move errors in expectation to after query and args checks. 2015-01-23 16:22:41 -07:00
Gediminas Morkevicius
f532427f05 Merge pull request #8 from PuppyKhan/master
ExpectPrepare() addition
2014-09-25 09:20:40 +03:00
Luigi Kapaj
8db2b3b2d2 docs for ExpectPrepare 2014-09-24 16:13:35 -04:00
Luigi Kapaj
cd47226ce2 unit test for Prepare 2014-09-24 16:05:15 -04:00
Luigi Kapaj
bdbf874463 mock Prepare to return error 2014-09-23 17:38:15 -04:00
gedi
e36ad8d068 return error instead panic if argument reflection types are not matching 2014-08-16 12:57:40 +03:00
gedi
c8ac9dfd29 mention about escaping characters for regular expressions #6 2014-08-15 21:44:50 +03:00
gedi
db5b4c9deb update travis to get vet tool 2014-08-14 20:48:03 +03:00
gedi
60b2068e00 closes #5 2014-08-14 20:38:46 +03: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