aboutsummaryrefslogtreecommitdiff
path: root/src/pkg
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2014-07-03 12:08:24 +0400
committerDmitriy Vyukov <dvyukov@google.com>2014-07-03 12:08:24 +0400
commit2ec3a0a72fbe2cdd4affc67383ae67c503e7469b (patch)
treee326faa570b452e79e13f3ffbf0a64a826000d97 /src/pkg
parentdf75f082d3f18f859ddbd3d002c711a4ec507948 (diff)
downloadgo-2ec3a0a72fbe2cdd4affc67383ae67c503e7469b.tar.xz
crypto/x509: fix format strings in test
Currently it says: --- PASS: TestDecrypt-2 (0.11s) pem_decrypt_test.go:17: test 0. %!s(x509.PEMCipher=1) --- PASS: TestEncrypt-2 (0.00s) pem_decrypt_test.go:42: test 0. %!s(x509.PEMCipher=1) LGTM=alex.brainman R=golang-codereviews, alex.brainman CC=golang-codereviews https://golang.org/cl/108400044
Diffstat (limited to 'src/pkg')
-rw-r--r--src/pkg/crypto/x509/pem_decrypt_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/crypto/x509/pem_decrypt_test.go b/src/pkg/crypto/x509/pem_decrypt_test.go
index 59ba6f9001..13e4700bdd 100644
--- a/src/pkg/crypto/x509/pem_decrypt_test.go
+++ b/src/pkg/crypto/x509/pem_decrypt_test.go
@@ -14,7 +14,7 @@ import (
func TestDecrypt(t *testing.T) {
for i, data := range testData {
- t.Logf("test %d. %s", i, data.kind)
+ t.Logf("test %v. %v", i, data.kind)
block, rest := pem.Decode(data.pemData)
if len(rest) > 0 {
t.Error("extra data")
@@ -39,7 +39,7 @@ func TestDecrypt(t *testing.T) {
func TestEncrypt(t *testing.T) {
for i, data := range testData {
- t.Logf("test %d. %s", i, data.kind)
+ t.Logf("test %v. %v", i, data.kind)
plainDER, err := base64.StdEncoding.DecodeString(data.plainDER)
if err != nil {
t.Fatal("cannot decode test DER data: ", err)