(t *testing.T)
| 87 | } |
| 88 | |
| 89 | func TestCmdAddProjectMkdirCreatesMissing(t *testing.T) { |
| 90 | setupFlowRoot(t) |
| 91 | parent := t.TempDir() |
| 92 | missing := filepath.Join(parent, "new-proj") |
| 93 | |
| 94 | rc := cmdAdd([]string{"project", "New Proj", "--work-dir", missing, "--mkdir"}) |
| 95 | if rc != 0 { |
| 96 | t.Fatalf("rc=%d", rc) |
| 97 | } |
| 98 | if _, err := os.Stat(missing); err != nil { |
| 99 | t.Errorf("work_dir not created: %v", err) |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | func TestCmdAddProjectMissingWorkDirFailsWithoutMkdir(t *testing.T) { |
| 104 | setupFlowRoot(t) |
nothing calls this directly
no test coverage detected