MCPcopy
hub / github.com/keploy/keploy / IsStrictMockWindow

Function IsStrictMockWindow

pkg/util.go:3043–3045  ·  view source on GitHub ↗

IsStrictMockWindow reports whether strict mock-window containment is effectively enabled — either via the per-call flag (from config.Test.StrictMockWindow / MockFilterParams.StrictMockWindow) or the process-wide KEPLOY_STRICT_MOCK_WINDOW env override. Exposed so the agent's UpdateMockParams can log

(perCall bool)

Source from the content-addressed store, hash-verified

3041// agent's UpdateMockParams can log the effective state (covering both
3042// opt-in routes) without duplicating the env-parsing logic.
3043func IsStrictMockWindow(perCall bool) bool {
3044 return strictWindowEnabled(perCall)
3045}
3046
3047// strictWindowEnabled returns true when strict containment should apply.
3048//

Callers 1

UpdateMockParamsMethod · 0.92

Calls 1

strictWindowEnabledFunction · 0.85

Tested by

no test coverage detected