MCPcopy
hub / github.com/keploy/keploy / TestJSONWriterIsEnabled

Function TestJSONWriterIsEnabled

utils/output_test.go:83–90  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

81}
82
83func TestJSONWriterIsEnabled(t *testing.T) {
84 if !NewJSONWriter(true).IsEnabled() {
85 t.Fatal("expected writer to be enabled")
86 }
87 if NewJSONWriter(false).IsEnabled() {
88 t.Fatal("expected writer to be disabled")
89 }
90}

Callers

nothing calls this directly

Calls 2

NewJSONWriterFunction · 0.85
IsEnabledMethod · 0.80

Tested by

no test coverage detected