(t *testing.T)
| 199 | } |
| 200 | |
| 201 | func TestPathSource(t *testing.T) { |
| 202 | dir := t.TempDir() |
| 203 | defer os.RemoveAll(dir) |
| 204 | certPEM, keyPEM := makePEM("localhost", time.Minute) |
| 205 | saveCert(dir, "localhost", certPEM, keyPEM) |
| 206 | testSource(t, PathSource{CertPath: dir}, makeCertPool(certPEM), 10*time.Millisecond) |
| 207 | } |
| 208 | |
| 209 | func TestHTTPSource(t *testing.T) { |
| 210 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected