(scriptURLs []string)
| 95 | } |
| 96 | |
| 97 | func summarizeScriptURLs(scriptURLs []string) string { |
| 98 | if len(scriptURLs) == 0 { |
| 99 | return "(none)" |
| 100 | } |
| 101 | maxShown := len(scriptURLs) |
| 102 | if maxShown > 3 { |
| 103 | maxShown = 3 |
| 104 | } |
| 105 | parts := make([]string, 0, maxShown) |
| 106 | for i := 0; i < maxShown; i++ { |
| 107 | parts = append(parts, shortScriptKey(scriptURLs[i])) |
| 108 | } |
| 109 | if len(scriptURLs) > maxShown { |
| 110 | parts = append(parts, fmt.Sprintf("+%d more", len(scriptURLs)-maxShown)) |
| 111 | } |
| 112 | return strings.Join(parts, ", ") |
| 113 | } |
| 114 | |
| 115 | const gooseBanner = ` |
| 116 | ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣄⡀⠀⠀⠀⠀⠀⠀ |
no test coverage detected