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

Function loadCommandSchemaCatalog

cmd/json_command_schema_test.go:298–307  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

296}
297
298func loadCommandSchemaCatalog(t *testing.T) schemagen.CommandCatalog {
299 t.Helper()
300
301 data := readJSONFile(t, "../docs/json-schema/v1/commands.json")
302 catalog, err := schemagen.DecodeCommandCatalog(data)
303 if err != nil {
304 t.Fatalf("decode command catalog: %v", err)
305 }
306 return catalog
307}
308
309func loadJSONValueFile(t *testing.T, file string) any {
310 t.Helper()

Calls 1

readJSONFileFunction · 0.85

Tested by

no test coverage detected