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)
| 35 | // unexported V2 entry so the test exercises the same dispatch branch |
| 36 | // production traffic hits. |
| 37 | func 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 |
no test coverage detected