// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "github.com/bnema/dumber/internal/application/port" mock "github.com/stretchr/testify/mock" ) // NewMockConfigMigrator creates a new instance of MockConfigMigrator. 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 NewMockConfigMigrator(t interface { mock.TestingT Cleanup(func()) }) *MockConfigMigrator { mock := &MockConfigMigrator{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockConfigMigrator is an autogenerated mock type for the ConfigMigrator type type MockConfigMigrator struct { mock.Mock } type MockConfigMigrator_Expecter struct { mock *mock.Mock } func (_m *MockConfigMigrator) EXPECT() *MockConfigMigrator_Expecter { return &MockConfigMigrator_Expecter{mock: &_m.Mock} } // CheckMigration provides a mock function for the type MockConfigMigrator func (_mock *MockConfigMigrator) CheckMigration() (*port.MigrationResult, error) { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for CheckMigration") } var r0 *port.MigrationResult var r1 error if returnFunc, ok := ret.Get(0).(func() (*port.MigrationResult, error)); ok { return returnFunc() } if returnFunc, ok := ret.Get(0).(func() *port.MigrationResult); ok { r0 = returnFunc() } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*port.MigrationResult) } } if returnFunc, ok := ret.Get(1).(func() error); ok { r1 = returnFunc() } else { r1 = ret.Error(1) } return r0, r1 } // MockConfigMigrator_CheckMigration_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckMigration' type MockConfigMigrator_CheckMigration_Call struct { *mock.Call } // CheckMigration is a helper method to define mock.On call func (_e *MockConfigMigrator_Expecter) CheckMigration() *MockConfigMigrator_CheckMigration_Call { return &MockConfigMigrator_CheckMigration_Call{Call: _e.mock.On("CheckMigration")} } func (_c *MockConfigMigrator_CheckMigration_Call) Run(run func()) *MockConfigMigrator_CheckMigration_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockConfigMigrator_CheckMigration_Call) Return(migrationResult *port.MigrationResult, err error) *MockConfigMigrator_CheckMigration_Call { _c.Call.Return(migrationResult, err) return _c } func (_c *MockConfigMigrator_CheckMigration_Call) RunAndReturn(run func() (*port.MigrationResult, error)) *MockConfigMigrator_CheckMigration_Call { _c.Call.Return(run) return _c } // DetectChanges provides a mock function for the type MockConfigMigrator func (_mock *MockConfigMigrator) DetectChanges() ([]port.KeyChange, error) { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for DetectChanges") } var r0 []port.KeyChange var r1 error if returnFunc, ok := ret.Get(0).(func() ([]port.KeyChange, error)); ok { return returnFunc() } if returnFunc, ok := ret.Get(0).(func() []port.KeyChange); ok { r0 = returnFunc() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]port.KeyChange) } } if returnFunc, ok := ret.Get(1).(func() error); ok { r1 = returnFunc() } else { r1 = ret.Error(1) } return r0, r1 } // MockConfigMigrator_DetectChanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DetectChanges' type MockConfigMigrator_DetectChanges_Call struct { *mock.Call } // DetectChanges is a helper method to define mock.On call func (_e *MockConfigMigrator_Expecter) DetectChanges() *MockConfigMigrator_DetectChanges_Call { return &MockConfigMigrator_DetectChanges_Call{Call: _e.mock.On("DetectChanges")} } func (_c *MockConfigMigrator_DetectChanges_Call) Run(run func()) *MockConfigMigrator_DetectChanges_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockConfigMigrator_DetectChanges_Call) Return(keyChanges []port.KeyChange, err error) *MockConfigMigrator_DetectChanges_Call { _c.Call.Return(keyChanges, err) return _c } func (_c *MockConfigMigrator_DetectChanges_Call) RunAndReturn(run func() ([]port.KeyChange, error)) *MockConfigMigrator_DetectChanges_Call { _c.Call.Return(run) return _c } // GetConfigFile provides a mock function for the type MockConfigMigrator func (_mock *MockConfigMigrator) GetConfigFile() (string, error) { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for GetConfigFile") } var r0 string var r1 error if returnFunc, ok := ret.Get(0).(func() (string, error)); ok { return returnFunc() } if returnFunc, ok := ret.Get(0).(func() string); ok { r0 = returnFunc() } else { r0 = ret.Get(0).(string) } if returnFunc, ok := ret.Get(1).(func() error); ok { r1 = returnFunc() } else { r1 = ret.Error(1) } return r0, r1 } // MockConfigMigrator_GetConfigFile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfigFile' type MockConfigMigrator_GetConfigFile_Call struct { *mock.Call } // GetConfigFile is a helper method to define mock.On call func (_e *MockConfigMigrator_Expecter) GetConfigFile() *MockConfigMigrator_GetConfigFile_Call { return &MockConfigMigrator_GetConfigFile_Call{Call: _e.mock.On("GetConfigFile")} } func (_c *MockConfigMigrator_GetConfigFile_Call) Run(run func()) *MockConfigMigrator_GetConfigFile_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockConfigMigrator_GetConfigFile_Call) Return(s string, err error) *MockConfigMigrator_GetConfigFile_Call { _c.Call.Return(s, err) return _c } func (_c *MockConfigMigrator_GetConfigFile_Call) RunAndReturn(run func() (string, error)) *MockConfigMigrator_GetConfigFile_Call { _c.Call.Return(run) return _c } // GetKeyInfo provides a mock function for the type MockConfigMigrator func (_mock *MockConfigMigrator) GetKeyInfo(key string) port.KeyInfo { ret := _mock.Called(key) if len(ret) == 0 { panic("no return value specified for GetKeyInfo") } var r0 port.KeyInfo if returnFunc, ok := ret.Get(0).(func(string) port.KeyInfo); ok { r0 = returnFunc(key) } else { r0 = ret.Get(0).(port.KeyInfo) } return r0 } // MockConfigMigrator_GetKeyInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetKeyInfo' type MockConfigMigrator_GetKeyInfo_Call struct { *mock.Call } // GetKeyInfo is a helper method to define mock.On call // - key string func (_e *MockConfigMigrator_Expecter) GetKeyInfo(key any) *MockConfigMigrator_GetKeyInfo_Call { return &MockConfigMigrator_GetKeyInfo_Call{Call: _e.mock.On("GetKeyInfo", key)} } func (_c *MockConfigMigrator_GetKeyInfo_Call) Run(run func(key string)) *MockConfigMigrator_GetKeyInfo_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 string if args[0] != nil { arg0 = args[0].(string) } run( arg0, ) }) return _c } func (_c *MockConfigMigrator_GetKeyInfo_Call) Return(keyInfo port.KeyInfo) *MockConfigMigrator_GetKeyInfo_Call { _c.Call.Return(keyInfo) return _c } func (_c *MockConfigMigrator_GetKeyInfo_Call) RunAndReturn(run func(key string) port.KeyInfo) *MockConfigMigrator_GetKeyInfo_Call { _c.Call.Return(run) return _c } // Migrate provides a mock function for the type MockConfigMigrator func (_mock *MockConfigMigrator) Migrate() ([]string, error) { ret := _mock.Called() if len(ret) == 0 { panic("no return value specified for Migrate") } var r0 []string var r1 error if returnFunc, ok := ret.Get(0).(func() ([]string, error)); ok { return returnFunc() } if returnFunc, ok := ret.Get(0).(func() []string); ok { r0 = returnFunc() } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]string) } } if returnFunc, ok := ret.Get(1).(func() error); ok { r1 = returnFunc() } else { r1 = ret.Error(1) } return r0, r1 } // MockConfigMigrator_Migrate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Migrate' type MockConfigMigrator_Migrate_Call struct { *mock.Call } // Migrate is a helper method to define mock.On call func (_e *MockConfigMigrator_Expecter) Migrate() *MockConfigMigrator_Migrate_Call { return &MockConfigMigrator_Migrate_Call{Call: _e.mock.On("Migrate")} } func (_c *MockConfigMigrator_Migrate_Call) Run(run func()) *MockConfigMigrator_Migrate_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MockConfigMigrator_Migrate_Call) Return(strings []string, err error) *MockConfigMigrator_Migrate_Call { _c.Call.Return(strings, err) return _c } func (_c *MockConfigMigrator_Migrate_Call) RunAndReturn(run func() ([]string, error)) *MockConfigMigrator_Migrate_Call { _c.Call.Return(run) return _c } // NewMockDiffFormatter creates a new instance of MockDiffFormatter. 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 NewMockDiffFormatter(t interface { mock.TestingT Cleanup(func()) }) *MockDiffFormatter { mock := &MockDiffFormatter{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock } // MockDiffFormatter is an autogenerated mock type for the DiffFormatter type type MockDiffFormatter struct { mock.Mock } type MockDiffFormatter_Expecter struct { mock *mock.Mock } func (_m *MockDiffFormatter) EXPECT() *MockDiffFormatter_Expecter { return &MockDiffFormatter_Expecter{mock: &_m.Mock} } // FormatChangesAsDiff provides a mock function for the type MockDiffFormatter func (_mock *MockDiffFormatter) FormatChangesAsDiff(changes []port.KeyChange) string { ret := _mock.Called(changes) if len(ret) == 0 { panic("no return value specified for FormatChangesAsDiff") } var r0 string if returnFunc, ok := ret.Get(0).(func([]port.KeyChange) string); ok { r0 = returnFunc(changes) } else { r0 = ret.Get(0).(string) } return r0 } // MockDiffFormatter_FormatChangesAsDiff_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FormatChangesAsDiff' type MockDiffFormatter_FormatChangesAsDiff_Call struct { *mock.Call } // FormatChangesAsDiff is a helper method to define mock.On call // - changes []port.KeyChange func (_e *MockDiffFormatter_Expecter) FormatChangesAsDiff(changes any) *MockDiffFormatter_FormatChangesAsDiff_Call { return &MockDiffFormatter_FormatChangesAsDiff_Call{Call: _e.mock.On("FormatChangesAsDiff", changes)} } func (_c *MockDiffFormatter_FormatChangesAsDiff_Call) Run(run func(changes []port.KeyChange)) *MockDiffFormatter_FormatChangesAsDiff_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 []port.KeyChange if args[0] != nil { arg0 = args[0].([]port.KeyChange) } run( arg0, ) }) return _c } func (_c *MockDiffFormatter_FormatChangesAsDiff_Call) Return(s string) *MockDiffFormatter_FormatChangesAsDiff_Call { _c.Call.Return(s) return _c } func (_c *MockDiffFormatter_FormatChangesAsDiff_Call) RunAndReturn(run func(changes []port.KeyChange) string) *MockDiffFormatter_FormatChangesAsDiff_Call { _c.Call.Return(run) return _c }