github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mempool/mock/chunk_data_pack_message_store.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mempool 4 5 import ( 6 engine "github.com/onflow/flow-go/engine" 7 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // ChunkDataPackMessageStore is an autogenerated mock type for the ChunkDataPackMessageStore type 12 type ChunkDataPackMessageStore struct { 13 mock.Mock 14 } 15 16 // Get provides a mock function with given fields: 17 func (_m *ChunkDataPackMessageStore) Get() (*engine.Message, bool) { 18 ret := _m.Called() 19 20 var r0 *engine.Message 21 if rf, ok := ret.Get(0).(func() *engine.Message); ok { 22 r0 = rf() 23 } else { 24 if ret.Get(0) != nil { 25 r0 = ret.Get(0).(*engine.Message) 26 } 27 } 28 29 var r1 bool 30 if rf, ok := ret.Get(1).(func() bool); ok { 31 r1 = rf() 32 } else { 33 r1 = ret.Get(1).(bool) 34 } 35 36 return r0, r1 37 } 38 39 // Put provides a mock function with given fields: _a0 40 func (_m *ChunkDataPackMessageStore) Put(_a0 *engine.Message) bool { 41 ret := _m.Called(_a0) 42 43 var r0 bool 44 if rf, ok := ret.Get(0).(func(*engine.Message) bool); ok { 45 r0 = rf(_a0) 46 } else { 47 r0 = ret.Get(0).(bool) 48 } 49 50 return r0 51 } 52 53 // Size provides a mock function with given fields: 54 func (_m *ChunkDataPackMessageStore) Size() uint { 55 ret := _m.Called() 56 57 var r0 uint 58 if rf, ok := ret.Get(0).(func() uint); ok { 59 r0 = rf() 60 } else { 61 r0 = ret.Get(0).(uint) 62 } 63 64 return r0 65 } 66 67 type mockConstructorTestingTNewChunkDataPackMessageStore interface { 68 mock.TestingT 69 Cleanup(func()) 70 } 71 72 // NewChunkDataPackMessageStore creates a new instance of ChunkDataPackMessageStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 73 func NewChunkDataPackMessageStore(t mockConstructorTestingTNewChunkDataPackMessageStore) *ChunkDataPackMessageStore { 74 mock := &ChunkDataPackMessageStore{} 75 mock.Mock.Test(t) 76 77 t.Cleanup(func() { mock.AssertExpectations(t) }) 78 79 return mock 80 }