MCPcopy Index your code
hub / github.com/dgraph-io/dgraph / compareJSONMaps

Function compareJSONMaps

dgraphapi/json.go:63–65  ·  view source on GitHub ↗

compareJSONMaps compares two JSON objects (passed as maps).

(wantMap, gotMap map[string]interface{})

Source from the content-addressed store, hash-verified

61
62// compareJSONMaps compares two JSON objects (passed as maps).
63func compareJSONMaps(wantMap, gotMap map[string]interface{}) error {
64 return diffJSONMaps(wantMap, gotMap, "")
65}
66
67// unmarshalJSON unmarshals the given string into a map.
68func unmarshalJSON(jsonStr string) (map[string]interface{}, error) {

Callers 1

CompareJSONFunction · 0.85

Calls 1

diffJSONMapsFunction · 0.85

Tested by

no test coverage detected