Commit e5babeff authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

database/sql: fix some test fmt verbs

Found by vet.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/14762044
parent 15da997c
...@@ -267,14 +267,14 @@ func TestValueConverters(t *testing.T) { ...@@ -267,14 +267,14 @@ func TestValueConverters(t *testing.T) {
goterr = err.Error() goterr = err.Error()
} }
if goterr != tt.err { if goterr != tt.err {
t.Errorf("test %d: %s(%T(%v)) error = %q; want error = %q", t.Errorf("test %d: %T(%T(%v)) error = %q; want error = %q",
i, tt.c, tt.in, tt.in, goterr, tt.err) i, tt.c, tt.in, tt.in, goterr, tt.err)
} }
if tt.err != "" { if tt.err != "" {
continue continue
} }
if !reflect.DeepEqual(out, tt.out) { if !reflect.DeepEqual(out, tt.out) {
t.Errorf("test %d: %s(%T(%v)) = %v (%T); want %v (%T)", t.Errorf("test %d: %T(%T(%v)) = %v (%T); want %v (%T)",
i, tt.c, tt.in, tt.in, out, out, tt.out, tt.out) i, tt.c, tt.in, tt.in, out, out, tt.out, tt.out)
} }
} }
......
...@@ -51,14 +51,14 @@ func TestValueConverters(t *testing.T) { ...@@ -51,14 +51,14 @@ func TestValueConverters(t *testing.T) {
goterr = err.Error() goterr = err.Error()
} }
if goterr != tt.err { if goterr != tt.err {
t.Errorf("test %d: %s(%T(%v)) error = %q; want error = %q", t.Errorf("test %d: %T(%T(%v)) error = %q; want error = %q",
i, tt.c, tt.in, tt.in, goterr, tt.err) i, tt.c, tt.in, tt.in, goterr, tt.err)
} }
if tt.err != "" { if tt.err != "" {
continue continue
} }
if !reflect.DeepEqual(out, tt.out) { if !reflect.DeepEqual(out, tt.out) {
t.Errorf("test %d: %s(%T(%v)) = %v (%T); want %v (%T)", t.Errorf("test %d: %T(%T(%v)) = %v (%T); want %v (%T)",
i, tt.c, tt.in, tt.in, out, out, tt.out, tt.out) i, tt.c, tt.in, tt.in, out, out, tt.out, tt.out)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment