addedPaths lists where fields were added. Indexes become *, so a field added to every item of a list is listed once.
(paths []string)
| 320 | // addedPaths lists where fields were added. Indexes become *, so a field added |
| 321 | // to every item of a list is listed once. |
| 322 | func addedPaths(paths []string) string { |
| 323 | for i, p := range paths { |
| 324 | for listIndex.MatchString(p) { |
| 325 | p = listIndex.ReplaceAllString(p, ".*$1") |
| 326 | } |
| 327 | paths[i] = p |
| 328 | } |
| 329 | return joinLimited(dedupe(paths), maxShownProblems) |
| 330 | } |
| 331 | |
| 332 | // scaffoldREST adds a response for a REST request from GitHub's description. |
| 333 | // A request that already has a response is left alone: ghmock set checks REST |
no test coverage detected