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

Method AsArray

pkg/util/json/encoded.go:581–590  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

579}
580
581func (j *jsonEncoded) AsArray() ([]JSON, bool) {
582 if dec := j.alreadyDecoded(); dec != nil {
583 return dec.AsArray()
584 }
585 decoded, err := j.decode()
586 if err != nil {
587 return nil, false
588 }
589 return decoded.AsArray()
590}
591
592func (j *jsonEncoded) Compare(other JSON) (_ int, err error) {
593 if other == nil {

Callers

nothing calls this directly

Calls 3

alreadyDecodedMethod · 0.95
decodeMethod · 0.95
AsArrayMethod · 0.65

Tested by

no test coverage detected