You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
m.ExpectQuery("select name from t").WithArgs(1, 2)
db.QueryRow("select name from t where id in ? limit 1", []int{1, 2})
if err := m.ExpectationsWereMet(); err != nil {
t.Errorf("there were unfulfilled expectations: %s", err)
}
i got
there were unfulfilled expectations: there is a remaining expectation which was not matched: ExpectedQuery => expecting Query, QueryContext or QueryRow which:
- matches sql: 'select name from t'
- is with arguments:
0 - 1
1 - 2
Query, QueryContext or QueryRow
no QueryRowContext
The text was updated successfully, but these errors were encountered:
mycode
i got
Query, QueryContext or QueryRow
no QueryRowContext
The text was updated successfully, but these errors were encountered: