// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "github.com/bnema/dumber/internal/domain/entity" mock "github.com/stretchr/testify/mock" ) // NewMockRuntimeConfigProvider creates a new instance of MockRuntimeConfigProvider. 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 NewMockRuntimeConfigProvider(t interface { mock.TestingT Cleanup(func()) }) *MockRuntimeConfigProvider { mock := &MockRuntimeConfigProvider{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockRuntimeConfigProvider is an autogenerated mock type for the RuntimeConfigProvider type type MockRuntimeConfigProvider struct { mock.Mock } type MockRuntimeConfigProvider_Expecter struct { mock *mock.Mock } func (_m *MockRuntimeConfigProvider) EXPECT() *MockRuntimeConfigProvider_Expecter { return &MockRuntimeConfigProvider_Expecter{mock: &_m.Mock} } // Current provides a mock function for the type MockRuntimeConfigProvider func (_mock *MockRuntimeConfigProvider) Current() entity.RuntimeConfigSnapshot { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for Current") } var r0 entity.RuntimeConfigSnapshot if returnFunc, ok := ret.Get(0).(func() entity.RuntimeConfigSnapshot); ok { r0 = returnFunc() } else { r0 = ret.Get(0).(entity.RuntimeConfigSnapshot) } return r0 } // MockRuntimeConfigProvider_Current_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Current' type MockRuntimeConfigProvider_Current_Call struct { *mock.Call } // Current is a helper method to define mock.On call func (_e *MockRuntimeConfigProvider_Expecter) Current() *MockRuntimeConfigProvider_Current_Call { return &MockRuntimeConfigProvider_Current_Call{Call: _e.mock.On("Current")} } func (_c *MockRuntimeConfigProvider_Current_Call) Run(run func()) *MockRuntimeConfigProvider_Current_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockRuntimeConfigProvider_Current_Call) Return(runtimeConfigSnapshot entity.RuntimeConfigSnapshot) *MockRuntimeConfigProvider_Current_Call { _c.Call.Return(runtimeConfigSnapshot) return _c } func (_c *MockRuntimeConfigProvider_Current_Call) RunAndReturn(run func() entity.RuntimeConfigSnapshot) *MockRuntimeConfigProvider_Current_Call { _c.Call.Return(run) return _c } // OnChange provides a mock function for the type MockRuntimeConfigProvider func (_mock *MockRuntimeConfigProvider) OnChange(fn func(entity.RuntimeConfigSnapshot)) { _mock.Called(fn) return } // MockRuntimeConfigProvider_OnChange_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnChange' type MockRuntimeConfigProvider_OnChange_Call struct { *mock.Call } // OnChange is a helper method to define mock.On call // - fn func(entity.RuntimeConfigSnapshot) func (_e *MockRuntimeConfigProvider_Expecter) OnChange(fn any) *MockRuntimeConfigProvider_OnChange_Call { return &MockRuntimeConfigProvider_OnChange_Call{Call: _e.mock.On("OnChange", fn)} } func (_c *MockRuntimeConfigProvider_OnChange_Call) Run(run func(fn func(entity.RuntimeConfigSnapshot))) *MockRuntimeConfigProvider_OnChange_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 func(entity.RuntimeConfigSnapshot) if args[0] != nil { arg0 = args[0].(func(entity.RuntimeConfigSnapshot)) } run( arg0, ) }) return _c } func (_c *MockRuntimeConfigProvider_OnChange_Call) Return() *MockRuntimeConfigProvider_OnChange_Call { _c.Call.Return() return _c } func (_c *MockRuntimeConfigProvider_OnChange_Call) RunAndReturn(run func(fn func(entity.RuntimeConfigSnapshot))) *MockRuntimeConfigProvider_OnChange_Call { _c.Run(run) return _c } // Watch provides a mock function for the type MockRuntimeConfigProvider func (_mock *MockRuntimeConfigProvider) Watch() error { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for Watch") } var r0 error if returnFunc, ok := ret.Get(0).(func() error); ok { r0 = returnFunc() } else { r0 = ret.Error(0) } return r0 } // MockRuntimeConfigProvider_Watch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Watch' type MockRuntimeConfigProvider_Watch_Call struct { *mock.Call } // Watch is a helper method to define mock.On call func (_e *MockRuntimeConfigProvider_Expecter) Watch() *MockRuntimeConfigProvider_Watch_Call { return &MockRuntimeConfigProvider_Watch_Call{Call: _e.mock.On("Watch")} } func (_c *MockRuntimeConfigProvider_Watch_Call) Run(run func()) *MockRuntimeConfigProvider_Watch_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockRuntimeConfigProvider_Watch_Call) Return(err error) *MockRuntimeConfigProvider_Watch_Call { _c.Call.Return(err) return _c } func (_c *MockRuntimeConfigProvider_Watch_Call) RunAndReturn(run func() error) *MockRuntimeConfigProvider_Watch_Call { _c.Call.Return(run) return _c }