MCPcopy
hub / github.com/keploy/keploy / DropCount

Method DropCount

pkg/agent/proxy/syncMock/syncMock.go:372–377  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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

Calls 1

LoadMethod · 0.65