// Code generated by mockery 2.53.2. DO NOT EDIT. package pilgrim_mock import mock "github.com/stretchr/testify/mock" // MigrationPhaseRetriever is an autogenerated mock type for the MigrationPhaseRetriever type type MigrationPhaseRetriever struct { mock.Mock } type MigrationPhaseRetriever_Expecter struct { mock *mock.Mock } func (_m *MigrationPhaseRetriever) EXPECT() *MigrationPhaseRetriever_Expecter { return &MigrationPhaseRetriever_Expecter{mock: &_m.Mock} } // IsDown provides a mock function with no fields func (_m *MigrationPhaseRetriever) IsDown() (bool, bool) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for IsDown") } var r0 bool var r1 bool if rf, ok := ret.Get(0).(func() (bool, bool)); ok { return rf() } if rf, ok := ret.Get(0).(func() bool); ok { r0 = rf() } else { r0 = ret.Get(0).(bool) } if rf, ok := ret.Get(1).(func() bool); ok { r1 = rf() } else { r1 = ret.Get(1).(bool) } return r0, r1 } // MigrationPhaseRetriever_IsDown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDown' type MigrationPhaseRetriever_IsDown_Call struct { *mock.Call } // IsDown is a helper method to define mock.On call func (_e *MigrationPhaseRetriever_Expecter) IsDown() *MigrationPhaseRetriever_IsDown_Call { return &MigrationPhaseRetriever_IsDown_Call{Call: _e.mock.On("IsDown")} } func (_c *MigrationPhaseRetriever_IsDown_Call) Run(run func()) *MigrationPhaseRetriever_IsDown_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MigrationPhaseRetriever_IsDown_Call) Return(isDown bool, isDownProvided bool) *MigrationPhaseRetriever_IsDown_Call { _c.Call.Return(isDown, isDownProvided) return _c } func (_c *MigrationPhaseRetriever_IsDown_Call) RunAndReturn(run func() (bool, bool)) *MigrationPhaseRetriever_IsDown_Call { _c.Call.Return(run) return _c } // IsUp provides a mock function with no fields func (_m *MigrationPhaseRetriever) IsUp() (bool, bool) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for IsUp") } var r0 bool var r1 bool if rf, ok := ret.Get(0).(func() (bool, bool)); ok { return rf() } if rf, ok := ret.Get(0).(func() bool); ok { r0 = rf() } else { r0 = ret.Get(0).(bool) } if rf, ok := ret.Get(1).(func() bool); ok { r1 = rf() } else { r1 = ret.Get(1).(bool) } return r0, r1 } // MigrationPhaseRetriever_IsUp_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsUp' type MigrationPhaseRetriever_IsUp_Call struct { *mock.Call } // IsUp is a helper method to define mock.On call func (_e *MigrationPhaseRetriever_Expecter) IsUp() *MigrationPhaseRetriever_IsUp_Call { return &MigrationPhaseRetriever_IsUp_Call{Call: _e.mock.On("IsUp")} } func (_c *MigrationPhaseRetriever_IsUp_Call) Run(run func()) *MigrationPhaseRetriever_IsUp_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MigrationPhaseRetriever_IsUp_Call) Return(isUp bool, isUpProvided bool) *MigrationPhaseRetriever_IsUp_Call { _c.Call.Return(isUp, isUpProvided) return _c } func (_c *MigrationPhaseRetriever_IsUp_Call) RunAndReturn(run func() (bool, bool)) *MigrationPhaseRetriever_IsUp_Call { _c.Call.Return(run) return _c } // Script provides a mock function with no fields func (_m *MigrationPhaseRetriever) Script() (string, bool) { ret := _m.Called() if len(ret) == 0 { panic("no return value specified for Script") } var r0 string var r1 bool if rf, ok := ret.Get(0).(func() (string, bool)); ok { return rf() } if rf, ok := ret.Get(0).(func() string); ok { r0 = rf() } else { r0 = ret.Get(0).(string) } if rf, ok := ret.Get(1).(func() bool); ok { r1 = rf() } else { r1 = ret.Get(1).(bool) } return r0, r1 } // MigrationPhaseRetriever_Script_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Script' type MigrationPhaseRetriever_Script_Call struct { *mock.Call } // Script is a helper method to define mock.On call func (_e *MigrationPhaseRetriever_Expecter) Script() *MigrationPhaseRetriever_Script_Call { return &MigrationPhaseRetriever_Script_Call{Call: _e.mock.On("Script")} } func (_c *MigrationPhaseRetriever_Script_Call) Run(run func()) *MigrationPhaseRetriever_Script_Call { _c.Call.Run(func(args mock.Arguments) { run() }) return _c } func (_c *MigrationPhaseRetriever_Script_Call) Return(script string, isScriptProvided bool) *MigrationPhaseRetriever_Script_Call { _c.Call.Return(script, isScriptProvided) return _c } func (_c *MigrationPhaseRetriever_Script_Call) RunAndReturn(run func() (string, bool)) *MigrationPhaseRetriever_Script_Call { _c.Call.Return(run) return _c } // NewMigrationPhaseRetriever creates a new instance of MigrationPhaseRetriever. 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 NewMigrationPhaseRetriever(t interface { mock.TestingT Cleanup(func()) }) *MigrationPhaseRetriever { mock := &MigrationPhaseRetriever{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }