(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestRunSetupNoConfigNoHooks(t *testing.T) { |
| 32 | root := t.TempDir() |
| 33 | out := captureOutput(func() { RunSetup([]string{"--no-config", "--no-hooks", root}, ".") }) |
| 34 | |
| 35 | checks := []string{ |
| 36 | "codemap setup", |
| 37 | "Config: skipped (--no-config)", |
| 38 | "Hooks: skipped (--no-hooks)", |
| 39 | "Next:", |
| 40 | } |
| 41 | for _, check := range checks { |
| 42 | if !strings.Contains(out, check) { |
| 43 | t.Fatalf("expected output to contain %q, got:\n%s", check, out) |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func TestRunSetupCreatesConfigAndHooks(t *testing.T) { |
| 49 | root := t.TempDir() |
nothing calls this directly
no test coverage detected