RecordedInterceptions returns a copy of recorded interceptions in a thread-safe manner. Note: This is a shallow clone (see RecordedTokenUsages for details).
()
| 155 | // RecordedInterceptions returns a copy of recorded interceptions in a thread-safe manner. |
| 156 | // Note: This is a shallow clone (see RecordedTokenUsages for details). |
| 157 | func (m *MockRecorder) RecordedInterceptions() []*recorder.InterceptionRecord { |
| 158 | m.mu.Lock() |
| 159 | defer m.mu.Unlock() |
| 160 | return slices.Clone(m.interceptions) |
| 161 | } |
| 162 | |
| 163 | // ToolUsages returns the raw toolUsages slice for direct field access in tests. |
| 164 | // Use RecordedToolUsages() for thread-safe access when assertions don't need direct field access. |