MCPcopy
hub / github.com/kopia/kopia / NewJSONWriter

Function NewJSONWriter

internal/contentlog/contentlog_json_writer.go:368–370  ·  view source on GitHub ↗

NewJSONWriter creates a new JSON writer.

()

Source from the content-addressed store, hash-verified

366
367// NewJSONWriter creates a new JSON writer.
368func NewJSONWriter() *JSONWriter {
369 return freeJSONWriterPool.Take()
370}
371
372// GetBufferForTesting returns the internal buffer for testing purposes.
373// This should only be used in tests.

Callers 15

TestStringFunction · 0.92
TestInt64Function · 0.92
TestIntFunction · 0.92
TestInt32Function · 0.92
TestBoolFunction · 0.92
TestTimeFunction · 0.92
TestErrorFunction · 0.92
TestUInt64Function · 0.92
TestDurationFunction · 0.92
TestEntryWriter_AllTypesFunction · 0.85

Calls 1

TakeMethod · 0.45

Tested by 15

TestStringFunction · 0.74
TestInt64Function · 0.74
TestIntFunction · 0.74
TestInt32Function · 0.74
TestBoolFunction · 0.74
TestTimeFunction · 0.74
TestErrorFunction · 0.74
TestUInt64Function · 0.74
TestDurationFunction · 0.74
TestEntryWriter_AllTypesFunction · 0.68