MCPcopy
hub / github.com/kopia/kopia / GetBufferForTesting

Method GetBufferForTesting

internal/contentlog/contentlog_json_writer.go:374–376  ·  view source on GitHub ↗

GetBufferForTesting returns the internal buffer for testing purposes. This should only be used in tests.

()

Source from the content-addressed store, hash-verified

372// GetBufferForTesting returns the internal buffer for testing purposes.
373// This should only be used in tests.
374func (jw *JSONWriter) GetBufferForTesting() []byte {
375 return jw.buf
376}

Callers 9

TestStringFunction · 0.95
TestInt64Function · 0.95
TestIntFunction · 0.95
TestInt32Function · 0.95
TestBoolFunction · 0.95
TestTimeFunction · 0.95
TestErrorFunction · 0.95
TestUInt64Function · 0.95
TestDurationFunction · 0.95

Calls

no outgoing calls

Tested by 9

TestStringFunction · 0.76
TestInt64Function · 0.76
TestIntFunction · 0.76
TestInt32Function · 0.76
TestBoolFunction · 0.76
TestTimeFunction · 0.76
TestErrorFunction · 0.76
TestUInt64Function · 0.76
TestDurationFunction · 0.76