Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4)

Issue 14762044: code review 14762044: database/sql: fix some test fmt verbs (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by bradfitz
Modified:
11 years, 6 months ago
Reviewers:
r, adg1
CC:
golang-dev, r
Visibility:
Public.

Description

database/sql: fix some test fmt verbs Found by vet.

Patch Set 1 #

Patch Set 2 : diff -r c67a1d0df694 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r c67a1d0df694 https://go.googlecode.com/hg/ #

Patch Set 4 : diff -r d38922f92be6 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
src/pkg/database/sql/convert_test.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
src/pkg/database/sql/driver/types_test.go View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 4
bradfitz
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
11 years, 6 months ago (2013-10-16 22:06:26 UTC) #1
r
LGTM
11 years, 6 months ago (2013-10-16 23:25:21 UTC) #2
bradfitz
*** Submitted as https://code.google.com/p/go/source/detail?r=7e04f28e139a *** database/sql: fix some test fmt verbs Found by vet. R=golang-dev, ...
11 years, 6 months ago (2013-10-16 23:30:42 UTC) #3
adg1
11 years, 6 months ago (2013-10-17 00:28:48 UTC) #4
LGTM
On 17 Oct 2013 07:06, <bradfitz@golang.org> wrote:

> Reviewers: golang-dev1,
>
> Message:
> Hello golang-dev@googlegroups.com,
>
> I'd like you to review this change to
> https://go.googlecode.com/hg/
>
>
> Description:
> database/sql: fix some test fmt verbs
>
> Found by vet.
>
> Please review this at
https://codereview.appspot.**com/14762044/<https://codereview.appspot.com/147...
>
> Affected files (+4, -4 lines):
>   M src/pkg/database/sql/convert_**test.go
>   M src/pkg/database/sql/driver/**types_test.go
>
>
> Index: src/pkg/database/sql/convert_**test.go
> ==============================**==============================**=======
> --- a/src/pkg/database/sql/**convert_test.go
> +++ b/src/pkg/database/sql/**convert_test.go
> @@ -267,14 +267,14 @@
>                         goterr = err.Error()
>                 }
>                 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)
>                 }
>                 if tt.err != "" {
>                         continue
>                 }
>                 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)
>                 }
>         }
> Index: src/pkg/database/sql/driver/**types_test.go
> ==============================**==============================**=======
> --- a/src/pkg/database/sql/driver/**types_test.go
> +++ b/src/pkg/database/sql/driver/**types_test.go
> @@ -51,14 +51,14 @@
>                         goterr = err.Error()
>                 }
>                 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)
>                 }
>                 if tt.err != "" {
>                         continue
>                 }
>                 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)
>                 }
>         }
>
>
> --
>
> ---You received this message because you are subscribed to the Google
> Groups "golang-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-dev+unsubscribe@**googlegroups.com<golang-dev%2Bunsubscribe@googlegrou...
> .
> For more options, visit
https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/o...
> .
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b