DropCount exposes the cumulative drop counter for tests and external observability. The value is monotonically increasing; readers that need a delta should snapshot and diff.
()
| 370 | // external observability. The value is monotonically increasing; |
| 371 | // readers that need a delta should snapshot and diff. |
| 372 | func (m *SyncMockManager) DropCount() uint64 { |
| 373 | if m == nil { |
| 374 | return 0 |
| 375 | } |
| 376 | return m.dropCount.Load() |
| 377 | } |
| 378 | |
| 379 | func (m *SyncMockManager) AddMock(mock *models.Mock) { |
| 380 | // Unification (Phase 1): resolve the live mock's Lifetime immediately |