(t *testing.T, certPath, keyPath string)
| 519 | } |
| 520 | |
| 521 | func 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 | |
| 530 | type testProviderWithRoots struct { |
| 531 | certprovider.Provider |
no test coverage detected