MCPcopy
hub / github.com/keploy/keploy / MarkMockComplete

Method MarkMockComplete

pkg/agent/proxy/supervisor/session.go:210–215  ·  view source on GitHub ↗

MarkMockComplete clears the incomplete-mock flag. Parsers call it when they have finished a mock cycle (typically right after EmitMock or when sending directive.FinalizeMock). Idempotent.

()

Source from the content-addressed store, hash-verified

208// when they have finished a mock cycle (typically right after EmitMock
209// or when sending directive.FinalizeMock). Idempotent.
210func (s *Session) MarkMockComplete() {
211 if s == nil {
212 return
213 }
214 s.mockIncomplete.Store(false)
215}
216
217// IsMockIncomplete reports whether the session's active mock has been
218// marked incomplete. Parsers may use this to short-circuit expensive

Callers 3

recordV2Method · 0.80
encodeGenericV2Function · 0.80

Calls 1

StoreMethod · 0.45

Tested by 1