mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: fix some vet-caught formatting errors, mostly but not only in tests
Could go in 1.5, although not critical. See also #12107 Change-Id: I7f1608b58581d21df4db58f0db654fef79e33a90 Reviewed-on: https://go-review.googlesource.com/13481 Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
parent
39e77bff85
commit
f62b749ae2
9 changed files with 15 additions and 15 deletions
|
|
@ -91,11 +91,11 @@ func testNonceSafety(t *testing.T, c elliptic.Curve, tag string) {
|
|||
|
||||
if s0.Cmp(s1) == 0 {
|
||||
// This should never happen.
|
||||
t.Errorf("%s: the signatures on two different messages were the same")
|
||||
t.Errorf("%s: the signatures on two different messages were the same", tag)
|
||||
}
|
||||
|
||||
if r0.Cmp(r1) == 0 {
|
||||
t.Errorf("%s: the nonce used for two diferent messages was the same")
|
||||
t.Errorf("%s: the nonce used for two diferent messages was the same", tag)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -126,11 +126,11 @@ func testINDCCA(t *testing.T, c elliptic.Curve, tag string) {
|
|||
}
|
||||
|
||||
if s0.Cmp(s1) == 0 {
|
||||
t.Errorf("%s: two signatures of the same message produced the same result")
|
||||
t.Errorf("%s: two signatures of the same message produced the same result", tag)
|
||||
}
|
||||
|
||||
if r0.Cmp(r1) == 0 {
|
||||
t.Errorf("%s: two signatures of the same message produced the same nonce")
|
||||
t.Errorf("%s: two signatures of the same message produced the same nonce", tag)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue