(bs map[string][]byte, src, dst string)
| 1031 | } |
| 1032 | |
| 1033 | func writeCertificate(bs map[string][]byte, src, dst string) { |
| 1034 | b, ok := bs[src] |
| 1035 | if !ok { |
| 1036 | panic(fmt.Sprintf("Couldn't find %q in bs", src)) |
| 1037 | } |
| 1038 | if err := os.WriteFile(dst, b, 0o664); err != nil { |
| 1039 | panic(err) |
| 1040 | } |
| 1041 | } |
| 1042 | |
| 1043 | func TestTLSRoundTripper(t *testing.T) { |
| 1044 | bs := getCertificateBlobs(t) |
no outgoing calls
no test coverage detected
searching dependent graphs…