(got, want tls.ConnectionState)
| 270 | } |
| 271 | |
| 272 | func compareConnState(got, want tls.ConnectionState) error { |
| 273 | switch { |
| 274 | case got.Version != want.Version: |
| 275 | return fmt.Errorf("TLS.ConnectionState got Version: %v, want: %v", got.Version, want.Version) |
| 276 | case got.HandshakeComplete != want.HandshakeComplete: |
| 277 | return fmt.Errorf("TLS.ConnectionState got HandshakeComplete: %v, want: %v", got.HandshakeComplete, want.HandshakeComplete) |
| 278 | case got.CipherSuite != want.CipherSuite: |
| 279 | return fmt.Errorf("TLS.ConnectionState got CipherSuite: %v, want: %v", got.CipherSuite, want.CipherSuite) |
| 280 | case got.NegotiatedProtocol != want.NegotiatedProtocol: |
| 281 | return fmt.Errorf("TLS.ConnectionState got NegotiatedProtocol: %v, want: %v", got.NegotiatedProtocol, want.NegotiatedProtocol) |
| 282 | } |
| 283 | return nil |
| 284 | } |
| 285 | |
| 286 | // TestClientCredsWithoutFallback verifies that the call to |
| 287 | // NewClientCredentials() fails when no fallback is specified. |
no test coverage detected