// Code generated by mockery; DO NOT EDIT. // github.com/vektra/mockery // template: testify package mocks import ( "context" "github.com/bnema/gordon/internal/domain" mock "github.com/stretchr/testify/mock" ) // NewMockPruneRuntime creates a new instance of MockPruneRuntime. 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 NewMockPruneRuntime(t interface { mock.TestingT Cleanup(func()) }) *MockPruneRuntime { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockPruneRuntime{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockPruneRuntime is an autogenerated mock type for the PruneRuntime type type MockPruneRuntime struct { mock.Mock } type MockPruneRuntime_Expecter struct { mock *mock.Mock } func (_m *MockPruneRuntime) EXPECT() *MockPruneRuntime_Expecter { return &MockPruneRuntime_Expecter{mock: &_m.Mock} } // InventoryRuntime provides a mock function for the type MockPruneRuntime func (_mock *MockPruneRuntime) InventoryRuntime(ctx context.Context) (*domain.RuntimeInventory, error) { ret := _mock.Called(ctx) if len(ret) == 0 { panic("no return value specified for InventoryRuntime") } var r0 *domain.RuntimeInventory var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context) (*domain.RuntimeInventory, error)); ok { return returnFunc(ctx) } if returnFunc, ok := ret.Get(0).(func(context.Context) *domain.RuntimeInventory); ok { r0 = returnFunc(ctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*domain.RuntimeInventory) } } if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { r1 = returnFunc(ctx) } else { r1 = ret.Error(1) } return r0, r1 } // MockPruneRuntime_InventoryRuntime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InventoryRuntime' type MockPruneRuntime_InventoryRuntime_Call struct { *mock.Call } // InventoryRuntime is a helper method to define mock.On call // - ctx context.Context func (_e *MockPruneRuntime_Expecter) InventoryRuntime(ctx any) *MockPruneRuntime_InventoryRuntime_Call { return &MockPruneRuntime_InventoryRuntime_Call{Call: _e.mock.On("InventoryRuntime", ctx)} } func (_c *MockPruneRuntime_InventoryRuntime_Call) Run(run func(ctx context.Context)) *MockPruneRuntime_InventoryRuntime_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 *MockPruneRuntime_InventoryRuntime_Call) Return(runtimeInventory *domain.RuntimeInventory, err error) *MockPruneRuntime_InventoryRuntime_Call { _c.Call.Return(runtimeInventory, err) return _c } func (_c *MockPruneRuntime_InventoryRuntime_Call) RunAndReturn(run func(ctx context.Context) (*domain.RuntimeInventory, error)) *MockPruneRuntime_InventoryRuntime_Call { _c.Call.Return(run) return _c } // RemoveImageExact provides a mock function for the type MockPruneRuntime func (_mock *MockPruneRuntime) RemoveImageExact(ctx context.Context, ref domain.RuntimeImageRef) error { ret := _mock.Called(ctx, ref) if len(ret) == 0 { panic("no return value specified for RemoveImageExact") } var r0 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RuntimeImageRef) error); ok { r0 = returnFunc(ctx, ref) } else { r0 = ret.Error(0) } return r0 } // MockPruneRuntime_RemoveImageExact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveImageExact' type MockPruneRuntime_RemoveImageExact_Call struct { *mock.Call } // RemoveImageExact is a helper method to define mock.On call // - ctx context.Context // - ref domain.RuntimeImageRef func (_e *MockPruneRuntime_Expecter) RemoveImageExact(ctx any, ref any) *MockPruneRuntime_RemoveImageExact_Call { return &MockPruneRuntime_RemoveImageExact_Call{Call: _e.mock.On("RemoveImageExact", ctx, ref)} } func (_c *MockPruneRuntime_RemoveImageExact_Call) Run(run func(ctx context.Context, ref domain.RuntimeImageRef)) *MockPruneRuntime_RemoveImageExact_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.RuntimeImageRef if args[1] != nil { arg1 = args[1].(domain.RuntimeImageRef) } run( arg0, arg1, ) }) return _c } func (_c *MockPruneRuntime_RemoveImageExact_Call) Return(err error) *MockPruneRuntime_RemoveImageExact_Call { _c.Call.Return(err) return _c } func (_c *MockPruneRuntime_RemoveImageExact_Call) RunAndReturn(run func(ctx context.Context, ref domain.RuntimeImageRef) error) *MockPruneRuntime_RemoveImageExact_Call { _c.Call.Return(run) return _c } // RemoveVolumeExact provides a mock function for the type MockPruneRuntime func (_mock *MockPruneRuntime) RemoveVolumeExact(ctx context.Context, ref domain.RuntimeVolumeRef) error { ret := _mock.Called(ctx, ref) if len(ret) == 0 { panic("no return value specified for RemoveVolumeExact") } var r0 error if returnFunc, ok := ret.Get(0).(func(context.Context, domain.RuntimeVolumeRef) error); ok { r0 = returnFunc(ctx, ref) } else { r0 = ret.Error(0) } return r0 } // MockPruneRuntime_RemoveVolumeExact_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveVolumeExact' type MockPruneRuntime_RemoveVolumeExact_Call struct { *mock.Call } // RemoveVolumeExact is a helper method to define mock.On call // - ctx context.Context // - ref domain.RuntimeVolumeRef func (_e *MockPruneRuntime_Expecter) RemoveVolumeExact(ctx any, ref any) *MockPruneRuntime_RemoveVolumeExact_Call { return &MockPruneRuntime_RemoveVolumeExact_Call{Call: _e.mock.On("RemoveVolumeExact", ctx, ref)} } func (_c *MockPruneRuntime_RemoveVolumeExact_Call) Run(run func(ctx context.Context, ref domain.RuntimeVolumeRef)) *MockPruneRuntime_RemoveVolumeExact_Call { _c.Call.Run(func(args mock.Arguments) { var arg0 context.Context if args[0] != nil { arg0 = args[0].(context.Context) } var arg1 domain.RuntimeVolumeRef if args[1] != nil { arg1 = args[1].(domain.RuntimeVolumeRef) } run( arg0, arg1, ) }) return _c } func (_c *MockPruneRuntime_RemoveVolumeExact_Call) Return(err error) *MockPruneRuntime_RemoveVolumeExact_Call { _c.Call.Return(err) return _c } func (_c *MockPruneRuntime_RemoveVolumeExact_Call) RunAndReturn(run func(ctx context.Context, ref domain.RuntimeVolumeRef) error) *MockPruneRuntime_RemoveVolumeExact_Call { _c.Call.Return(run) return _c }