mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-06-08 23:36:15 +02:00
fix go vet tool reported formatting issues
This commit is contained in:
parent
11d3eed600
commit
37302508b4
@ -10,7 +10,7 @@ import (
|
|||||||
func TestExpectedPreparedStatemtCloseError(t *testing.T) {
|
func TestExpectedPreparedStatemtCloseError(t *testing.T) {
|
||||||
conn, mock, err := New()
|
conn, mock, err := New()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to open sqlmock database:", err)
|
t.Fatal("failed to open sqlmock database:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
mock.ExpectBegin()
|
mock.ExpectBegin()
|
||||||
@ -19,12 +19,12 @@ func TestExpectedPreparedStatemtCloseError(t *testing.T) {
|
|||||||
|
|
||||||
txn, err := conn.Begin()
|
txn, err := conn.Begin()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unexpected error while opening transaction:", err)
|
t.Fatal("unexpected error while opening transaction:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
stmt, err := txn.Prepare("SELECT")
|
stmt, err := txn.Prepare("SELECT")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("unexpected error while preparing a statement:", err)
|
t.Fatal("unexpected error while preparing a statement:", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := stmt.Close(); err != want {
|
if err := stmt.Close(); err != want {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user