Skip to content

Commit 504a305

Browse files
committed
crypto/x509: reformat test struct.
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 <[email protected]> Reviewed-by: Martin Kreichgauer <[email protected]> Reviewed-by: Adam Langley <[email protected]>
1 parent f5cd386 commit 504a305

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

src/crypto/x509/x509_test.go

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,19 +1544,21 @@ func TestRDNSequenceString(t *testing.T) {
15441544
seq pkix.RDNSequence
15451545
want string
15461546
}{
1547-
{seq: pkix.RDNSequence{
1548-
pkix.RelativeDistinguishedNameSET{
1549-
pkix.AttributeTypeAndValue{Type: oidCountry, Value: "US"},
1550-
},
1551-
pkix.RelativeDistinguishedNameSET{
1552-
pkix.AttributeTypeAndValue{Type: oidOrganization, Value: "Widget Inc."},
1553-
},
1554-
pkix.RelativeDistinguishedNameSET{
1555-
pkix.AttributeTypeAndValue{Type: oidOrganizationalUnit, Value: "Sales"},
1556-
pkix.AttributeTypeAndValue{Type: oidCommonName, Value: "J. Smith"},
1547+
{
1548+
seq: pkix.RDNSequence{
1549+
pkix.RelativeDistinguishedNameSET{
1550+
pkix.AttributeTypeAndValue{Type: oidCountry, Value: "US"},
1551+
},
1552+
pkix.RelativeDistinguishedNameSET{
1553+
pkix.AttributeTypeAndValue{Type: oidOrganization, Value: "Widget Inc."},
1554+
},
1555+
pkix.RelativeDistinguishedNameSET{
1556+
pkix.AttributeTypeAndValue{Type: oidOrganizationalUnit, Value: "Sales"},
1557+
pkix.AttributeTypeAndValue{Type: oidCommonName, Value: "J. Smith"},
1558+
},
15571559
},
1560+
want: "OU=Sales+CN=J. Smith,O=Widget Inc.,C=US",
15581561
},
1559-
want: "OU=Sales+CN=J. Smith,O=Widget Inc.,C=US"},
15601562
}
15611563

15621564
for i, test := range tests {

0 commit comments

Comments
 (0)