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

Method writeGarbage

pkg/util/json/random.go:229–233  ·  view source on GitHub ↗
(pile []string, buf *bytes.Buffer)

Source from the content-addressed store, hash-verified

227}
228
229func (j *errJSON) writeGarbage(pile []string, buf *bytes.Buffer) {
230 if j.injectErr() {
231 buf.WriteString(pile[j.rng.Intn(len(pile))])
232 }
233}
234
235func (j *errJSON) errJSON(other JSON) JSON {
236 return &errJSON{

Callers 1

FormatMethod · 0.95

Calls 2

injectErrMethod · 0.95
IntnMethod · 0.65

Tested by

no test coverage detected