(t *testing.T)
| 228 | } |
| 229 | |
| 230 | func TestGetColumnValue_Parent(t *testing.T) { |
| 231 | task := &model.Task{ |
| 232 | ID: "001", |
| 233 | Title: "Test Task", |
| 234 | Parent: "010", |
| 235 | } |
| 236 | |
| 237 | result := getColumnValue(task, "parent") |
| 238 | if result != "010" { |
| 239 | t.Errorf("getColumnValue(parent) = %s, want 010", result) |
| 240 | } |
| 241 | |
| 242 | // Empty parent |
| 243 | task2 := &model.Task{ID: "002", Title: "No Parent"} |
| 244 | result2 := getColumnValue(task2, "parent") |
| 245 | if result2 != "" { |
| 246 | t.Errorf("getColumnValue(parent) for task without parent = %q, want empty", result2) |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | func TestListCommand_ParentColumn(t *testing.T) { |
| 251 | resetListFlags() |
nothing calls this directly
no test coverage detected