Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
13
func
NewJSONWriter(enabled bool) *JSONWriter {
14
return
&JSONWriter{enabled: enabled}
15
}
16
17
func
(w *JSONWriter) Write(v
interface
{}) error {
18
if
!w.enabled {
Callers
8
RunTestSet
Method · 0.92
GenerateReport
Method · 0.92
generateReportFromFile
Method · 0.92
parseAndProcessLegacyReportFormat
Method · 0.92
TestJSONWriterWriteEnabled
Function · 0.85
TestJSONWriterWriteDisabled
Function · 0.85
TestJSONWriterWriteMarshalError
Function · 0.85
TestJSONWriterIsEnabled
Function · 0.85
Calls
no outgoing calls
Tested by
4
TestJSONWriterWriteEnabled
Function · 0.68
TestJSONWriterWriteDisabled
Function · 0.68
TestJSONWriterWriteMarshalError
Function · 0.68
TestJSONWriterIsEnabled
Function · 0.68