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

Function missingNames

script/ghmock/report.go:279–290  ·  view source on GitHub ↗

missingNames lists, once each and in order, requests that had no response.

(requests []loggedRequest)

Source from the content-addressed store, hash-verified

277
278// missingNames lists, once each and in order, requests that had no response.
279func missingNames(requests []loggedRequest) []string {
280 seen := map[string]bool{}
281 var names []string
282 for _, e := range requests {
283 if e.Matched || e.Git != nil || e.Blocked || e.TLSError != "" || seen[e.Name] {
284 continue
285 }
286 seen[e.Name] = true
287 names = append(names, e.Name)
288 }
289 return names
290}
291
292func printDifferences(w io.Writer, base, other runResult, n int) {
293 fmt.Fprintf(w, "[%d] %s:\n", n, other.version)

Callers 1

printResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected