MCPcopy Create free account
hub / github.com/cli/cli / tlsFailures

Function tlsFailures

script/ghmock/report.go:119–131  ·  view source on GitHub ↗

tlsFailures lists, once each and in order, the hosts whose TLS handshake with ghmock failed, with the reason.

(requests []loggedRequest)

Source from the content-addressed store, hash-verified

117// tlsFailures lists, once each and in order, the hosts whose TLS handshake
118// with ghmock failed, with the reason.
119func tlsFailures(requests []loggedRequest) []string {
120 seen := map[string]bool{}
121 var failures []string
122 for _, e := range requests {
123 line := e.Host + ": " + e.TLSError
124 if e.TLSError == "" || seen[line] {
125 continue
126 }
127 seen[line] = true
128 failures = append(failures, line)
129 }
130 return failures
131}
132
133// blockedNames lists, once each and in order, requests ghmock refused because
134// they were for another host.

Callers 1

printResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected