(t *testing.T)
| 182 | } |
| 183 | |
| 184 | func TestStaticSource(t *testing.T) { |
| 185 | certPEM, keyPEM := makePEM("localhost", time.Minute) |
| 186 | cert, err := tls.X509KeyPair(certPEM, keyPEM) |
| 187 | if err != nil { |
| 188 | t.Fatalf("X509KeyPair: got %s want nil", err) |
| 189 | } |
| 190 | testSource(t, StaticSource{cert, nil}, makeCertPool(certPEM), 0) |
| 191 | } |
| 192 | |
| 193 | func TestFileSource(t *testing.T) { |
| 194 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected