// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package oscar import ( "github.com/mk6i/open-oscar-server/wire" mock "github.com/stretchr/testify/mock" ) // newMockOnlineNotifier creates a new instance of mockOnlineNotifier. 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 newMockOnlineNotifier(t interface { mock.TestingT Cleanup(func()) }) *mockOnlineNotifier { mock := &mockOnlineNotifier{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // mockOnlineNotifier is an autogenerated mock type for the OnlineNotifier type type mockOnlineNotifier struct { mock.Mock } type mockOnlineNotifier_Expecter struct { mock *mock.Mock } func (_m *mockOnlineNotifier) EXPECT() *mockOnlineNotifier_Expecter { return &mockOnlineNotifier_Expecter{mock: &_m.Mock} } // HostOnline provides a mock function for the type mockOnlineNotifier func (_mock *mockOnlineNotifier) HostOnline(service uint16) wire.SNACMessage { ret := _mock.Called(service) if len(ret) == 0 { panic("no return value specified for HostOnline") } var r0 wire.SNACMessage if returnFunc, ok := ret.Get(0).(func(uint16) wire.SNACMessage); ok { r0 = returnFunc(service) } else { r0 = ret.Get(0).(wire.SNACMessage) } return r0 } // mockOnlineNotifier_HostOnline_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HostOnline' type mockOnlineNotifier_HostOnline_Call struct { *mock.Call } // HostOnline is a helper method to define mock.On call // - service uint16 func (_e *mockOnlineNotifier_Expecter) HostOnline(service interface{}) *mockOnlineNotifier_HostOnline_Call { return &mockOnlineNotifier_HostOnline_Call{Call: _e.mock.On("HostOnline", service)} } func (_c *mockOnlineNotifier_HostOnline_Call) Run(run func(service uint16)) *mockOnlineNotifier_HostOnline_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 uint16 if args[0] != nil { arg0 = args[0].(uint16) } run( arg0, ) }) return _c } func (_c *mockOnlineNotifier_HostOnline_Call) Return(sNACMessage wire.SNACMessage) *mockOnlineNotifier_HostOnline_Call { _c.Call.Return(sNACMessage) return _c } func (_c *mockOnlineNotifier_HostOnline_Call) RunAndReturn(run func(service uint16) wire.SNACMessage) *mockOnlineNotifier_HostOnline_Call { _c.Call.Return(run) return _c }