(t *testing.T)
| 191 | } |
| 192 | |
| 193 | func TestFileSource(t *testing.T) { |
| 194 | dir := t.TempDir() |
| 195 | defer os.RemoveAll(dir) |
| 196 | certPEM, keyPEM := makePEM("localhost", time.Minute) |
| 197 | certFile, keyFile := saveCert(dir, "localhost", certPEM, keyPEM) |
| 198 | testSource(t, FileSource{CertFile: certFile, KeyFile: keyFile}, makeCertPool(certPEM), 0) |
| 199 | } |
| 200 | |
| 201 | func TestPathSource(t *testing.T) { |
| 202 | dir := t.TempDir() |
nothing calls this directly
no test coverage detected