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

Function TestClaudeSettingsPath

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

Source from the content-addressed store, hash-verified

8)
9
10func TestClaudeSettingsPath(t *testing.T) {
11 root := t.TempDir()
12 local, err := claudeSettingsPath(root, false)
13 if err != nil {
14 t.Fatalf("local claudeSettingsPath error: %v", err)
15 }
16 if local != filepath.Join(root, ".claude", "settings.local.json") {
17 t.Fatalf("unexpected local settings path: %s", local)
18 }
19
20 home := t.TempDir()
21 t.Setenv("HOME", home)
22 global, err := claudeSettingsPath(root, true)
23 if err != nil {
24 t.Fatalf("global claudeSettingsPath error: %v", err)
25 }
26 if global != filepath.Join(home, ".claude", "settings.json") {
27 t.Fatalf("unexpected global settings path: %s", global)
28 }
29}
30
31func TestRunSetupNoConfigNoHooks(t *testing.T) {
32 root := t.TempDir()

Callers

nothing calls this directly

Calls 1

claudeSettingsPathFunction · 0.85

Tested by

no test coverage detected