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

Function TestGet_Dependencies

apps/cli/internal/cli/get_test.go:387–404  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

385}
386
387func TestGet_Dependencies(t *testing.T) {
388 tmpDir := createGetTestFiles(t)
389 resetGetFlags()
390 taskDir = tmpDir
391
392 // Task 003 depends on 002, and 002 blocks 003
393 output := captureGetOutput(t, "003")
394
395 if !strings.Contains(output, "Depends on: 002 (Implement authentication)") {
396 t.Error("Expected depends-on info for task 003")
397 }
398
399 // Check that task 002 shows it blocks 003
400 output = captureGetOutput(t, "002")
401 if !strings.Contains(output, "Blocks: 003 (Build UI components)") {
402 t.Error("Expected blocks info for task 002")
403 }
404}
405
406// --- Unit tests for helper functions ---
407

Callers

nothing calls this directly

Calls 4

createGetTestFilesFunction · 0.85
resetGetFlagsFunction · 0.85
captureGetOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected