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

Function assertGoldenCommandSchemaEqual

cmd/json_contract_test.go:1204–1216  ·  view source on GitHub ↗
(t *testing.T, command string, got, want jsonGoldenCommandSchema)

Source from the content-addressed store, hash-verified

1202}
1203
1204func assertGoldenCommandSchemaEqual(t *testing.T, command string, got, want jsonGoldenCommandSchema) {
1205 t.Helper()
1206
1207 got = normalizeGoldenCommandSchema(got)
1208 want = normalizeGoldenCommandSchema(want)
1209 if reflect.DeepEqual(got, want) {
1210 return
1211 }
1212
1213 gotJSON, _ := json.MarshalIndent(got, "", " ")
1214 wantJSON, _ := json.MarshalIndent(want, "", " ")
1215 t.Errorf("golden schema for %q = %s, want %s", command, gotJSON, wantJSON)
1216}
1217
1218func assertGoldenCommandSchemaReferences(t *testing.T, command string, schema jsonGoldenCommandSchema, definitions map[string][]string) {
1219 t.Helper()

Callers 1

Calls 1

Tested by

no test coverage detected