github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mempool/mock/chunk_request_history_updater_func.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mempool 4 5 import ( 6 time "time" 7 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // ChunkRequestHistoryUpdaterFunc is an autogenerated mock type for the ChunkRequestHistoryUpdaterFunc type 12 type ChunkRequestHistoryUpdaterFunc struct { 13 mock.Mock 14 } 15 16 // Execute provides a mock function with given fields: _a0, _a1 17 func (_m *ChunkRequestHistoryUpdaterFunc) Execute(_a0 uint64, _a1 time.Duration) (uint64, time.Duration, bool) { 18 ret := _m.Called(_a0, _a1) 19 20 var r0 uint64 21 var r1 time.Duration 22 var r2 bool 23 if rf, ok := ret.Get(0).(func(uint64, time.Duration) (uint64, time.Duration, bool)); ok { 24 return rf(_a0, _a1) 25 } 26 if rf, ok := ret.Get(0).(func(uint64, time.Duration) uint64); ok { 27 r0 = rf(_a0, _a1) 28 } else { 29 r0 = ret.Get(0).(uint64) 30 } 31 32 if rf, ok := ret.Get(1).(func(uint64, time.Duration) time.Duration); ok { 33 r1 = rf(_a0, _a1) 34 } else { 35 r1 = ret.Get(1).(time.Duration) 36 } 37 38 if rf, ok := ret.Get(2).(func(uint64, time.Duration) bool); ok { 39 r2 = rf(_a0, _a1) 40 } else { 41 r2 = ret.Get(2).(bool) 42 } 43 44 return r0, r1, r2 45 } 46 47 type mockConstructorTestingTNewChunkRequestHistoryUpdaterFunc interface { 48 mock.TestingT 49 Cleanup(func()) 50 } 51 52 // NewChunkRequestHistoryUpdaterFunc creates a new instance of ChunkRequestHistoryUpdaterFunc. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 53 func NewChunkRequestHistoryUpdaterFunc(t mockConstructorTestingTNewChunkRequestHistoryUpdaterFunc) *ChunkRequestHistoryUpdaterFunc { 54 mock := &ChunkRequestHistoryUpdaterFunc{} 55 mock.Mock.Test(t) 56 57 t.Cleanup(func() { mock.AssertExpectations(t) }) 58 59 return mock 60 }