MCPcopy Index your code
hub / github.com/keploy/keploy / getMockManager

Method getMockManager

pkg/agent/proxy/proxy.go:881–885  ·  view source on GitHub ↗

getMockManager returns the current mock manager in a thread-safe manner.

()

Source from the content-addressed store, hash-verified

879
880// getMockManager returns the current mock manager in a thread-safe manner.
881func (p *Proxy) getMockManager() *MockManager {
882 p.sessionMu.RLock()
883 defer p.sessionMu.RUnlock()
884 return p.mockManager
885}
886
887// replayTargetHasHTTP2Mock reports whether a kind:Http2 mock was recorded for
888// THIS connection's destination (sniHost + port). ALPN is negotiated

Callers 8

handleConnectionMethod · 0.95
MockMethod · 0.95
SetMocksMethod · 0.95
SetMocksWithWindowMethod · 0.95
FirstTestWindowStartMethod · 0.95
GetConsumedMocksMethod · 0.95
getMockedDNSResponseMethod · 0.95

Implementers 1

Proxypkg/agent/proxy/proxy.go

Calls

no outgoing calls

Tested by

no test coverage detected