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

Function TestGet_EmptyDirectory

apps/cli/internal/cli/get_test.go:373–385  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

371}
372
373func TestGet_EmptyDirectory(t *testing.T) {
374 tmpDir := t.TempDir()
375 resetGetFlags()
376 taskDir = tmpDir
377
378 err := runGet(getCmd, []string{"anything"})
379 if err == nil {
380 t.Fatal("Expected error for empty directory")
381 }
382 if !strings.Contains(err.Error(), "task not found") {
383 t.Errorf("Expected 'task not found' error, got: %v", err)
384 }
385}
386
387func TestGet_Dependencies(t *testing.T) {
388 tmpDir := createGetTestFiles(t)

Callers

nothing calls this directly

Calls 3

resetGetFlagsFunction · 0.85
runGetFunction · 0.85
ErrorMethod · 0.80

Tested by

no test coverage detected