(t *testing.T)
| 12 | ) |
| 13 | |
| 14 | func TestBadSSL(t *testing.T) { |
| 15 | t.Skip("badssl.com certificates are currently expired") |
| 16 | c, err := tls.Dial("tcp", "incomplete-chain.badssl.com:443", &tls.Config{ |
| 17 | InsecureSkipVerify: true, |
| 18 | VerifyConnection: VerifyConnection, |
| 19 | }) |
| 20 | if err != nil { |
| 21 | t.Fatal(err) |
| 22 | } |
| 23 | defer c.Close() |
| 24 | } |
| 25 | |
| 26 | func TestIncompleteChain(t *testing.T) { |
| 27 | c, err := tls.Dial("tcp", "google.com:443", &tls.Config{ |
nothing calls this directly
no outgoing calls
no test coverage detected