mirror of
https://github.com/golang/go
synced 2024-11-22 01:44:40 -07:00
src/*: fix incorrect prints found by govet
R=gri CC=golang-dev https://golang.org/cl/4169044
This commit is contained in:
parent
cc4d57abac
commit
34fc17a820
@ -27,7 +27,7 @@ func testOCFB(t *testing.T, resync OCFBResyncOption) {
|
|||||||
|
|
||||||
ocfbdec := NewOCFBDecrypter(block, prefix, resync)
|
ocfbdec := NewOCFBDecrypter(block, prefix, resync)
|
||||||
if ocfbdec == nil {
|
if ocfbdec == nil {
|
||||||
t.Error("NewOCFBDecrypter failed (resync: %t)", resync)
|
t.Errorf("NewOCFBDecrypter failed (resync: %t)", resync)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
plaintextCopy := make([]byte, len(plaintext))
|
plaintextCopy := make([]byte, len(plaintext))
|
||||||
|
@ -115,7 +115,7 @@ func TestPartialLengthReader(t *testing.T) {
|
|||||||
|
|
||||||
got := fmt.Sprintf("%x", out)
|
got := fmt.Sprintf("%x", out)
|
||||||
if got != test.hexOutput {
|
if got != test.hexOutput {
|
||||||
t.Errorf("%d: got:%s want:%s", test.hexOutput, got)
|
t.Errorf("%d: got:%s want:%s", i, test.hexOutput, got)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -908,7 +908,7 @@ func (a *stmtCompiler) compileBranchStmt(s *ast.BranchStmt) {
|
|||||||
return
|
return
|
||||||
|
|
||||||
default:
|
default:
|
||||||
log.Panic("Unexpected branch token %v", s.Tok)
|
log.Panicf("Unexpected branch token %v", s.Tok)
|
||||||
}
|
}
|
||||||
|
|
||||||
a.flow.put1(false, pc)
|
a.flow.put1(false, pc)
|
||||||
|
@ -740,7 +740,7 @@ func TestFormatters(t *testing.T) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if strings.Index(err.String(), c.err) < 0 {
|
if strings.Index(err.String(), c.err) < 0 {
|
||||||
t.Error("unexpected error: expected %q, got %q", c.err, err.String())
|
t.Errorf("unexpected error: expected %q, got %q", c.err, err.String())
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user