MCPcopy Create free account
hub / github.com/cockroachdb/redact / RedactableString

Method RedactableString

internal/buffer/buffer.go:70–76  ·  view source on GitHub ↗

RedactableString returns the bytes in the buffer.

()

Source from the content-addressed store, hash-verified

68
69// RedactableString returns the bytes in the buffer.
70func (b Buffer) RedactableString() m.RedactableString {
71 // NB: we're dependent on the fact this is a copy of the original
72 // buffer. The finalize() method should not be called
73 // in a conceputally read-only accessor like RedactableString().
74 b.finalize()
75 return m.RedactableString(b.buf)
76}
77
78// String implemens fmt.Stringer.
79func (b Buffer) String() string {

Callers 11

checkEqualMethod · 0.95
Example_mixed_writesFunction · 0.95
TestJoinToFunction · 0.80
JoinFunction · 0.80
processLogBodyMethod · 0.80
helpers.goFile · 0.80
StringMethod · 0.80
TestBuilderFunction · 0.80
TestMixedWritesFunction · 0.80
SafeFormatMethod · 0.80

Calls 1

finalizeMethod · 0.95

Tested by 6

checkEqualMethod · 0.76
Example_mixed_writesFunction · 0.76
TestJoinToFunction · 0.64
TestBuilderFunction · 0.64
TestMixedWritesFunction · 0.64