1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-06-23 00:17:47 +02:00

improves error messages, closes #77

This commit is contained in:
gedi
2017-04-26 09:56:02 +03:00
parent a32ff1cda1
commit 18ab7ac1c7
5 changed files with 51 additions and 18 deletions

View File

@ -23,7 +23,7 @@ func ExampleNewResult() {
result := NewResult(lastInsertID, affected)
mock.ExpectExec("^INSERT (.+)").WillReturnResult(result)
fmt.Println(mock.ExpectationsWereMet())
// Output: there is a remaining expectation which was not matched: ExpectedExec => expecting Exec which:
// Output: there is a remaining expectation which was not matched: ExpectedExec => expecting Exec or ExecContext which:
// - matches sql: '^INSERT (.+)'
// - is without arguments
// - should return Result having: