(items []TaskRunRecord)
| 4522 | } |
| 4523 | |
| 4524 | func taskRunRows(items []TaskRunRecord) [][]string { |
| 4525 | rows := make([][]string, 0, len(items)) |
| 4526 | for _, item := range items { |
| 4527 | rows = append(rows, []string{ |
| 4528 | stringOrDash(item.ID), |
| 4529 | stringOrDash(string(item.Status)), |
| 4530 | intOrDash(item.Attempt), |
| 4531 | stringOrDash(item.SessionID), |
| 4532 | stringOrDash(formatTaskActorPtr(item.ClaimedBy)), |
| 4533 | stringOrDash(item.NetworkChannel), |
| 4534 | stringOrDash(item.CoordinationChannelID), |
| 4535 | stringOrDash(formatTime(item.QueuedAt)), |
| 4536 | stringOrDash(formatTimePtr(item.StartedAt)), |
| 4537 | stringOrDash(formatTimePtr(item.EndedAt)), |
| 4538 | stringOrDash(item.Error), |
| 4539 | }) |
| 4540 | } |
| 4541 | return rows |
| 4542 | } |
| 4543 | |
| 4544 | func taskRunToonRows(items []TaskRunRecord) [][]string { |
| 4545 | rows := make([][]string, 0, len(items)) |
no test coverage detected