// 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" ) // NewMockContainerService creates a new instance of MockContainerService. 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 NewMockContainerService(t interface { mock.TestingT Cleanup(func()) }) *MockContainerService { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock := &MockContainerService{} mock.Mock.Test(t) t.Cleanup(func() { if helper, ok := t.(interface{ Helper() }); ok { helper.Helper() } mock.AssertExpectations(t) }) return mock } // MockContainerService is an autogenerated mock type for the ContainerService type type MockContainerService struct { mock.Mock } type MockContainerService_Expecter struct { mock *mock.Mock } func (_m *MockContainerService) EXPECT() *MockContainerService_Expecter { return &MockContainerService_Expecter{mock: &_m.Mock} } // ListNetworks provides a mock function for the type MockContainerService func (_mock *MockContainerService) ListNetworks(ctx context.Context) ([]*domain.NetworkInfo, error) { ret := _mock.Called(ctx) if len(ret) == 0 { panic("no return value specified for ListNetworks") } var r0 []*domain.NetworkInfo var r1 error if returnFunc, ok := ret.Get(0).(func(context.Context) ([]*domain.NetworkInfo, error)); ok { return returnFunc(ctx) } if returnFunc, ok := ret.Get(0).(func(context.Context) []*domain.NetworkInfo); ok { r0 = returnFunc(ctx) } else { if ret.Get(0) != nil { r0 = ret.Get(0).([]*domain.NetworkInfo) } } if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok { r1 = returnFunc(ctx) } else { r1 = ret.Error(1) } return r0, r1 } // MockContainerService_ListNetworks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNetworks' type MockContainerService_ListNetworks_Call struct { *mock.Call } // ListNetworks is a helper method to define mock.On call // - ctx context.Context func (_e *MockContainerService_Expecter) ListNetworks(ctx any) *MockContainerService_ListNetworks_Call { return &MockContainerService_ListNetworks_Call{Call: _e.mock.On("ListNetworks", ctx)} } func (_c *MockContainerService_ListNetworks_Call) Run(run func(ctx context.Context)) *MockContainerService_ListNetworks_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 *MockContainerService_ListNetworks_Call) Return(networkInfos []*domain.NetworkInfo, err error) *MockContainerService_ListNetworks_Call { _c.Call.Return(networkInfos, err) return _c } func (_c *MockContainerService_ListNetworks_Call) RunAndReturn(run func(ctx context.Context) ([]*domain.NetworkInfo, error)) *MockContainerService_ListNetworks_Call { _c.Call.Return(run) return _c } // Shutdown provides a mock function for the type MockContainerService func (_mock *MockContainerService) Shutdown(ctx context.Context) error { ret := _mock.Called(ctx) if len(ret) == 0 { panic("no return value specified for Shutdown") } var r0 error if returnFunc, ok := ret.Get(0).(func(context.Context) error); ok { r0 = returnFunc(ctx) } else { r0 = ret.Error(0) } return r0 } // MockContainerService_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown' type MockContainerService_Shutdown_Call struct { *mock.Call } // Shutdown is a helper method to define mock.On call // - ctx context.Context func (_e *MockContainerService_Expecter) Shutdown(ctx any) *MockContainerService_Shutdown_Call { return &MockContainerService_Shutdown_Call{Call: _e.mock.On("Shutdown", ctx)} } func (_c *MockContainerService_Shutdown_Call) Run(run func(ctx context.Context)) *MockContainerService_Shutdown_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 *MockContainerService_Shutdown_Call) Return(err error) *MockContainerService_Shutdown_Call { _c.Call.Return(err) return _c } func (_c *MockContainerService_Shutdown_Call) RunAndReturn(run func(ctx context.Context) error) *MockContainerService_Shutdown_Call { _c.Call.Return(run) return _c }