From 8bdde7c190db6e26f7df58ca16809eb1858f9e75 Mon Sep 17 00:00:00 2001 From: programmersstudio Date: Fri, 9 Sep 2022 09:42:08 +0530 Subject: [PATCH] update mocks --- do/mocks/AppsService.go | 15 +++++++++++++++ do/mocks/DatabasesService.go | 29 +++++++++++++++-------------- 2 files changed, 30 insertions(+), 14 deletions(-) diff --git a/do/mocks/AppsService.go b/do/mocks/AppsService.go index b94f8adf5..ae6f14999 100644 --- a/do/mocks/AppsService.go +++ b/do/mocks/AppsService.go @@ -78,6 +78,21 @@ func (mr *MockAppsServiceMockRecorder) Delete(appID interface{}) *gomock.Call { return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockAppsService)(nil).Delete), appID) } +// Detect mocks base method. +func (m *MockAppsService) Detect(source, sha, name, branch string, autoDeploy bool) (*godo.AppSpec, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "Detect", source, sha, name, branch, autoDeploy) + ret0, _ := ret[0].(*godo.AppSpec) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// Detect indicates an expected call of Detect. +func (mr *MockAppsServiceMockRecorder) Detect(source, sha, name, branch, autoDeploy interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Detect", reflect.TypeOf((*MockAppsService)(nil).Detect), source, sha, name, branch, autoDeploy) +} + // Get mocks base method. func (m *MockAppsService) Get(appID string) (*godo.App, error) { m.ctrl.T.Helper() diff --git a/do/mocks/DatabasesService.go b/do/mocks/DatabasesService.go index a16e1bc16..64ecd6032 100644 --- a/do/mocks/DatabasesService.go +++ b/do/mocks/DatabasesService.go @@ -18,20 +18,6 @@ type MockDatabasesService struct { recorder *MockDatabasesServiceMockRecorder } -func (m *MockDatabasesService) ListOptions() (*do.DatabaseOptions, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ListOptions") - ret0, _ := ret[0].(*do.DatabaseOptions) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// ListOptions indicates an expected call of ListOptions. -func (mr *MockDatabasesServiceMockRecorder) ListOptions() *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOptions", reflect.TypeOf((*MockDatabasesService)(nil).ListOptions)) -} - // MockDatabasesServiceMockRecorder is the mock recorder for MockDatabasesService. type MockDatabasesServiceMockRecorder struct { mock *MockDatabasesService @@ -389,6 +375,21 @@ func (mr *MockDatabasesServiceMockRecorder) ListDBs(arg0 interface{}) *gomock.Ca return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDBs", reflect.TypeOf((*MockDatabasesService)(nil).ListDBs), arg0) } +// ListOptions mocks base method. +func (m *MockDatabasesService) ListOptions() (*do.DatabaseOptions, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ListOptions") + ret0, _ := ret[0].(*do.DatabaseOptions) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ListOptions indicates an expected call of ListOptions. +func (mr *MockDatabasesServiceMockRecorder) ListOptions() *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListOptions", reflect.TypeOf((*MockDatabasesService)(nil).ListOptions)) +} + // ListPools mocks base method. func (m *MockDatabasesService) ListPools(arg0 string) (do.DatabasePools, error) { m.ctrl.T.Helper()