diff --git a/pkg/gitlab/gitlab_mock/group.go b/pkg/gitlab/gitlab_mock/group.go index bebb0f4..46aebce 100644 --- a/pkg/gitlab/gitlab_mock/group.go +++ b/pkg/gitlab/gitlab_mock/group.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/group_file_ops.go b/pkg/gitlab/gitlab_mock/group_file_ops.go index 45d3491..a131a7b 100644 --- a/pkg/gitlab/gitlab_mock/group_file_ops.go +++ b/pkg/gitlab/gitlab_mock/group_file_ops.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/group_variables.go b/pkg/gitlab/gitlab_mock/group_variables.go index 8001ffc..7186afc 100644 --- a/pkg/gitlab/gitlab_mock/group_variables.go +++ b/pkg/gitlab/gitlab_mock/group_variables.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock @@ -38,6 +38,32 @@ func (_m *GroupVariables) GetVariable(gid interface{}, key string) (*gitlab.Grou return r0, r1 } +// GetVariables provides a mock function with given fields: groupID, recursive +func (_m *GroupVariables) GetVariables(groupID int, recursive bool) (map[string]string, error) { + ret := _m.Called(groupID, recursive) + + var r0 map[string]string + var r1 error + if rf, ok := ret.Get(0).(func(int, bool) (map[string]string, error)); ok { + return rf(groupID, recursive) + } + if rf, ok := ret.Get(0).(func(int, bool) map[string]string); ok { + r0 = rf(groupID, recursive) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(map[string]string) + } + } + + if rf, ok := ret.Get(1).(func(int, bool) error); ok { + r1 = rf(groupID, recursive) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + type mockConstructorTestingTNewGroupVariables interface { mock.TestingT Cleanup(func()) diff --git a/pkg/gitlab/gitlab_mock/job.go b/pkg/gitlab/gitlab_mock/job.go index 68f0514..0b9656b 100644 --- a/pkg/gitlab/gitlab_mock/job.go +++ b/pkg/gitlab/gitlab_mock/job.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/merge_request.go b/pkg/gitlab/gitlab_mock/merge_request.go index b02aaeb..a9f128c 100644 --- a/pkg/gitlab/gitlab_mock/merge_request.go +++ b/pkg/gitlab/gitlab_mock/merge_request.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/pipeline.go b/pkg/gitlab/gitlab_mock/pipeline.go index 7e832e0..fa4fd0e 100644 --- a/pkg/gitlab/gitlab_mock/pipeline.go +++ b/pkg/gitlab/gitlab_mock/pipeline.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/project.go b/pkg/gitlab/gitlab_mock/project.go index ffaca7c..7bc7bd0 100644 --- a/pkg/gitlab/gitlab_mock/project.go +++ b/pkg/gitlab/gitlab_mock/project.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock @@ -40,25 +40,25 @@ func (_m *Project) CreateMinimalMRApproval(id gitlab.NameOrId, minimalApproval i return r0, r1 } -// CreateProject provides a mock function with given fields: name, parentID, visibility -func (_m *Project) CreateProject(name string, parentID int, visibility go_gitlab.VisibilityValue) (*go_gitlab.Project, error) { - ret := _m.Called(name, parentID, visibility) +// CreateProject provides a mock function with given fields: name, parentID, visibility, defaultBranch +func (_m *Project) CreateProject(name string, parentID int, visibility go_gitlab.VisibilityValue, defaultBranch string) (*go_gitlab.Project, error) { + ret := _m.Called(name, parentID, visibility, defaultBranch) var r0 *go_gitlab.Project var r1 error - if rf, ok := ret.Get(0).(func(string, int, go_gitlab.VisibilityValue) (*go_gitlab.Project, error)); ok { - return rf(name, parentID, visibility) + if rf, ok := ret.Get(0).(func(string, int, go_gitlab.VisibilityValue, string) (*go_gitlab.Project, error)); ok { + return rf(name, parentID, visibility, defaultBranch) } - if rf, ok := ret.Get(0).(func(string, int, go_gitlab.VisibilityValue) *go_gitlab.Project); ok { - r0 = rf(name, parentID, visibility) + if rf, ok := ret.Get(0).(func(string, int, go_gitlab.VisibilityValue, string) *go_gitlab.Project); ok { + r0 = rf(name, parentID, visibility, defaultBranch) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*go_gitlab.Project) } } - if rf, ok := ret.Get(1).(func(string, int, go_gitlab.VisibilityValue) error); ok { - r1 = rf(name, parentID, visibility) + if rf, ok := ret.Get(1).(func(string, int, go_gitlab.VisibilityValue, string) error); ok { + r1 = rf(name, parentID, visibility, defaultBranch) } else { r1 = ret.Error(1) } diff --git a/pkg/gitlab/gitlab_mock/project_file_ops.go b/pkg/gitlab/gitlab_mock/project_file_ops.go index ccbd007..65b566d 100644 --- a/pkg/gitlab/gitlab_mock/project_file_ops.go +++ b/pkg/gitlab/gitlab_mock/project_file_ops.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/protected_branch.go b/pkg/gitlab/gitlab_mock/protected_branch.go index b5c6d73..78af3c8 100644 --- a/pkg/gitlab/gitlab_mock/protected_branch.go +++ b/pkg/gitlab/gitlab_mock/protected_branch.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/repository_file.go b/pkg/gitlab/gitlab_mock/repository_file.go index 715cfba..d3711e2 100644 --- a/pkg/gitlab/gitlab_mock/repository_file.go +++ b/pkg/gitlab/gitlab_mock/repository_file.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/search.go b/pkg/gitlab/gitlab_mock/search.go index 4e4ef9b..e9328dd 100644 --- a/pkg/gitlab/gitlab_mock/search.go +++ b/pkg/gitlab/gitlab_mock/search.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/search_func.go b/pkg/gitlab/gitlab_mock/search_func.go index f7ed34f..1a7d590 100644 --- a/pkg/gitlab/gitlab_mock/search_func.go +++ b/pkg/gitlab/gitlab_mock/search_func.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/gitlab/gitlab_mock/tag.go b/pkg/gitlab/gitlab_mock/tag.go index 49f8f3d..29530e4 100644 --- a/pkg/gitlab/gitlab_mock/tag.go +++ b/pkg/gitlab/gitlab_mock/tag.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package gitlab_mock diff --git a/pkg/tmpl/tmpl_mock/file_filter.go b/pkg/tmpl/tmpl_mock/file_filter.go index 7168e21..416ac53 100644 --- a/pkg/tmpl/tmpl_mock/file_filter.go +++ b/pkg/tmpl/tmpl_mock/file_filter.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package tmpl_mock diff --git a/pkg/tmpl/tmpl_mock/scan_result.go b/pkg/tmpl/tmpl_mock/scan_result.go index 394d39d..8f392a9 100644 --- a/pkg/tmpl/tmpl_mock/scan_result.go +++ b/pkg/tmpl/tmpl_mock/scan_result.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package tmpl_mock diff --git a/pkg/tmpl/tmpl_mock/template_scan_delim_func.go b/pkg/tmpl/tmpl_mock/template_scan_delim_func.go index 2fd7ecc..5b91a87 100644 --- a/pkg/tmpl/tmpl_mock/template_scan_delim_func.go +++ b/pkg/tmpl/tmpl_mock/template_scan_delim_func.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package tmpl_mock diff --git a/pkg/tmpl/tmpl_mock/template_scan_func.go b/pkg/tmpl/tmpl_mock/template_scan_func.go index df56071..e751933 100644 --- a/pkg/tmpl/tmpl_mock/template_scan_func.go +++ b/pkg/tmpl/tmpl_mock/template_scan_func.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package tmpl_mock diff --git a/pkg/tmpl/tmpl_mock/template_scan_option_func.go b/pkg/tmpl/tmpl_mock/template_scan_option_func.go index 4fdd305..a30f8db 100644 --- a/pkg/tmpl/tmpl_mock/template_scan_option_func.go +++ b/pkg/tmpl/tmpl_mock/template_scan_option_func.go @@ -1,4 +1,4 @@ -// Code generated by mockery v2.20.0. DO NOT EDIT. +// Code generated by mockery v2.28.1. DO NOT EDIT. package tmpl_mock