MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestRunSetupNoConfigNoHooks

Function TestRunSetupNoConfigNoHooks

cmd/setup_run_test.go:31–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29}
30
31func 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
48func TestRunSetupCreatesConfigAndHooks(t *testing.T) {
49 root := t.TempDir()

Callers

nothing calls this directly

Calls 2

captureOutputFunction · 0.85
RunSetupFunction · 0.85

Tested by

no test coverage detected