// 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" ) // NewMockMediaDiagnostics creates a new instance of MockMediaDiagnostics. 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 NewMockMediaDiagnostics(t interface { mock.TestingT Cleanup(func()) }) *MockMediaDiagnostics { mock := &MockMediaDiagnostics{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockMediaDiagnostics is an autogenerated mock type for the MediaDiagnostics type type MockMediaDiagnostics struct { mock.Mock } type MockMediaDiagnostics_Expecter struct { mock *mock.Mock } func (_m *MockMediaDiagnostics) EXPECT() *MockMediaDiagnostics_Expecter { return &MockMediaDiagnostics_Expecter{mock: &_m.Mock} } // RunDiagnostics provides a mock function for the type MockMediaDiagnostics func (_mock *MockMediaDiagnostics) RunDiagnostics(ctx context.Context) *port.MediaDiagnosticsResult { ret := _mock.Called(ctx) if len(ret) == 0 { panic("no return value specified for RunDiagnostics") } var r0 *port.MediaDiagnosticsResult if returnFunc, ok := ret.Get(0).(func(context.Context) *port.MediaDiagnosticsResult); ok { r0 = returnFunc(ctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*port.MediaDiagnosticsResult) } } return r0 } // MockMediaDiagnostics_RunDiagnostics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RunDiagnostics' type MockMediaDiagnostics_RunDiagnostics_Call struct { *mock.Call } // RunDiagnostics is a helper method to define mock.On call // - ctx context.Context func (_e *MockMediaDiagnostics_Expecter) RunDiagnostics(ctx any) *MockMediaDiagnostics_RunDiagnostics_Call { return &MockMediaDiagnostics_RunDiagnostics_Call{Call: _e.mock.On("RunDiagnostics", ctx)} } func (_c *MockMediaDiagnostics_RunDiagnostics_Call) Run(run func(ctx context.Context)) *MockMediaDiagnostics_RunDiagnostics_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 *MockMediaDiagnostics_RunDiagnostics_Call) Return(mediaDiagnosticsResult *port.MediaDiagnosticsResult) *MockMediaDiagnostics_RunDiagnostics_Call { _c.Call.Return(mediaDiagnosticsResult) return _c } func (_c *MockMediaDiagnostics_RunDiagnostics_Call) RunAndReturn(run func(ctx context.Context) *port.MediaDiagnosticsResult) *MockMediaDiagnostics_RunDiagnostics_Call { _c.Call.Return(run) return _c }