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

Function normalizeJSONValue

cmd/json_command_schema_test.go:333–341  ·  view source on GitHub ↗
(t *testing.T, value any)

Source from the content-addressed store, hash-verified

331}
332
333func normalizeJSONValue(t *testing.T, value any) any {
334 t.Helper()
335
336 data, err := json.Marshal(value)
337 if err != nil {
338 t.Fatalf("marshal JSON value: %v", err)
339 }
340 return decodeJSONValue(t, data)
341}
342
343func compileJSONSchemaFile(t *testing.T, file string) *jsonschema.Schema {
344 t.Helper()

Calls 1

decodeJSONValueFunction · 0.85

Tested by

no test coverage detected