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

Function TestStatus_NoArgs_YAML

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

Source from the content-addressed store, hash-verified

1016}
1017
1018func TestStatus_NoArgs_YAML(t *testing.T) {
1019 tmpDir := createStatusTestFiles(t)
1020 resetStatusFlags()
1021 taskDir = tmpDir
1022 statusFormat = "yaml"
1023
1024 output, err := captureStatusNoArgsOutput(t)
1025 if err != nil {
1026 t.Fatalf("unexpected error: %v", err)
1027 }
1028
1029 if !strings.Contains(output, "id: \"002\"") {
1030 t.Errorf("Expected YAML output to contain in-progress task, got: %s", output)
1031 }
1032}

Callers

nothing calls this directly

Calls 3

createStatusTestFilesFunction · 0.85
resetStatusFlagsFunction · 0.85

Tested by

no test coverage detected