// 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" ) // NewMockConfigSchemaProvider creates a new instance of MockConfigSchemaProvider. 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 NewMockConfigSchemaProvider(t interface { mock.TestingT Cleanup(func()) }) *MockConfigSchemaProvider { mock := &MockConfigSchemaProvider{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockConfigSchemaProvider is an autogenerated mock type for the ConfigSchemaProvider type type MockConfigSchemaProvider struct { mock.Mock } type MockConfigSchemaProvider_Expecter struct { mock *mock.Mock } func (_m *MockConfigSchemaProvider) EXPECT() *MockConfigSchemaProvider_Expecter { return &MockConfigSchemaProvider_Expecter{mock: &_m.Mock} } // GetSchema provides a mock function for the type MockConfigSchemaProvider func (_mock *MockConfigSchemaProvider) GetSchema() []entity.ConfigKeyInfo { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for GetSchema") } var r0 []entity.ConfigKeyInfo if returnFunc, ok := ret.Get(0).(func() []entity.ConfigKeyInfo); ok { r0 = returnFunc() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]entity.ConfigKeyInfo) } } return r0 } // MockConfigSchemaProvider_GetSchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSchema' type MockConfigSchemaProvider_GetSchema_Call struct { *mock.Call } // GetSchema is a helper method to define mock.On call func (_e *MockConfigSchemaProvider_Expecter) GetSchema() *MockConfigSchemaProvider_GetSchema_Call { return &MockConfigSchemaProvider_GetSchema_Call{Call: _e.mock.On("GetSchema")} } func (_c *MockConfigSchemaProvider_GetSchema_Call) Run(run func()) *MockConfigSchemaProvider_GetSchema_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockConfigSchemaProvider_GetSchema_Call) Return(configKeyInfos []entity.ConfigKeyInfo) *MockConfigSchemaProvider_GetSchema_Call { _c.Call.Return(configKeyInfos) return _c } func (_c *MockConfigSchemaProvider_GetSchema_Call) RunAndReturn(run func() []entity.ConfigKeyInfo) *MockConfigSchemaProvider_GetSchema_Call { _c.Call.Return(run) return _c }