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

Function TestStatus_UnsupportedFormat

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

Source from the content-addressed store, hash-verified

238}
239
240func TestStatus_UnsupportedFormat(t *testing.T) {
241 tmpDir := createStatusTestFiles(t)
242 resetStatusFlags()
243 taskDir = tmpDir
244 statusFormat = "csv"
245
246 err := runStatus(statusCmd, []string{"001"})
247 if err == nil {
248 t.Fatal("Expected error for unsupported format")
249 }
250 if !strings.Contains(err.Error(), "unsupported format") {
251 t.Errorf("Expected 'unsupported format' error, got: %v", err)
252 }
253}
254
255func TestStatus_TaskNotFound_ExactMode(t *testing.T) {
256 tmpDir := createStatusTestFiles(t)

Callers

nothing calls this directly

Calls 4

createStatusTestFilesFunction · 0.85
resetStatusFlagsFunction · 0.85
runStatusFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected