// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks_geolocation import ( "github.com/AvengeMedia/DankMaterialShell/core/internal/geolocation" mock "github.com/stretchr/testify/mock" ) // NewMockClient creates a new instance of MockClient. 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 NewMockClient(t interface { mock.TestingT Cleanup(func()) }) *MockClient { mock := &MockClient{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockClient is an autogenerated mock type for the Client type type MockClient struct { mock.Mock } type MockClient_Expecter struct { mock *mock.Mock } func (_m *MockClient) EXPECT() *MockClient_Expecter { return &MockClient_Expecter{mock: &_m.Mock} } // Close provides a mock function for the type MockClient func (_mock *MockClient) Close() { _mock.Called() return } // MockClient_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close' type MockClient_Close_Call struct { *mock.Call } // Close is a helper method to define mock.On call func (_e *MockClient_Expecter) Close() *MockClient_Close_Call { return &MockClient_Close_Call{Call: _e.mock.On("Close")} } func (_c *MockClient_Close_Call) Run(run func()) *MockClient_Close_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockClient_Close_Call) Return() *MockClient_Close_Call { _c.Call.Return() return _c } func (_c *MockClient_Close_Call) RunAndReturn(run func()) *MockClient_Close_Call { _c.Run(run) return _c } // GetLocation provides a mock function for the type MockClient func (_mock *MockClient) GetLocation() (geolocation.Location, error) { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for GetLocation") } var r0 geolocation.Location var r1 error if returnFunc, ok := ret.Get(0).(func() (geolocation.Location, error)); ok { return returnFunc() } if returnFunc, ok := ret.Get(0).(func() geolocation.Location); ok { r0 = returnFunc() } else { r0 = ret.Get(0).(geolocation.Location) } if returnFunc, ok := ret.Get(1).(func() error); ok { r1 = returnFunc() } else { r1 = ret.Error(1) } return r0, r1 } // MockClient_GetLocation_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLocation' type MockClient_GetLocation_Call struct { *mock.Call } // GetLocation is a helper method to define mock.On call func (_e *MockClient_Expecter) GetLocation() *MockClient_GetLocation_Call { return &MockClient_GetLocation_Call{Call: _e.mock.On("GetLocation")} } func (_c *MockClient_GetLocation_Call) Run(run func()) *MockClient_GetLocation_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockClient_GetLocation_Call) Return(location geolocation.Location, err error) *MockClient_GetLocation_Call { _c.Call.Return(location, err) return _c } func (_c *MockClient_GetLocation_Call) RunAndReturn(run func() (geolocation.Location, error)) *MockClient_GetLocation_Call { _c.Call.Return(run) return _c } // Subscribe provides a mock function for the type MockClient func (_mock *MockClient) Subscribe(id string) chan geolocation.Location { ret := _mock.Called(id) if len(ret) == 0 { panic("no return value specified for Subscribe") } var r0 chan geolocation.Location if returnFunc, ok := ret.Get(0).(func(string) chan geolocation.Location); ok { r0 = returnFunc(id) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(chan geolocation.Location) } } return r0 } // MockClient_Subscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Subscribe' type MockClient_Subscribe_Call struct { *mock.Call } // Subscribe is a helper method to define mock.On call // - id string func (_e *MockClient_Expecter) Subscribe(id any) *MockClient_Subscribe_Call { return &MockClient_Subscribe_Call{Call: _e.mock.On("Subscribe", id)} } func (_c *MockClient_Subscribe_Call) Run(run func(id string)) *MockClient_Subscribe_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 string if args[0] != nil { arg0 = args[0].(string) } run( arg0, ) }) return _c } func (_c *MockClient_Subscribe_Call) Return(locationCh chan geolocation.Location) *MockClient_Subscribe_Call { _c.Call.Return(locationCh) return _c } func (_c *MockClient_Subscribe_Call) RunAndReturn(run func(id string) chan geolocation.Location) *MockClient_Subscribe_Call { _c.Call.Return(run) return _c } // Unsubscribe provides a mock function for the type MockClient func (_mock *MockClient) Unsubscribe(id string) { _mock.Called(id) return } // MockClient_Unsubscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unsubscribe' type MockClient_Unsubscribe_Call struct { *mock.Call } // Unsubscribe is a helper method to define mock.On call // - id string func (_e *MockClient_Expecter) Unsubscribe(id any) *MockClient_Unsubscribe_Call { return &MockClient_Unsubscribe_Call{Call: _e.mock.On("Unsubscribe", id)} } func (_c *MockClient_Unsubscribe_Call) Run(run func(id string)) *MockClient_Unsubscribe_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 string if args[0] != nil { arg0 = args[0].(string) } run( arg0, ) }) return _c } func (_c *MockClient_Unsubscribe_Call) Return() *MockClient_Unsubscribe_Call { _c.Call.Return() return _c } func (_c *MockClient_Unsubscribe_Call) RunAndReturn(run func(id string)) *MockClient_Unsubscribe_Call { _c.Run(run) return _c }