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

Method preprocessForContains

pkg/util/json/encoded.go:818–828  ·  view source on GitHub ↗

preprocessForContains implements the JSON interface.

()

Source from the content-addressed store, hash-verified

816
817// preprocessForContains implements the JSON interface.
818func (j *jsonEncoded) preprocessForContains() (containsable, error) {
819 if dec := j.alreadyDecoded(); dec != nil {
820 return dec.preprocessForContains()
821 }
822
823 decoded, err := j.decode()
824 if err != nil {
825 return nil, err
826 }
827 return decoded.preprocessForContains()
828}
829
830// jEntry implements the JSON interface.
831func (j *jsonEncoded) jEntry() jEntry {

Callers

nothing calls this directly

Calls 3

alreadyDecodedMethod · 0.95
decodeMethod · 0.95
preprocessForContainsMethod · 0.65

Tested by

no test coverage detected