blockedNames lists, once each and in order, requests ghmock refused because they were for another host.
(requests []loggedRequest)
| 133 | // blockedNames lists, once each and in order, requests ghmock refused because |
| 134 | // they were for another host. |
| 135 | func 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. |
| 150 | func printProblems(w io.Writer, requests []loggedRequest) { |
no test coverage detected