1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-04-19 11:52:35 +02:00

update formatting and readme

This commit is contained in:
gedi 2014-05-29 17:11:13 +03:00
parent 27fabfa23a
commit 4c6f0e69c3
4 changed files with 176 additions and 175 deletions

View File

@ -320,6 +320,7 @@ Visit [godoc](http://godoc.org/github.com/DATA-DOG/go-sqlmock)
## Changes ## Changes
- **2014-05-29** allow to match arguments in more sophisticated ways, by providing an **sqlmock.Argument** interface
- **2014-04-21** introduce **sqlmock.New()** to open a mock database connection for tests. This method - **2014-04-21** introduce **sqlmock.New()** to open a mock database connection for tests. This method
calls sql.DB.Ping to ensure that connection is open, see [issue](https://github.com/DATA-DOG/go-sqlmock/issues/4). calls sql.DB.Ping to ensure that connection is open, see [issue](https://github.com/DATA-DOG/go-sqlmock/issues/4).
This way on Close it will surely assert if all expectations are met, even if database was not triggered at all. This way on Close it will surely assert if all expectations are met, even if database was not triggered at all.