// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" "github.com/bnema/dumber/internal/application/port" mock "github.com/stretchr/testify/mock" ) // NewMockHardwareSurveyor creates a new instance of MockHardwareSurveyor. 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 NewMockHardwareSurveyor(t interface { mock.TestingT Cleanup(func()) }) *MockHardwareSurveyor { mock := &MockHardwareSurveyor{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockHardwareSurveyor is an autogenerated mock type for the HardwareSurveyor type type MockHardwareSurveyor struct { mock.Mock } type MockHardwareSurveyor_Expecter struct { mock *mock.Mock } func (_m *MockHardwareSurveyor) EXPECT() *MockHardwareSurveyor_Expecter { return &MockHardwareSurveyor_Expecter{mock: &_m.Mock} } // Survey provides a mock function for the type MockHardwareSurveyor func (_mock *MockHardwareSurveyor) Survey(ctx context.Context) port.HardwareInfo { ret := _mock.Called(ctx) if len(ret) == 0 { panic("no return value specified for Survey") } var r0 port.HardwareInfo if returnFunc, ok := ret.Get(0).(func(context.Context) port.HardwareInfo); ok { r0 = returnFunc(ctx) } else { r0 = ret.Get(0).(port.HardwareInfo) } return r0 } // MockHardwareSurveyor_Survey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Survey' type MockHardwareSurveyor_Survey_Call struct { *mock.Call } // Survey is a helper method to define mock.On call // - ctx context.Context func (_e *MockHardwareSurveyor_Expecter) Survey(ctx any) *MockHardwareSurveyor_Survey_Call { return &MockHardwareSurveyor_Survey_Call{Call: _e.mock.On("Survey", ctx)} } func (_c *MockHardwareSurveyor_Survey_Call) Run(run func(ctx context.Context)) *MockHardwareSurveyor_Survey_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } run( arg0, ) }) return _c } func (_c *MockHardwareSurveyor_Survey_Call) Return(hardwareInfo port.HardwareInfo) *MockHardwareSurveyor_Survey_Call { _c.Call.Return(hardwareInfo) return _c } func (_c *MockHardwareSurveyor_Survey_Call) RunAndReturn(run func(ctx context.Context) port.HardwareInfo) *MockHardwareSurveyor_Survey_Call { _c.Call.Return(run) return _c }