(t *testing.T)
| 672 | } |
| 673 | |
| 674 | func TestGetColumnValue_Phase(t *testing.T) { |
| 675 | task := &model.Task{ |
| 676 | ID: "001", |
| 677 | Title: "Test Task", |
| 678 | Phase: "v0.2", |
| 679 | } |
| 680 | |
| 681 | result := getColumnValue(task, "phase") |
| 682 | if result != "v0.2" { |
| 683 | t.Errorf("getColumnValue(phase) = %s, want v0.2", result) |
| 684 | } |
| 685 | |
| 686 | // Empty phase |
| 687 | task2 := &model.Task{ID: "002", Title: "No Phase"} |
| 688 | result2 := getColumnValue(task2, "phase") |
| 689 | if result2 != "" { |
| 690 | t.Errorf("getColumnValue(phase) for task without phase = %q, want empty", result2) |
| 691 | } |
| 692 | } |
| 693 | |
| 694 | func TestListCommand_PhaseColumn(t *testing.T) { |
| 695 | resetListFlags() |
nothing calls this directly
no test coverage detected