MCPcopy Create free account
hub / github.com/Facets-cloud/flow / TestCmdAddTaskWorkDirMkdir

Function TestCmdAddTaskWorkDirMkdir

internal/app/add_test.go:239–249  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

237}
238
239func TestCmdAddTaskWorkDirMkdir(t *testing.T) {
240 setupFlowRoot(t)
241 parent := t.TempDir()
242 missing := filepath.Join(parent, "fresh-subdir")
243 if rc := cmdAdd([]string{"task", "Task", "--work-dir", missing, "--mkdir"}); rc != 0 {
244 t.Fatalf("rc=%d", rc)
245 }
246 if _, err := os.Stat(missing); err != nil {
247 t.Errorf("work-dir not created: %v", err)
248 }
249}
250
251func TestCmdAddUnknownSubcommand(t *testing.T) {
252 setupFlowRoot(t)

Callers

nothing calls this directly

Calls 2

setupFlowRootFunction · 0.85
cmdAddFunction · 0.85

Tested by

no test coverage detected