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

Function readSettingsFile

cmd/setup_test.go:177–188  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

175}
176
177func readSettingsFile(t *testing.T, path string) map[string]interface{} {
178 t.Helper()
179 data, err := os.ReadFile(path)
180 if err != nil {
181 t.Fatal(err)
182 }
183 var out map[string]interface{}
184 if err := json.Unmarshal(data, &out); err != nil {
185 t.Fatal(err)
186 }
187 return out
188}
189
190func readHooksMap(t *testing.T, settings map[string]interface{}) map[string][]claudeHookEntry {
191 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected