MCPcopy
hub / github.com/dgraph-io/dgraph / CompareJSONMaps

Function CompareJSONMaps

testutil/json.go:28–30  ·  view source on GitHub ↗

CompareJSONMaps compares two JSON objects (passed as maps).

(t *testing.T, wantMap, gotMap map[string]interface{})

Source from the content-addressed store, hash-verified

26
27// CompareJSONMaps compares two JSON objects (passed as maps).
28func CompareJSONMaps(t *testing.T, wantMap, gotMap map[string]interface{}) bool {
29 return DiffJSONMaps(t, wantMap, gotMap, "", false)
30}
31
32// EqualJSON compares two JSON objects for equality.
33func EqualJSON(t *testing.T, want, got string, savepath string, quiet bool) bool {

Callers 4

checkDifferentUidFunction · 0.92
checkUpsertLoadedDataFunction · 0.92
checkLoadedDataFunction · 0.92
CompareJSONFunction · 0.85

Calls 1

DiffJSONMapsFunction · 0.85

Tested by 3

checkDifferentUidFunction · 0.74
checkUpsertLoadedDataFunction · 0.74
checkLoadedDataFunction · 0.74