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

Function TestContext_EmptyTask

apps/cli/internal/cli/context_test.go:222–237  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

220}
221
222func TestContext_EmptyTask(t *testing.T) {
223 tmpDir := createContextTestFiles(t)
224 resetContextFlags()
225 taskDir = tmpDir
226 setupTestConfig(t, tmpDir)
227
228 ctxTaskID = "005"
229 output, err := captureContextOutput(t)
230 if err != nil {
231 t.Fatalf("unexpected error: %v", err)
232 }
233
234 if !strings.Contains(output, "No context files found") {
235 t.Errorf("expected 'No context files found', got: %s", output)
236 }
237}
238
239func TestContext_TaskNotFound(t *testing.T) {
240 tmpDir := createContextTestFiles(t)

Callers

nothing calls this directly

Calls 4

createContextTestFilesFunction · 0.85
resetContextFlagsFunction · 0.85
setupTestConfigFunction · 0.85
captureContextOutputFunction · 0.85

Tested by

no test coverage detected