MCPcopy
hub / github.com/grpc/grpc-go / TestClientCredsWithoutFallback

Method TestClientCredsWithoutFallback

credentials/xds/xds_client_test.go:288–292  ·  view source on GitHub ↗

TestClientCredsWithoutFallback verifies that the call to NewClientCredentials() fails when no fallback is specified.

(t *testing.T)

Source from the content-addressed store, hash-verified

286// TestClientCredsWithoutFallback verifies that the call to
287// NewClientCredentials() fails when no fallback is specified.
288func (s) TestClientCredsWithoutFallback(t *testing.T) {
289 if _, err := NewClientCredentials(ClientOptions{}); err == nil {
290 t.Fatal("NewClientCredentials() succeeded without specifying fallback")
291 }
292}
293
294// TestClientCredsInvalidHandshakeInfo verifies scenarios where the passed in
295// HandshakeInfo is invalid because it does not contain the expected certificate

Callers

nothing calls this directly

Calls 2

NewClientCredentialsFunction · 0.85
FatalMethod · 0.65

Tested by

no test coverage detected