MCPcopy
hub / github.com/keploy/keploy / Valid

Method Valid

pkg/models/mode.go:27–32  ·  view source on GitHub ↗

Valid checks if the provided mode is valid

()

Source from the content-addressed store, hash-verified

25
26// Valid checks if the provided mode is valid
27func (m Mode) Valid() bool {
28 if m == MODE_RECORD || m == MODE_TEST || m == MODE_OFF {
29 return true
30 }
31 return false
32}
33
34// GetMode returns the mode of the keploy SDK
35func GetMode() Mode {

Callers 15

compareSSEFieldsFunction · 0.80
DetectNoiseFieldsInRespFunction · 0.80
RenderMethod · 0.80
RenderAppenderMethod · 0.80
AddHTTPBodyToMapFunction · 0.80
normalizeNestedJSONValueFunction · 0.80
ChangedJSONFieldPathsFunction · 0.80
JSONFieldDiffsFunction · 0.80
CompareHTTPReqFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestMarshalDocJSONFunction · 0.64
TestMarshalGenericJSONFunction · 0.64