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

Function TestAdd_InvalidPriority

apps/cli/internal/cli/add_test.go:220–233  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

218}
219
220func TestAdd_InvalidPriority(t *testing.T) {
221 tmpDir := t.TempDir()
222 resetAddFlags()
223 taskDir = tmpDir
224 addPriority = "urgent"
225
226 _, err := captureAddOutput(t, "Bad priority")
227 if err == nil {
228 t.Fatal("expected error for invalid priority")
229 }
230 if !strings.Contains(err.Error(), "invalid priority") {
231 t.Errorf("expected 'invalid priority' error, got: %v", err)
232 }
233}
234
235func TestAdd_InvalidEffort(t *testing.T) {
236 tmpDir := t.TempDir()

Callers

nothing calls this directly

Calls 3

resetAddFlagsFunction · 0.85
captureAddOutputFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected