1
0
mirror of https://github.com/DATA-DOG/go-sqlmock.git synced 2025-07-01 00:34:53 +02:00

Fixed some typos

This commit is contained in:
Theo
2019-02-27 19:44:03 +00:00
parent 7f7699b45e
commit 882c1d1daa
7 changed files with 13 additions and 14 deletions

View File

@ -35,21 +35,21 @@ func TestShouldReturnValidSqlDriverResult(t *testing.T) {
result := NewResult(1, 2)
id, err := result.LastInsertId()
if 1 != id {
t.Errorf("Expected last insert id to be 1, but got: %d", id)
t.Errorf("expected last insert id to be 1, but got: %d", id)
}
if err != nil {
t.Errorf("expected no error, but got: %s", err)
}
affected, err := result.RowsAffected()
if 2 != affected {
t.Errorf("Expected affected rows to be 2, but got: %d", affected)
t.Errorf("expected affected rows to be 2, but got: %d", affected)
}
if err != nil {
t.Errorf("expected no error, but got: %s", err)
}
}
func TestShouldReturnErroeSqlDriverResult(t *testing.T) {
func TestShouldReturnErrorSqlDriverResult(t *testing.T) {
result := NewErrorResult(fmt.Errorf("some error"))
_, err := result.LastInsertId()
if err == nil {