joinLimited joins items, showing at most limit of them.
(items []string, limit int)
| 397 | |
| 398 | // joinLimited joins items, showing at most limit of them. |
| 399 | func joinLimited(items []string, limit int) string { |
| 400 | if len(items) > limit { |
| 401 | return strings.Join(items[:limit], ", ") + fmt.Sprintf(" and %d more", len(items)-limit) |
| 402 | } |
| 403 | return strings.Join(items, ", ") |
| 404 | } |
| 405 | |
| 406 | func exitLabel(res runResult) string { |
| 407 | if res.timedOut { |
no test coverage detected