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

Function TestStatus_ExactMatchByID

apps/cli/internal/cli/status_test.go:109–122  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

107}
108
109func TestStatus_ExactMatchByID(t *testing.T) {
110 tmpDir := createStatusTestFiles(t)
111 resetStatusFlags()
112 taskDir = tmpDir
113
114 output := captureStatusOutput(t, "001")
115
116 if !strings.Contains(output, "Task: 001") {
117 t.Error("Expected output to contain 'Task: 001'")
118 }
119 if !strings.Contains(output, "Title: Setup project") {
120 t.Error("Expected output to contain task title")
121 }
122}
123
124func TestStatus_TextFormat(t *testing.T) {
125 tmpDir := createStatusTestFiles(t)

Callers

nothing calls this directly

Calls 4

createStatusTestFilesFunction · 0.85
resetStatusFlagsFunction · 0.85
captureStatusOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected