github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/module/mempool/mock/on_ejection.go (about) 1 // Code generated by mockery v2.21.4. DO NOT EDIT. 2 3 package mempool 4 5 import ( 6 flow "github.com/onflow/flow-go/model/flow" 7 8 mock "github.com/stretchr/testify/mock" 9 ) 10 11 // OnEjection is an autogenerated mock type for the OnEjection type 12 type OnEjection struct { 13 mock.Mock 14 } 15 16 // Execute provides a mock function with given fields: _a0 17 func (_m *OnEjection) Execute(_a0 flow.Entity) { 18 _m.Called(_a0) 19 } 20 21 type mockConstructorTestingTNewOnEjection interface { 22 mock.TestingT 23 Cleanup(func()) 24 } 25 26 // NewOnEjection creates a new instance of OnEjection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 27 func NewOnEjection(t mockConstructorTestingTNewOnEjection) *OnEjection { 28 mock := &OnEjection{} 29 mock.Mock.Test(t) 30 31 t.Cleanup(func() { mock.AssertExpectations(t) }) 32 33 return mock 34 }