MCPcopy Create free account
hub / github.com/coder/aibridge / VerifyAllInterceptionsEnded

Method VerifyAllInterceptionsEnded

internal/testutil/mock_recorder.go:180–189  ·  view source on GitHub ↗

VerifyAllInterceptionsEnded verifies all recorded interceptions have been marked as completed.

(t *testing.T)

Source from the content-addressed store, hash-verified

178
179// VerifyAllInterceptionsEnded verifies all recorded interceptions have been marked as completed.
180func (m *MockRecorder) VerifyAllInterceptionsEnded(t *testing.T) {
181 t.Helper()
182
183 m.mu.Lock()
184 defer m.mu.Unlock()
185 require.Equalf(t, len(m.interceptions), len(m.interceptionsEnd), "got %v interception ended calls, want: %v", len(m.interceptionsEnd), len(m.interceptions))
186 for _, intc := range m.interceptions {
187 require.Containsf(t, m.interceptionsEnd, intc.ID, "interception with id: %v has not been ended", intc.ID)
188 }
189}
190
191func (m *MockRecorder) VerifyModelThoughtsRecorded(t *testing.T, expected []recorder.ModelThoughtRecord) {
192 thoughts := m.RecordedModelThoughts()

Callers 9

TestAPIDumpFunction · 0.80
TestAnthropicMessagesFunction · 0.80
TestSimpleFunction · 0.80
TestSessionIDTrackingFunction · 0.80
TestErrorHandlingFunction · 0.80

Calls

no outgoing calls

Tested by 9

TestAPIDumpFunction · 0.64
TestAnthropicMessagesFunction · 0.64
TestSimpleFunction · 0.64
TestSessionIDTrackingFunction · 0.64
TestErrorHandlingFunction · 0.64