(t *testing.T)
| 248 | } |
| 249 | |
| 250 | func TestListCommand_ParentColumn(t *testing.T) { |
| 251 | resetListFlags() |
| 252 | |
| 253 | tasks := []*model.Task{ |
| 254 | {ID: "001", Title: "Parent", Status: model.StatusPending}, |
| 255 | {ID: "002", Title: "Child", Status: model.StatusPending, Parent: "001"}, |
| 256 | } |
| 257 | |
| 258 | output := captureListTableOutput(t, tasks, "id,title,parent") |
| 259 | |
| 260 | if !strings.Contains(output, "parent") { |
| 261 | t.Error("Expected 'parent' column header in output") |
| 262 | } |
| 263 | if !strings.Contains(output, "001") { |
| 264 | t.Error("Expected parent value '001' in output") |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | func TestListCommand_TypeColumn(t *testing.T) { |
| 269 | resetListFlags() |
nothing calls this directly
no test coverage detected