]> Cypherpunks repositories - gostls13.git/commit
crypto/tls: pretty-print SignatureScheme in tests
authorDaiki Ueno <dueno@redhat.com>
Sat, 23 Sep 2023 23:25:20 +0000 (23:25 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 25 Sep 2023 14:43:15 +0000 (14:43 +0000)
commitde3bae1952ba058b96649bce0b35f1e5dbb73805
tree1803808dbe8dcfb3f898d83b7f80dc035c1a7f20
parent80e642cb7a73a7bc1169655bc299abe8629475dc
crypto/tls: pretty-print SignatureScheme in tests

When running crypto/tls tests with GOEXPERIMENT=boringcrypto, some
tests are embedded with unreadable hexadecimal values:

  === RUN   TestBoringServerSignatureAndHash/5053...3536

This corresponds to a string representation of SignatureScheme as it
implements fmt.Stringer.  With this change, the above will be printed
as:

  === RUN   TestBoringServerSignatureAndHash/PSSWithSHA256

Change-Id: I953c0bb35c68e77a7f01e7f1fceda203c272faf7
GitHub-Last-Rev: 19700d53a8578d335dc803ac94cc7c6c72e9920a
GitHub-Pull-Request: golang/go#63175
Reviewed-on: https://go-review.googlesource.com/c/go/+/530715
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
Auto-Submit: Filippo Valsorda <filippo@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/crypto/tls/boring_test.go