MCPcopy Create free account
hub / github.com/driangle/taskmd / TestListCommand_ParentColumn

Function TestListCommand_ParentColumn

apps/cli/internal/cli/list_test.go:250–266  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

248}
249
250func 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
268func TestListCommand_TypeColumn(t *testing.T) {
269 resetListFlags()

Callers

nothing calls this directly

Calls 3

resetListFlagsFunction · 0.85
captureListTableOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected