diff options
| author | Nippy <nippy@rp1.hu> | 2026-05-09 13:33:09 +0200 |
|---|---|---|
| committer | Nippy <nippy@rp1.hu> | 2026-05-09 13:33:09 +0200 |
| commit | a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5 (patch) | |
| tree | 1a8769217f84bfe9d6216fafaadaf8cdd876d457 /raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/mocks/geolocation | |
| parent | 34b9c34f982b2596cfa9e368a2d7f74e9a17477c (diff) | |
| download | RaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.tar.gz RaveOS-PKGBUILD-a2b924d7e9492b978ad6dc33b6c1ffcb304b4bc5.zip | |
raveos update
Diffstat (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/mocks/geolocation')
| -rw-r--r-- | raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/mocks/geolocation/mock_Client.go | 203 |
1 files changed, 0 insertions, 203 deletions
diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/mocks/geolocation/mock_Client.go b/raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/mocks/geolocation/mock_Client.go deleted file mode 100644 index bf097cb..0000000 --- a/raveos-hyprland-theme/theme-data/DankMaterialShell/core/internal/mocks/geolocation/mock_Client.go +++ /dev/null @@ -1,203 +0,0 @@ -// Code generated by mockery v2.53.5. DO NOT EDIT. - -package mocks_geolocation - -import ( - geolocation "github.com/AvengeMedia/DankMaterialShell/core/internal/geolocation" - mock "github.com/stretchr/testify/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 with no fields -func (_m *MockClient) Close() { - _m.Called() -} - -// 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 with no fields -func (_m *MockClient) GetLocation() (geolocation.Location, error) { - ret := _m.Called() - - if len(ret) == 0 { - panic("no return value specified for GetLocation") - } - - var r0 geolocation.Location - var r1 error - if rf, ok := ret.Get(0).(func() (geolocation.Location, error)); ok { - return rf() - } - if rf, ok := ret.Get(0).(func() geolocation.Location); ok { - r0 = rf() - } else { - r0 = ret.Get(0).(geolocation.Location) - } - - if rf, ok := ret.Get(1).(func() error); ok { - r1 = rf() - } 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(_a0 geolocation.Location, _a1 error) *MockClient_GetLocation_Call { - _c.Call.Return(_a0, _a1) - 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 with given fields: id -func (_m *MockClient) Subscribe(id string) chan geolocation.Location { - ret := _m.Called(id) - - if len(ret) == 0 { - panic("no return value specified for Subscribe") - } - - var r0 chan geolocation.Location - if rf, ok := ret.Get(0).(func(string) chan geolocation.Location); ok { - r0 = rf(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 interface{}) *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) { - run(args[0].(string)) - }) - return _c -} - -func (_c *MockClient_Subscribe_Call) Return(_a0 chan geolocation.Location) *MockClient_Subscribe_Call { - _c.Call.Return(_a0) - return _c -} - -func (_c *MockClient_Subscribe_Call) RunAndReturn(run func(string) chan geolocation.Location) *MockClient_Subscribe_Call { - _c.Call.Return(run) - return _c -} - -// Unsubscribe provides a mock function with given fields: id -func (_m *MockClient) Unsubscribe(id string) { - _m.Called(id) -} - -// 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 interface{}) *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) { - run(args[0].(string)) - }) - return _c -} - -func (_c *MockClient_Unsubscribe_Call) Return() *MockClient_Unsubscribe_Call { - _c.Call.Return() - return _c -} - -func (_c *MockClient_Unsubscribe_Call) RunAndReturn(run func(string)) *MockClient_Unsubscribe_Call { - _c.Run(run) - return _c -} - -// 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 -} |