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

Function TestStatus_NoChildren

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

Source from the content-addressed store, hash-verified

495}
496
497func TestStatus_NoChildren(t *testing.T) {
498 tmpDir := createStatusTestFilesWithChildren(t)
499 resetStatusFlags()
500 taskDir = tmpDir
501
502 // Task 012 has no children
503 output := captureStatusOutput(t, "012")
504
505 if strings.Contains(output, "Children:") {
506 t.Error("Task with no children should not show 'Children:' section")
507 }
508}
509
510func TestStatus_NoBodyInOutput(t *testing.T) {
511 tmpDir := createStatusTestFiles(t)

Callers

nothing calls this directly

Calls 4

resetStatusFlagsFunction · 0.85
captureStatusOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected