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

Function isEmptyArray

pkg/util/json/json.go:649–651  ·  view source on GitHub ↗

isEmptyArray returns true if j is a JSON array with length 0.

(j JSON)

Source from the content-addressed store, hash-verified

647
648// isEmptyArray returns true if j is a JSON array with length 0.
649func isEmptyArray(j JSON) bool {
650 return j.Type() == ArrayJSONType && j.Len() == 0
651}
652
653func (j jsonNull) Compare(other JSON) (int, error) {
654 if isEmptyArray(other) {

Callers 7

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

Calls 2

TypeMethod · 0.65
LenMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…