MCPcopy
hub / github.com/kopia/kopia / BoolField

Method BoolField

internal/contentlog/contentlog_json_writer.go:176–179  ·  view source on GitHub ↗

boolean BoolField writes a boolean field.

(key string, value bool)

Source from the content-addressed store, hash-verified

174
175// BoolField writes a boolean field.
176func (jw *JSONWriter) BoolField(key string, value bool) {
177 jw.beforeField(key)
178 jw.boolValue(value)
179}
180
181// BoolElement writes a boolean element.
182func (jw *JSONWriter) BoolElement(value bool) {

Callers 4

TestEntryWriter_AllTypesFunction · 0.95
TestJSONWriter_EdgeCasesFunction · 0.95
WriteValueToMethod · 0.80
WriteValueToMethod · 0.80

Calls 2

beforeFieldMethod · 0.95
boolValueMethod · 0.95

Tested by 2

TestEntryWriter_AllTypesFunction · 0.76
TestJSONWriter_EdgeCasesFunction · 0.76