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

Function blockedNames

script/ghmock/report.go:135–147  ·  view source on GitHub ↗

blockedNames lists, once each and in order, requests ghmock refused because they were for another host.

(requests []loggedRequest)

Source from the content-addressed store, hash-verified

133// blockedNames lists, once each and in order, requests ghmock refused because
134// they were for another host.
135func blockedNames(requests []loggedRequest) []string {
136 seen := map[string]bool{}
137 var names []string
138 for _, e := range requests {
139 name := displayName(e)
140 if !e.Blocked || seen[name] {
141 continue
142 }
143 seen[name] = true
144 names = append(names, name)
145 }
146 return names
147}
148
149// printProblems lists what the schema checks found, request by request.
150func printProblems(w io.Writer, requests []loggedRequest) {

Callers 1

printResultFunction · 0.85

Calls 1

displayNameFunction · 0.70

Tested by

no test coverage detected