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

Function TestSet_InvalidPriority

apps/cli/internal/cli/set_test.go:455–469  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

453}
454
455func TestSet_InvalidPriority(t *testing.T) {
456 tmpDir := createSetTestFiles(t)
457 resetSetFlags()
458 taskDir = tmpDir
459 setTaskID = "001"
460 setPriority = "urgent"
461
462 _, err := captureSetOutput(t)
463 if err == nil {
464 t.Fatal("Expected error for invalid priority")
465 }
466 if !strings.Contains(err.Error(), "invalid priority") {
467 t.Errorf("Expected 'invalid priority' error, got: %v", err)
468 }
469}
470
471func TestSet_InvalidEffort(t *testing.T) {
472 tmpDir := createSetTestFiles(t)

Callers

nothing calls this directly

Calls 4

createSetTestFilesFunction · 0.85
resetSetFlagsFunction · 0.85
captureSetOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected