github.com/koko1123/flow-go-1@v0.29.6/engine/execution/provider/mock/provider_engine.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package mock 4 5 import ( 6 context "context" 7 8 channels "github.com/koko1123/flow-go-1/network/channels" 9 10 flow "github.com/koko1123/flow-go-1/model/flow" 11 12 mock "github.com/stretchr/testify/mock" 13 ) 14 15 // ProviderEngine is an autogenerated mock type for the ProviderEngine type 16 type ProviderEngine struct { 17 mock.Mock 18 } 19 20 // BroadcastExecutionReceipt provides a mock function with given fields: _a0, _a1 21 func (_m *ProviderEngine) BroadcastExecutionReceipt(_a0 context.Context, _a1 *flow.ExecutionReceipt) error { 22 ret := _m.Called(_a0, _a1) 23 24 var r0 error 25 if rf, ok := ret.Get(0).(func(context.Context, *flow.ExecutionReceipt) error); ok { 26 r0 = rf(_a0, _a1) 27 } else { 28 r0 = ret.Error(0) 29 } 30 31 return r0 32 } 33 34 // Process provides a mock function with given fields: channel, originID, message 35 func (_m *ProviderEngine) Process(channel channels.Channel, originID flow.Identifier, message interface{}) error { 36 ret := _m.Called(channel, originID, message) 37 38 var r0 error 39 if rf, ok := ret.Get(0).(func(channels.Channel, flow.Identifier, interface{}) error); ok { 40 r0 = rf(channel, originID, message) 41 } else { 42 r0 = ret.Error(0) 43 } 44 45 return r0 46 } 47 48 type mockConstructorTestingTNewProviderEngine interface { 49 mock.TestingT 50 Cleanup(func()) 51 } 52 53 // NewProviderEngine creates a new instance of ProviderEngine. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 54 func NewProviderEngine(t mockConstructorTestingTNewProviderEngine) *ProviderEngine { 55 mock := &ProviderEngine{} 56 mock.Mock.Test(t) 57 58 t.Cleanup(func() { mock.AssertExpectations(t) }) 59 60 return mock 61 }