(cert *Certificate, valid bool, hostname string, t *testing.T)
| 39 | } |
| 40 | |
| 41 | func assertHostname(cert *Certificate, valid bool, hostname string, t *testing.T) error { |
| 42 | if hostname != "github.com" { |
| 43 | t.Fatal("hostname does not match") |
| 44 | return errors.New("hostname does not match") |
| 45 | } |
| 46 | |
| 47 | return nil |
| 48 | } |
| 49 | |
| 50 | func TestCertificateCheck(t *testing.T) { |
| 51 | t.Parallel() |
no outgoing calls
no test coverage detected
searching dependent graphs…