github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mock/hero_cache_metrics.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mock 4 5 import mock "github.com/stretchr/testify/mock" 6 7 // HeroCacheMetrics is an autogenerated mock type for the HeroCacheMetrics type 8 type HeroCacheMetrics struct { 9 mock.Mock 10 } 11 12 // BucketAvailableSlots provides a mock function with given fields: _a0, _a1 13 func (_m *HeroCacheMetrics) BucketAvailableSlots(_a0 uint64, _a1 uint64) { 14 _m.Called(_a0, _a1) 15 } 16 17 // OnEntityEjectionDueToEmergency provides a mock function with given fields: 18 func (_m *HeroCacheMetrics) OnEntityEjectionDueToEmergency() { 19 _m.Called() 20 } 21 22 // OnEntityEjectionDueToFullCapacity provides a mock function with given fields: 23 func (_m *HeroCacheMetrics) OnEntityEjectionDueToFullCapacity() { 24 _m.Called() 25 } 26 27 // OnKeyGetFailure provides a mock function with given fields: 28 func (_m *HeroCacheMetrics) OnKeyGetFailure() { 29 _m.Called() 30 } 31 32 // OnKeyGetSuccess provides a mock function with given fields: 33 func (_m *HeroCacheMetrics) OnKeyGetSuccess() { 34 _m.Called() 35 } 36 37 // OnKeyPutAttempt provides a mock function with given fields: size 38 func (_m *HeroCacheMetrics) OnKeyPutAttempt(size uint32) { 39 _m.Called(size) 40 } 41 42 // OnKeyPutDeduplicated provides a mock function with given fields: 43 func (_m *HeroCacheMetrics) OnKeyPutDeduplicated() { 44 _m.Called() 45 } 46 47 // OnKeyPutDrop provides a mock function with given fields: 48 func (_m *HeroCacheMetrics) OnKeyPutDrop() { 49 _m.Called() 50 } 51 52 // OnKeyPutSuccess provides a mock function with given fields: size 53 func (_m *HeroCacheMetrics) OnKeyPutSuccess(size uint32) { 54 _m.Called(size) 55 } 56 57 // OnKeyRemoved provides a mock function with given fields: size 58 func (_m *HeroCacheMetrics) OnKeyRemoved(size uint32) { 59 _m.Called(size) 60 } 61 62 type mockConstructorTestingTNewHeroCacheMetrics interface { 63 mock.TestingT 64 Cleanup(func()) 65 } 66 67 // NewHeroCacheMetrics creates a new instance of HeroCacheMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 68 func NewHeroCacheMetrics(t mockConstructorTestingTNewHeroCacheMetrics) *HeroCacheMetrics { 69 mock := &HeroCacheMetrics{} 70 mock.Mock.Test(t) 71 72 t.Cleanup(func() { mock.AssertExpectations(t) }) 73 74 return mock 75 }