missingNames lists, once each and in order, requests that had no response.
(requests []loggedRequest)
| 277 | |
| 278 | // missingNames lists, once each and in order, requests that had no response. |
| 279 | func 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 | |
| 292 | func printDifferences(w io.Writer, base, other runResult, n int) { |
| 293 | fmt.Fprintf(w, "[%d] %s:\n", n, other.version) |