MCPcopy
hub / github.com/keploy/keploy / dispatch

Function dispatch

pkg/agent/proxy/integrations/generic/v2_test.go:37–41  ·  view source on GitHub ↗

dispatch calls the public RecordOutgoing boundary rather than the unexported V2 entry so the test exercises the same dispatch branch production traffic hits.

(t *testing.T, sess *supervisor.Session)

Source from the content-addressed store, hash-verified

35// unexported V2 entry so the test exercises the same dispatch branch
36// production traffic hits.
37func dispatch(t *testing.T, sess *supervisor.Session) error {
38 t.Helper()
39 g := New(zaptest.NewLogger(t)).(*Generic)
40 return g.RecordOutgoing(context.Background(), &integrations.RecordSession{V2: sess})
41}
42
43// TestV2_SingleReqRespPair drives one request chunk and one response
44// chunk through and asserts the resulting mock matches the legacy

Calls 2

NewFunction · 0.70
RecordOutgoingMethod · 0.65

Tested by

no test coverage detected