MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Compare

Method Compare

pkg/util/json/json.go:653–658  ·  view source on GitHub ↗
(other JSON)

Source from the content-addressed store, hash-verified

651}
652
653func (j jsonNull) Compare(other JSON) (int, error) {
654 if isEmptyArray(other) {
655 return 1, nil
656 }
657 return cmpJSONTypes(j.Type(), other.Type()), nil
658}
659func (j jsonFalse) Compare(other JSON) (int, error) {
660 if isEmptyArray(other) {
661 return 1, nil

Callers 1

slowContainsMethod · 0.95

Calls 4

TypeMethod · 0.95
isEmptyArrayFunction · 0.85
cmpJSONTypesFunction · 0.85
TypeMethod · 0.65

Tested by

no test coverage detected