MCPcopy Create free account
hub / github.com/FiloSottile/intermediates / TestIncompleteChain

Function TestIncompleteChain

intermediates_test.go:26–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func 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
40func TestCount(t *testing.T) {
41 if gotCount := len(Pool().Subjects()); gotCount != expectedCount {

Callers

nothing calls this directly

Calls 1

VerifyConnectionFunction · 0.85

Tested by

no test coverage detected