MCPcopy
hub / github.com/moonD4rk/HackBrowserData / readJSON

Function readJSON

output/output_test.go:311–316  ·  view source on GitHub ↗
(t *testing.T, path string, v any)

Source from the content-addressed store, hash-verified

309}
310
311func readJSON(t *testing.T, path string, v any) {
312 t.Helper()
313 raw, err := os.ReadFile(path)
314 require.NoError(t, err)
315 require.NoError(t, json.Unmarshal(raw, v))
316}

Callers 3

TestWrite_JSON_PasswordFunction · 0.85
TestWrite_JSON_CookieFunction · 0.85
TestWrite_CookieEditorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected