(items []contract.TaskInspectRunPayload)
| 3933 | } |
| 3934 | |
| 3935 | func taskInspectRunToonRows(items []contract.TaskInspectRunPayload) [][]string { |
| 3936 | rows := make([][]string, 0, len(items)) |
| 3937 | for _, item := range items { |
| 3938 | rows = append(rows, []string{ |
| 3939 | item.RunID, |
| 3940 | string(item.Status), |
| 3941 | strconv.Itoa(item.Attempt), |
| 3942 | item.BoundSessionID, |
| 3943 | item.ClaimTokenHashTruncated, |
| 3944 | taskInspectHeartbeatAge(item.HeartbeatAgeSeconds), |
| 3945 | item.LastErrorSummary, |
| 3946 | }) |
| 3947 | } |
| 3948 | return rows |
| 3949 | } |
| 3950 | |
| 3951 | func taskInspectEventRows(items []contract.TaskInspectEventPayload) [][]string { |
| 3952 | rows := make([][]string, 0, len(items)) |
no test coverage detected