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

Function assertNoTopLevelJSONField

cmd/share_link_json_test.go:413–420  ·  view source on GitHub ↗
(t *testing.T, data []byte, field string)

Source from the content-addressed store, hash-verified

411}
412
413func assertNoTopLevelJSONField(t *testing.T, data []byte, field string) {
414 t.Helper()
415 var raw map[string]any
416 decodeJSONOutput(t, data, &raw)
417 if _, ok := raw[field]; ok {
418 t.Fatalf("JSON output = %s, want no top-level %q field", string(data), field)
419 }
420}

Calls 1

decodeJSONOutputFunction · 0.85

Tested by

no test coverage detected