diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2018-06-07 09:38:18 +0200 |
---|---|---|
committer | Brad Fitzpatrick <bradfitz@golang.org> | 2018-06-07 15:01:06 +0000 |
commit | db4675f2de3a09d198cbc9bbf5120eec4fb54338 (patch) | |
tree | c28b4438250cd6d1f9c959d767233e3ac42b58f3 /src/encoding/asn1 | |
parent | 581ed192e5c9f9015e8a50f34cb9d5880066a9db (diff) | |
download | go-db4675f2de3a09d198cbc9bbf5120eec4fb54338.tar.gz go-db4675f2de3a09d198cbc9bbf5120eec4fb54338.zip |
encoding/asn1: gofmt
CL 113837 introduced some changes which were not properly gofmt'ed, fix them.
Change-Id: I89329063f9c468238051e45380d752e66efdb939
Reviewed-on: https://go-review.googlesource.com/116895
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/encoding/asn1')
-rw-r--r-- | src/encoding/asn1/marshal_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/encoding/asn1/marshal_test.go b/src/encoding/asn1/marshal_test.go index b19b08b352..a77826a7b0 100644 --- a/src/encoding/asn1/marshal_test.go +++ b/src/encoding/asn1/marshal_test.go @@ -8,10 +8,10 @@ import ( "bytes" "encoding/hex" "math/big" + "reflect" "strings" "testing" "time" - "reflect" ) type intStruct struct { @@ -258,9 +258,9 @@ func TestMarshalOID(t *testing.T) { var marshalTestsOID = []marshalTest{ {[]byte("\x06\x01\x30"), "0403060130"}, // bytes format returns a byte sequence \x04 // {ObjectIdentifier([]int{0}), "060100"}, // returns an error as OID 0.0 has the same encoding - {[]byte("\x06\x010"), "0403060130"}, // same as above "\x06\x010" = "\x06\x01" + "0" - {ObjectIdentifier([]int{2,999,3}), "0603883703"}, // Example of ITU-T X.690 - {ObjectIdentifier([]int{0,0}), "060100"}, // zero OID + {[]byte("\x06\x010"), "0403060130"}, // same as above "\x06\x010" = "\x06\x01" + "0" + {ObjectIdentifier([]int{2, 999, 3}), "0603883703"}, // Example of ITU-T X.690 + {ObjectIdentifier([]int{0, 0}), "060100"}, // zero OID } for i, test := range marshalTestsOID { data, err := Marshal(test.in) @@ -294,7 +294,7 @@ func TestIssue11130(t *testing.T) { return } - if !bytes.Equal(data,data1) { + if !bytes.Equal(data, data1) { t.Errorf("got: %q, want: %q \n", data1, data) return } |