]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: reformat test struct.
authorAdam Langley <agl@golang.org>
Fri, 6 Oct 2017 20:03:52 +0000 (13:03 -0700)
committerAdam Langley <agl@golang.org>
Fri, 13 Oct 2017 18:29:40 +0000 (18:29 +0000)
https://golang.org/cl/67270 wasn't `go fmt`ed correctly, according to
the current `go fmt`. However, what `go fmt` did looked odd, so this
change tweaks the test to use a more standard layout.

Whitespace-only; no semantic change.

Change-Id: Id820352e7c9e68189ee485c8a9bfece75ca4f9cb
Reviewed-on: https://go-review.googlesource.com/69031
Run-TryBot: Adam Langley <agl@golang.org>
Reviewed-by: Martin Kreichgauer <martinkr@google.com>
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/x509/x509_test.go

index 008dca35fa519008299bb1685a4e8f81a39a4478..100c8bebfc4916da2462e8f8a37ef78c6dd1740a 100644 (file)
@@ -1544,19 +1544,21 @@ func TestRDNSequenceString(t *testing.T) {
                seq  pkix.RDNSequence
                want string
        }{
-               {seq: pkix.RDNSequence{
-                       pkix.RelativeDistinguishedNameSET{
-                               pkix.AttributeTypeAndValue{Type: oidCountry, Value: "US"},
-                       },
-                       pkix.RelativeDistinguishedNameSET{
-                               pkix.AttributeTypeAndValue{Type: oidOrganization, Value: "Widget Inc."},
-                       },
-                       pkix.RelativeDistinguishedNameSET{
-                               pkix.AttributeTypeAndValue{Type: oidOrganizationalUnit, Value: "Sales"},
-                               pkix.AttributeTypeAndValue{Type: oidCommonName, Value: "J. Smith"},
+               {
+                       seq: pkix.RDNSequence{
+                               pkix.RelativeDistinguishedNameSET{
+                                       pkix.AttributeTypeAndValue{Type: oidCountry, Value: "US"},
+                               },
+                               pkix.RelativeDistinguishedNameSET{
+                                       pkix.AttributeTypeAndValue{Type: oidOrganization, Value: "Widget Inc."},
+                               },
+                               pkix.RelativeDistinguishedNameSET{
+                                       pkix.AttributeTypeAndValue{Type: oidOrganizationalUnit, Value: "Sales"},
+                                       pkix.AttributeTypeAndValue{Type: oidCommonName, Value: "J. Smith"},
+                               },
                        },
+                       want: "OU=Sales+CN=J. Smith,O=Widget Inc.,C=US",
                },
-               want: "OU=Sales+CN=J. Smith,O=Widget Inc.,C=US"},
        }
 
        for i, test := range tests {