// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package portsmocks import ( "github.com/bnema/vev/internal/ports" mock "github.com/stretchr/testify/mock" ) // NewMockLinkStateReporter creates a new instance of MockLinkStateReporter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. // The first argument is typically a *testing.T value. func NewMockLinkStateReporter(t interface { mock.TestingT Cleanup(func()) }) *MockLinkStateReporter { mock := &MockLinkStateReporter{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockLinkStateReporter is an autogenerated mock type for the LinkStateReporter type type MockLinkStateReporter struct { mock.Mock } type MockLinkStateReporter_Expecter struct { mock *mock.Mock } func (_m *MockLinkStateReporter) EXPECT() *MockLinkStateReporter_Expecter { return &MockLinkStateReporter_Expecter{mock: &_m.Mock} } // LinkEvents provides a mock function for the type MockLinkStateReporter func (_mock *MockLinkStateReporter) LinkEvents() <-chan ports.LinkEvent { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for LinkEvents") } var r0 <-chan ports.LinkEvent if returnFunc, ok := ret.Get(0).(func() <-chan ports.LinkEvent); ok { r0 = returnFunc() } else { if ret.Get(0) != nil { r0 = ret.Get(0).(<-chan ports.LinkEvent) } } return r0 } // MockLinkStateReporter_LinkEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LinkEvents' type MockLinkStateReporter_LinkEvents_Call struct { *mock.Call } // LinkEvents is a helper method to define mock.On call func (_e *MockLinkStateReporter_Expecter) LinkEvents() *MockLinkStateReporter_LinkEvents_Call { return &MockLinkStateReporter_LinkEvents_Call{Call: _e.mock.On("LinkEvents")} } func (_c *MockLinkStateReporter_LinkEvents_Call) Run(run func()) *MockLinkStateReporter_LinkEvents_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockLinkStateReporter_LinkEvents_Call) Return(linkEventCh <-chan ports.LinkEvent) *MockLinkStateReporter_LinkEvents_Call { _c.Call.Return(linkEventCh) return _c } func (_c *MockLinkStateReporter_LinkEvents_Call) RunAndReturn(run func() <-chan ports.LinkEvent) *MockLinkStateReporter_LinkEvents_Call { _c.Call.Return(run) return _c } // LinkState provides a mock function for the type MockLinkStateReporter func (_mock *MockLinkStateReporter) LinkState() ports.LinkState { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for LinkState") } var r0 ports.LinkState if returnFunc, ok := ret.Get(0).(func() ports.LinkState); ok { r0 = returnFunc() } else { r0 = ret.Get(0).(ports.LinkState) } return r0 } // MockLinkStateReporter_LinkState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LinkState' type MockLinkStateReporter_LinkState_Call struct { *mock.Call } // LinkState is a helper method to define mock.On call func (_e *MockLinkStateReporter_Expecter) LinkState() *MockLinkStateReporter_LinkState_Call { return &MockLinkStateReporter_LinkState_Call{Call: _e.mock.On("LinkState")} } func (_c *MockLinkStateReporter_LinkState_Call) Run(run func()) *MockLinkStateReporter_LinkState_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockLinkStateReporter_LinkState_Call) Return(linkState ports.LinkState) *MockLinkStateReporter_LinkState_Call { _c.Call.Return(linkState) return _c } func (_c *MockLinkStateReporter_LinkState_Call) RunAndReturn(run func() ports.LinkState) *MockLinkStateReporter_LinkState_Call { _c.Call.Return(run) return _c }