// Code generated by mockery v2.53.5. DO NOT EDIT. package gonetworkmanager import ( gonetworkmanager "github.com/Wifx/gonetworkmanager/v2" dbus "github.com/godbus/dbus/v5" mock "github.com/stretchr/testify/mock" ) // MockAccessPoint is an autogenerated mock type for the AccessPoint type type MockAccessPoint struct { mock.Mock } type MockAccessPoint_Expecter struct { mock *mock.Mock } func (_m *MockAccessPoint) EXPECT() *MockAccessPoint_Expecter { return &MockAccessPoint_Expecter{mock: &_m.Mock} } // GetPath provides a mock function with no fields func (_m *MockAccessPoint) GetPath() dbus.ObjectPath { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPath") } var r0 dbus.ObjectPath if rf, ok := ret.Get(0).(func() dbus.ObjectPath); ok { r0 = rf() } else { r0 = ret.Get(0).(dbus.ObjectPath) } return r0 } // MockAccessPoint_GetPath_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPath' type MockAccessPoint_GetPath_Call struct { *mock.Call } // GetPath is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPath() *MockAccessPoint_GetPath_Call { return &MockAccessPoint_GetPath_Call{Call: _e.mock.On("GetPath")} } func (_c *MockAccessPoint_GetPath_Call) Run(run func()) *MockAccessPoint_GetPath_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPath_Call) Return(_a0 dbus.ObjectPath) *MockAccessPoint_GetPath_Call { _c.Call.Return(_a0) return _c } func (_c *MockAccessPoint_GetPath_Call) RunAndReturn(run func() dbus.ObjectPath) *MockAccessPoint_GetPath_Call { _c.Call.Return(run) return _c } // GetPropertyFlags provides a mock function with no fields func (_m *MockAccessPoint) GetPropertyFlags() (uint32, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertyFlags") } var r0 uint32 var r1 error if rf, ok := ret.Get(0).(func() (uint32, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() uint32); ok { r0 = rf() } else { r0 = ret.Get(0).(uint32) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertyFlags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertyFlags' type MockAccessPoint_GetPropertyFlags_Call struct { *mock.Call } // GetPropertyFlags is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertyFlags() *MockAccessPoint_GetPropertyFlags_Call { return &MockAccessPoint_GetPropertyFlags_Call{Call: _e.mock.On("GetPropertyFlags")} } func (_c *MockAccessPoint_GetPropertyFlags_Call) Run(run func()) *MockAccessPoint_GetPropertyFlags_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertyFlags_Call) Return(_a0 uint32, _a1 error) *MockAccessPoint_GetPropertyFlags_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertyFlags_Call) RunAndReturn(run func() (uint32, error)) *MockAccessPoint_GetPropertyFlags_Call { _c.Call.Return(run) return _c } // GetPropertyFrequency provides a mock function with no fields func (_m *MockAccessPoint) GetPropertyFrequency() (uint32, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertyFrequency") } var r0 uint32 var r1 error if rf, ok := ret.Get(0).(func() (uint32, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() uint32); ok { r0 = rf() } else { r0 = ret.Get(0).(uint32) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertyFrequency_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertyFrequency' type MockAccessPoint_GetPropertyFrequency_Call struct { *mock.Call } // GetPropertyFrequency is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertyFrequency() *MockAccessPoint_GetPropertyFrequency_Call { return &MockAccessPoint_GetPropertyFrequency_Call{Call: _e.mock.On("GetPropertyFrequency")} } func (_c *MockAccessPoint_GetPropertyFrequency_Call) Run(run func()) *MockAccessPoint_GetPropertyFrequency_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertyFrequency_Call) Return(_a0 uint32, _a1 error) *MockAccessPoint_GetPropertyFrequency_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertyFrequency_Call) RunAndReturn(run func() (uint32, error)) *MockAccessPoint_GetPropertyFrequency_Call { _c.Call.Return(run) return _c } // GetPropertyHWAddress provides a mock function with no fields func (_m *MockAccessPoint) GetPropertyHWAddress() (string, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertyHWAddress") } var r0 string var r1 error if rf, ok := ret.Get(0).(func() (string, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() string); ok { r0 = rf() } else { r0 = ret.Get(0).(string) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertyHWAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertyHWAddress' type MockAccessPoint_GetPropertyHWAddress_Call struct { *mock.Call } // GetPropertyHWAddress is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertyHWAddress() *MockAccessPoint_GetPropertyHWAddress_Call { return &MockAccessPoint_GetPropertyHWAddress_Call{Call: _e.mock.On("GetPropertyHWAddress")} } func (_c *MockAccessPoint_GetPropertyHWAddress_Call) Run(run func()) *MockAccessPoint_GetPropertyHWAddress_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertyHWAddress_Call) Return(_a0 string, _a1 error) *MockAccessPoint_GetPropertyHWAddress_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertyHWAddress_Call) RunAndReturn(run func() (string, error)) *MockAccessPoint_GetPropertyHWAddress_Call { _c.Call.Return(run) return _c } // GetPropertyLastSeen provides a mock function with no fields func (_m *MockAccessPoint) GetPropertyLastSeen() (int32, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertyLastSeen") } var r0 int32 var r1 error if rf, ok := ret.Get(0).(func() (int32, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() int32); ok { r0 = rf() } else { r0 = ret.Get(0).(int32) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertyLastSeen_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertyLastSeen' type MockAccessPoint_GetPropertyLastSeen_Call struct { *mock.Call } // GetPropertyLastSeen is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertyLastSeen() *MockAccessPoint_GetPropertyLastSeen_Call { return &MockAccessPoint_GetPropertyLastSeen_Call{Call: _e.mock.On("GetPropertyLastSeen")} } func (_c *MockAccessPoint_GetPropertyLastSeen_Call) Run(run func()) *MockAccessPoint_GetPropertyLastSeen_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertyLastSeen_Call) Return(_a0 int32, _a1 error) *MockAccessPoint_GetPropertyLastSeen_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertyLastSeen_Call) RunAndReturn(run func() (int32, error)) *MockAccessPoint_GetPropertyLastSeen_Call { _c.Call.Return(run) return _c } // GetPropertyMaxBitrate provides a mock function with no fields func (_m *MockAccessPoint) GetPropertyMaxBitrate() (uint32, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertyMaxBitrate") } var r0 uint32 var r1 error if rf, ok := ret.Get(0).(func() (uint32, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() uint32); ok { r0 = rf() } else { r0 = ret.Get(0).(uint32) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertyMaxBitrate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertyMaxBitrate' type MockAccessPoint_GetPropertyMaxBitrate_Call struct { *mock.Call } // GetPropertyMaxBitrate is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertyMaxBitrate() *MockAccessPoint_GetPropertyMaxBitrate_Call { return &MockAccessPoint_GetPropertyMaxBitrate_Call{Call: _e.mock.On("GetPropertyMaxBitrate")} } func (_c *MockAccessPoint_GetPropertyMaxBitrate_Call) Run(run func()) *MockAccessPoint_GetPropertyMaxBitrate_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertyMaxBitrate_Call) Return(_a0 uint32, _a1 error) *MockAccessPoint_GetPropertyMaxBitrate_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertyMaxBitrate_Call) RunAndReturn(run func() (uint32, error)) *MockAccessPoint_GetPropertyMaxBitrate_Call { _c.Call.Return(run) return _c } // GetPropertyMode provides a mock function with no fields func (_m *MockAccessPoint) GetPropertyMode() (gonetworkmanager.Nm80211Mode, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertyMode") } var r0 gonetworkmanager.Nm80211Mode var r1 error if rf, ok := ret.Get(0).(func() (gonetworkmanager.Nm80211Mode, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() gonetworkmanager.Nm80211Mode); ok { r0 = rf() } else { r0 = ret.Get(0).(gonetworkmanager.Nm80211Mode) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertyMode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertyMode' type MockAccessPoint_GetPropertyMode_Call struct { *mock.Call } // GetPropertyMode is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertyMode() *MockAccessPoint_GetPropertyMode_Call { return &MockAccessPoint_GetPropertyMode_Call{Call: _e.mock.On("GetPropertyMode")} } func (_c *MockAccessPoint_GetPropertyMode_Call) Run(run func()) *MockAccessPoint_GetPropertyMode_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertyMode_Call) Return(_a0 gonetworkmanager.Nm80211Mode, _a1 error) *MockAccessPoint_GetPropertyMode_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertyMode_Call) RunAndReturn(run func() (gonetworkmanager.Nm80211Mode, error)) *MockAccessPoint_GetPropertyMode_Call { _c.Call.Return(run) return _c } // GetPropertyRSNFlags provides a mock function with no fields func (_m *MockAccessPoint) GetPropertyRSNFlags() (uint32, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertyRSNFlags") } var r0 uint32 var r1 error if rf, ok := ret.Get(0).(func() (uint32, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() uint32); ok { r0 = rf() } else { r0 = ret.Get(0).(uint32) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertyRSNFlags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertyRSNFlags' type MockAccessPoint_GetPropertyRSNFlags_Call struct { *mock.Call } // GetPropertyRSNFlags is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertyRSNFlags() *MockAccessPoint_GetPropertyRSNFlags_Call { return &MockAccessPoint_GetPropertyRSNFlags_Call{Call: _e.mock.On("GetPropertyRSNFlags")} } func (_c *MockAccessPoint_GetPropertyRSNFlags_Call) Run(run func()) *MockAccessPoint_GetPropertyRSNFlags_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertyRSNFlags_Call) Return(_a0 uint32, _a1 error) *MockAccessPoint_GetPropertyRSNFlags_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertyRSNFlags_Call) RunAndReturn(run func() (uint32, error)) *MockAccessPoint_GetPropertyRSNFlags_Call { _c.Call.Return(run) return _c } // GetPropertySSID provides a mock function with no fields func (_m *MockAccessPoint) GetPropertySSID() (string, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertySSID") } var r0 string var r1 error if rf, ok := ret.Get(0).(func() (string, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() string); ok { r0 = rf() } else { r0 = ret.Get(0).(string) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertySSID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertySSID' type MockAccessPoint_GetPropertySSID_Call struct { *mock.Call } // GetPropertySSID is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertySSID() *MockAccessPoint_GetPropertySSID_Call { return &MockAccessPoint_GetPropertySSID_Call{Call: _e.mock.On("GetPropertySSID")} } func (_c *MockAccessPoint_GetPropertySSID_Call) Run(run func()) *MockAccessPoint_GetPropertySSID_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertySSID_Call) Return(_a0 string, _a1 error) *MockAccessPoint_GetPropertySSID_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertySSID_Call) RunAndReturn(run func() (string, error)) *MockAccessPoint_GetPropertySSID_Call { _c.Call.Return(run) return _c } // GetPropertyStrength provides a mock function with no fields func (_m *MockAccessPoint) GetPropertyStrength() (uint8, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertyStrength") } var r0 uint8 var r1 error if rf, ok := ret.Get(0).(func() (uint8, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() uint8); ok { r0 = rf() } else { r0 = ret.Get(0).(uint8) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertyStrength_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertyStrength' type MockAccessPoint_GetPropertyStrength_Call struct { *mock.Call } // GetPropertyStrength is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertyStrength() *MockAccessPoint_GetPropertyStrength_Call { return &MockAccessPoint_GetPropertyStrength_Call{Call: _e.mock.On("GetPropertyStrength")} } func (_c *MockAccessPoint_GetPropertyStrength_Call) Run(run func()) *MockAccessPoint_GetPropertyStrength_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertyStrength_Call) Return(_a0 uint8, _a1 error) *MockAccessPoint_GetPropertyStrength_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertyStrength_Call) RunAndReturn(run func() (uint8, error)) *MockAccessPoint_GetPropertyStrength_Call { _c.Call.Return(run) return _c } // GetPropertyWPAFlags provides a mock function with no fields func (_m *MockAccessPoint) GetPropertyWPAFlags() (uint32, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for GetPropertyWPAFlags") } var r0 uint32 var r1 error if rf, ok := ret.Get(0).(func() (uint32, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() uint32); ok { r0 = rf() } else { r0 = ret.Get(0).(uint32) } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_GetPropertyWPAFlags_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPropertyWPAFlags' type MockAccessPoint_GetPropertyWPAFlags_Call struct { *mock.Call } // GetPropertyWPAFlags is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) GetPropertyWPAFlags() *MockAccessPoint_GetPropertyWPAFlags_Call { return &MockAccessPoint_GetPropertyWPAFlags_Call{Call: _e.mock.On("GetPropertyWPAFlags")} } func (_c *MockAccessPoint_GetPropertyWPAFlags_Call) Run(run func()) *MockAccessPoint_GetPropertyWPAFlags_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_GetPropertyWPAFlags_Call) Return(_a0 uint32, _a1 error) *MockAccessPoint_GetPropertyWPAFlags_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_GetPropertyWPAFlags_Call) RunAndReturn(run func() (uint32, error)) *MockAccessPoint_GetPropertyWPAFlags_Call { _c.Call.Return(run) return _c } // MarshalJSON provides a mock function with no fields func (_m *MockAccessPoint) MarshalJSON() ([]byte, error) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for MarshalJSON") } var r0 []byte var r1 error if rf, ok := ret.Get(0).(func() ([]byte, error)); ok { return rf() } if rf, ok := ret.Get(0).(func() []byte); ok { r0 = rf() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]byte) } } if rf, ok := ret.Get(1).(func() error); ok { r1 = rf() } else { r1 = ret.Error(1) } return r0, r1 } // MockAccessPoint_MarshalJSON_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MarshalJSON' type MockAccessPoint_MarshalJSON_Call struct { *mock.Call } // MarshalJSON is a helper method to define mock.On call func (_e *MockAccessPoint_Expecter) MarshalJSON() *MockAccessPoint_MarshalJSON_Call { return &MockAccessPoint_MarshalJSON_Call{Call: _e.mock.On("MarshalJSON")} } func (_c *MockAccessPoint_MarshalJSON_Call) Run(run func()) *MockAccessPoint_MarshalJSON_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockAccessPoint_MarshalJSON_Call) Return(_a0 []byte, _a1 error) *MockAccessPoint_MarshalJSON_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *MockAccessPoint_MarshalJSON_Call) RunAndReturn(run func() ([]byte, error)) *MockAccessPoint_MarshalJSON_Call { _c.Call.Return(run) return _c } // NewMockAccessPoint creates a new instance of MockAccessPoint. 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 NewMockAccessPoint(t interface { mock.TestingT Cleanup(func()) }) *MockAccessPoint { mock := &MockAccessPoint{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }