VerifyAllInterceptionsEnded verifies all recorded interceptions have been marked as completed.
(t *testing.T)
| 178 | |
| 179 | // VerifyAllInterceptionsEnded verifies all recorded interceptions have been marked as completed. |
| 180 | func (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 | |
| 191 | func (m *MockRecorder) VerifyModelThoughtsRecorded(t *testing.T, expected []recorder.ModelThoughtRecord) { |
| 192 | thoughts := m.RecordedModelThoughts() |
no outgoing calls