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

Function loadCert

internal/credentials/xds/handshake_info_test.go:521–528  ·  view source on GitHub ↗
(t *testing.T, certPath, keyPath string)

Source from the content-addressed store, hash-verified

519}
520
521func loadCert(t *testing.T, certPath, keyPath string) [][]byte {
522 cert, err := tls.LoadX509KeyPair(certPath, keyPath)
523 if err != nil {
524 t.Fatalf("LoadX509KeyPair(%s, %s) failed: %v", certPath, keyPath, err)
525 }
526 return cert.Certificate
527
528}
529
530type testProviderWithRoots struct {
531 certprovider.Provider

Callers 1

Calls 1

FatalfMethod · 0.65

Tested by

no test coverage detected