You've already forked go-sqlmock
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:
@ -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:
|
||||
|
Reference in New Issue
Block a user