MCPcopy Create free account
hub / github.com/dropbox/dbxcli / readJSONFile

Function readJSONFile

cmd/json_command_schema_test.go:314–321  ·  view source on GitHub ↗
(t *testing.T, file string)

Source from the content-addressed store, hash-verified

312}
313
314func readJSONFile(t *testing.T, file string) []byte {
315 t.Helper()
316 data, err := os.ReadFile(file)
317 if err != nil {
318 t.Fatalf("read %s: %v", file, err)
319 }
320 return data
321}
322
323func decodeJSONValue(t *testing.T, data []byte) any {
324 t.Helper()

Callers 3

loadCommandSchemaCatalogFunction · 0.85
loadJSONValueFileFunction · 0.85
compileJSONSchemaFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected