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

Function TestGetColumnValue_Phase

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

Source from the content-addressed store, hash-verified

672}
673
674func 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
694func TestListCommand_PhaseColumn(t *testing.T) {
695 resetListFlags()

Callers

nothing calls this directly

Calls 1

getColumnValueFunction · 0.85

Tested by

no test coverage detected