(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func TestIncompleteChain(t *testing.T) { |
| 27 | c, err := tls.Dial("tcp", "google.com:443", &tls.Config{ |
| 28 | InsecureSkipVerify: true, |
| 29 | VerifyConnection: func(cs tls.ConnectionState) error { |
| 30 | cs.PeerCertificates = cs.PeerCertificates[:1] |
| 31 | return VerifyConnection(cs) |
| 32 | }, |
| 33 | }) |
| 34 | if err != nil { |
| 35 | t.Fatal(err) |
| 36 | } |
| 37 | defer c.Close() |
| 38 | } |
| 39 | |
| 40 | func TestCount(t *testing.T) { |
| 41 | if gotCount := len(Pool().Subjects()); gotCount != expectedCount { |
nothing calls this directly
no test coverage detected