diff --git a/README.md b/README.md index 16a825f..f2f604c 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ func TestShouldUpdateStats(t *testing.T) { // we make sure that all expectations were met if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -139,7 +139,7 @@ func TestShouldRollbackStatUpdatesOnFailure(t *testing.T) { // we make sure that all expectations were met if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } ``` @@ -177,7 +177,7 @@ func TestAnyTimeArgument(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } ``` diff --git a/argument_test.go b/argument_test.go index 3088ed4..0e0d13b 100644 --- a/argument_test.go +++ b/argument_test.go @@ -32,7 +32,7 @@ func TestAnyTimeArgument(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -53,6 +53,6 @@ func TestByteSliceArgument(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } diff --git a/examples/basic/basic_test.go b/examples/basic/basic_test.go index 0825f90..e9153a5 100644 --- a/examples/basic/basic_test.go +++ b/examples/basic/basic_test.go @@ -27,7 +27,7 @@ func TestShouldUpdateStats(t *testing.T) { // we make sure that all expectations were met if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -53,6 +53,6 @@ func TestShouldRollbackStatUpdatesOnFailure(t *testing.T) { // we make sure that all expectations were met if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } diff --git a/examples/blog/blog_test.go b/examples/blog/blog_test.go index aa1881a..2442067 100644 --- a/examples/blog/blog_test.go +++ b/examples/blog/blog_test.go @@ -61,7 +61,7 @@ func TestShouldGetPosts(t *testing.T) { // we make sure that all expectations were met if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -97,6 +97,6 @@ func TestShouldRespondWithErrorOnFailure(t *testing.T) { // we make sure that all expectations were met if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } diff --git a/examples/orders/orders_test.go b/examples/orders/orders_test.go index 7562b8f..1dd10b1 100644 --- a/examples/orders/orders_test.go +++ b/examples/orders/orders_test.go @@ -34,7 +34,7 @@ func TestShouldNotCancelOrderWithNonPendingStatus(t *testing.T) { } // we make sure that all expectations were met if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -73,7 +73,7 @@ func TestShouldRefundUserWhenOrderIsCancelled(t *testing.T) { } // we make sure that all expectations were met if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -103,6 +103,6 @@ func TestShouldRollbackOnError(t *testing.T) { } // we make sure that all expectations were met if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } diff --git a/rows_go18_test.go b/rows_go18_test.go index 297e7c0..c776def 100644 --- a/rows_go18_test.go +++ b/rows_go18_test.go @@ -87,6 +87,6 @@ func TestQueryMultiRows(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } diff --git a/sqlmock_go18_test.go b/sqlmock_go18_test.go index 9eadcb5..abc2452 100644 --- a/sqlmock_go18_test.go +++ b/sqlmock_go18_test.go @@ -43,7 +43,7 @@ func TestContextExecCancel(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -87,7 +87,7 @@ func TestPreparedStatementContextExecCancel(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -126,7 +126,7 @@ func TestContextExecWithNamedArg(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -163,7 +163,7 @@ func TestContextExec(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -204,7 +204,7 @@ func TestContextQueryCancel(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -251,7 +251,7 @@ func TestPreparedStatementContextQueryCancel(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -287,7 +287,7 @@ func TestContextQuery(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -323,7 +323,7 @@ func TestContextBeginCancel(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -354,7 +354,7 @@ func TestContextBegin(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -390,7 +390,7 @@ func TestContextPrepareCancel(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -421,6 +421,6 @@ func TestContextPrepare(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } diff --git a/sqlmock_test.go b/sqlmock_test.go index 9c48d3d..ecbd5d1 100644 --- a/sqlmock_test.go +++ b/sqlmock_test.go @@ -70,7 +70,7 @@ func TestIssue14EscapeSQL(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -138,7 +138,7 @@ func TestMockQuery(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -195,7 +195,7 @@ func TestMockQueryTypes(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -244,7 +244,7 @@ func TestTransactionExpectations(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -292,7 +292,7 @@ func TestPrepareExpectations(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -350,7 +350,7 @@ func TestPreparedQueryExecutions(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -504,7 +504,7 @@ func TestExecExpectations(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -596,7 +596,7 @@ func TestRowBuilderAndNilTypes(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -655,7 +655,7 @@ func TestGoroutineExecutionWithUnorderedExpectationMatching(t *testing.T) { wg.Wait() if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -695,7 +695,7 @@ func ExampleSqlmock_goroutines() { wg.Wait() if err := mock.ExpectationsWereMet(); err != nil { - fmt.Println("there were unfulfilled expections:", err) + fmt.Println("there were unfulfilled expectations:", err) } // Output: } @@ -947,7 +947,7 @@ func TestPrepareExec(t *testing.T) { } tx.Commit() if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -986,7 +986,7 @@ func TestPrepareQuery(t *testing.T) { } tx.Commit() if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -1002,7 +1002,7 @@ func TestExpectedCloseError(t *testing.T) { t.Error("an error was expected when calling close, but got none") } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } } @@ -1060,6 +1060,6 @@ func TestPreparedStatementCloseExpectation(t *testing.T) { } if err := mock.ExpectationsWereMet(); err != nil { - t.Errorf("there were unfulfilled expections: %s", err) + t.Errorf("there were unfulfilled expectations: %s", err) } }