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

Function cmpJSONTypes

pkg/util/json/json.go:638–646  ·  view source on GitHub ↗
(a Type, b Type)

Source from the content-addressed store, hash-verified

636func (j jsonObject) tryDecode() (JSON, error) { return j, nil }
637
638func cmpJSONTypes(a Type, b Type) int {
639 if b > a {
640 return -1
641 }
642 if b < a {
643 return 1
644 }
645 return 0
646}
647
648// isEmptyArray returns true if j is a JSON array with length 0.
649func isEmptyArray(j JSON) bool {

Callers 8

CompareMethod · 0.85
CompareMethod · 0.85
CompareMethod · 0.85
CompareMethod · 0.85
CompareMethod · 0.85
CompareMethod · 0.85
CompareMethod · 0.85
CompareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…