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

Method mustDecode

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

Source from the content-addressed store, hash-verified

510}
511
512func (j *jsonEncoded) mustDecode() JSON {
513 decoded, err := j.shallowDecode()
514 if err != nil {
515 panic(errors.NewAssertionErrorWithWrappedErrf(err, "invalid JSON data: %v", j.value))
516 }
517 return decoded
518}
519
520// decode should be used in cases where you will definitely have to use the
521// entire decoded JSON structure, like printing it out to a string.

Callers 3

MaybeDecodeMethod · 0.95
slowContainsMethod · 0.95
subdocumentMethod · 0.95

Calls 1

shallowDecodeMethod · 0.95

Tested by

no test coverage detected