MCPcopy
hub / github.com/keploy/keploy / NewJSONWriter

Function NewJSONWriter

utils/output.go:13–15  ·  view source on GitHub ↗
(enabled bool)

Source from the content-addressed store, hash-verified

11}
12
13func NewJSONWriter(enabled bool) *JSONWriter {
14 return &JSONWriter{enabled: enabled}
15}
16
17func (w *JSONWriter) Write(v interface{}) error {
18 if !w.enabled {

Callers 8

RunTestSetMethod · 0.92
GenerateReportMethod · 0.92
TestJSONWriterIsEnabledFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestJSONWriterIsEnabledFunction · 0.68