github.com/koko1123/flow-go-1@v0.29.6/module/component/mock/component_worker.go (about) 1 // Code generated by mockery v2.13.1. DO NOT EDIT. 2 3 package component 4 5 import ( 6 component "github.com/koko1123/flow-go-1/module/component" 7 irrecoverable "github.com/koko1123/flow-go-1/module/irrecoverable" 8 9 mock "github.com/stretchr/testify/mock" 10 ) 11 12 // ComponentWorker is an autogenerated mock type for the ComponentWorker type 13 type ComponentWorker struct { 14 mock.Mock 15 } 16 17 // Execute provides a mock function with given fields: ctx, ready 18 func (_m *ComponentWorker) Execute(ctx irrecoverable.SignalerContext, ready component.ReadyFunc) { 19 _m.Called(ctx, ready) 20 } 21 22 type mockConstructorTestingTNewComponentWorker interface { 23 mock.TestingT 24 Cleanup(func()) 25 } 26 27 // NewComponentWorker creates a new instance of ComponentWorker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. 28 func NewComponentWorker(t mockConstructorTestingTNewComponentWorker) *ComponentWorker { 29 mock := &ComponentWorker{} 30 mock.Mock.Test(t) 31 32 t.Cleanup(func() { mock.AssertExpectations(t) }) 33 34 return mock 35 }