/
githubmirror
/
gitness
Обзор
Документация
Войти
/
githubmirror
/
gitness
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
mocks/git/interface.go
1 252 строки
42 KB
Abhishek Choudhary
feat: [CODE-5367]: linked PR sync Phase 1 - schema, types, store layer. (#5210)
04 июн 2026, 16:19
04 июн 2026, 16:19
db52dd8
Код
Авторство
О чём код?
// Copyright 2023 Harness, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. //go:generate go tool -modfile=../../go.tool.mod mockery --dir ../../git --name Interface --output . --outpkg git --filename interface.go // Code generated by mockery; DO NOT EDIT. package git import ( "context" "io" gitpkg "github.com/harness/gitness/git" "github.com/harness/gitness/git/api" "github.com/stretchr/testify/mock" ) // Interface is an autogenerated mock type for the git.Interface type type Interface struct { mock.Mock } func (_m *Interface) CreateRepository(ctx context.Context, params *gitpkg.CreateRepositoryParams) (*gitpkg.CreateRepositoryOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for CreateRepository") } var r0 *gitpkg.CreateRepositoryOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.CreateRepositoryParams) (*gitpkg.CreateRepositoryOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.CreateRepositoryParams) *gitpkg.CreateRepositoryOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.CreateRepositoryOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.CreateRepositoryParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) DeleteRepository(ctx context.Context, params *gitpkg.DeleteRepositoryParams) error { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for DeleteRepository") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DeleteRepositoryParams) error); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DeleteRepositoryParams) error); ok { r0 = rf(ctx, params) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) GetTreeNode(ctx context.Context, params *gitpkg.GetTreeNodeParams) (*gitpkg.GetTreeNodeOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetTreeNode") } var r0 *gitpkg.GetTreeNodeOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetTreeNodeParams) (*gitpkg.GetTreeNodeOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetTreeNodeParams) *gitpkg.GetTreeNodeOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.GetTreeNodeOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GetTreeNodeParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) ListTreeNodes(ctx context.Context, params *gitpkg.ListTreeNodeParams) (*gitpkg.ListTreeNodeOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ListTreeNodes") } var r0 *gitpkg.ListTreeNodeOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListTreeNodeParams) (*gitpkg.ListTreeNodeOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListTreeNodeParams) *gitpkg.ListTreeNodeOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.ListTreeNodeOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.ListTreeNodeParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) ListPaths(ctx context.Context, params *gitpkg.ListPathsParams) (*gitpkg.ListPathsOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ListPaths") } var r0 *gitpkg.ListPathsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListPathsParams) (*gitpkg.ListPathsOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListPathsParams) *gitpkg.ListPathsOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.ListPathsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.ListPathsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) GetSubmodule(ctx context.Context, params *gitpkg.GetSubmoduleParams) (*gitpkg.GetSubmoduleOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetSubmodule") } var r0 *gitpkg.GetSubmoduleOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetSubmoduleParams) (*gitpkg.GetSubmoduleOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetSubmoduleParams) *gitpkg.GetSubmoduleOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.GetSubmoduleOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GetSubmoduleParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) GetBlob(ctx context.Context, params *gitpkg.GetBlobParams) (*gitpkg.GetBlobOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetBlob") } var r0 *gitpkg.GetBlobOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetBlobParams) (*gitpkg.GetBlobOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetBlobParams) *gitpkg.GetBlobOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.GetBlobOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GetBlobParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) CreateBranch(ctx context.Context, params *gitpkg.CreateBranchParams) (*gitpkg.CreateBranchOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for CreateBranch") } var r0 *gitpkg.CreateBranchOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.CreateBranchParams) (*gitpkg.CreateBranchOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.CreateBranchParams) *gitpkg.CreateBranchOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.CreateBranchOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.CreateBranchParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) CreateCommitTag(ctx context.Context, params *gitpkg.CreateCommitTagParams) (*gitpkg.CreateCommitTagOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for CreateCommitTag") } var r0 *gitpkg.CreateCommitTagOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.CreateCommitTagParams) (*gitpkg.CreateCommitTagOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.CreateCommitTagParams) *gitpkg.CreateCommitTagOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.CreateCommitTagOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.CreateCommitTagParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) DeleteTag(ctx context.Context, params *gitpkg.DeleteTagParams) error { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for DeleteTag") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DeleteTagParams) error); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DeleteTagParams) error); ok { r0 = rf(ctx, params) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) GetBranch(ctx context.Context, params *gitpkg.GetBranchParams) (*gitpkg.GetBranchOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetBranch") } var r0 *gitpkg.GetBranchOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetBranchParams) (*gitpkg.GetBranchOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetBranchParams) *gitpkg.GetBranchOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.GetBranchOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GetBranchParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) DeleteBranch(ctx context.Context, params *gitpkg.DeleteBranchParams) error { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for DeleteBranch") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DeleteBranchParams) error); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DeleteBranchParams) error); ok { r0 = rf(ctx, params) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) ListBranches(ctx context.Context, params *gitpkg.ListBranchesParams) (*gitpkg.ListBranchesOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ListBranches") } var r0 *gitpkg.ListBranchesOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListBranchesParams) (*gitpkg.ListBranchesOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListBranchesParams) *gitpkg.ListBranchesOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.ListBranchesOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.ListBranchesParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) UpdateDefaultBranch(ctx context.Context, params *gitpkg.UpdateDefaultBranchParams) error { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for UpdateDefaultBranch") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.UpdateDefaultBranchParams) error); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.UpdateDefaultBranchParams) error); ok { r0 = rf(ctx, params) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) GetRef(ctx context.Context, params gitpkg.GetRefParams) (gitpkg.GetRefResponse, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetRef") } var r0 gitpkg.GetRefResponse var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.GetRefParams) (gitpkg.GetRefResponse, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.GetRefParams) gitpkg.GetRefResponse); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.GetRefResponse) } if rf, ok := ret.Get(1).(func(ctx context.Context, params gitpkg.GetRefParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) PathsDetails(ctx context.Context, params gitpkg.PathsDetailsParams) (gitpkg.PathsDetailsOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for PathsDetails") } var r0 gitpkg.PathsDetailsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.PathsDetailsParams) (gitpkg.PathsDetailsOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.PathsDetailsParams) gitpkg.PathsDetailsOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.PathsDetailsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params gitpkg.PathsDetailsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) Summary(ctx context.Context, params gitpkg.SummaryParams) (gitpkg.SummaryOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for Summary") } var r0 gitpkg.SummaryOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.SummaryParams) (gitpkg.SummaryOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.SummaryParams) gitpkg.SummaryOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.SummaryOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params gitpkg.SummaryParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) FindLFSPointers(ctx context.Context, params *gitpkg.FindLFSPointersParams) (*gitpkg.FindLFSPointersOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for FindLFSPointers") } var r0 *gitpkg.FindLFSPointersOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.FindLFSPointersParams) (*gitpkg.FindLFSPointersOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.FindLFSPointersParams) *gitpkg.FindLFSPointersOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.FindLFSPointersOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.FindLFSPointersParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) GetRepoLanguageStats(ctx context.Context, params *gitpkg.GetRepoLanguageStatsParams) (gitpkg.GetRepoLanguageStatsOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetRepoLanguageStats") } var r0 gitpkg.GetRepoLanguageStatsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetRepoLanguageStatsParams) (gitpkg.GetRepoLanguageStatsOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetRepoLanguageStatsParams) gitpkg.GetRepoLanguageStatsOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.GetRepoLanguageStatsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GetRepoLanguageStatsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) GetRepositorySize(ctx context.Context, params *gitpkg.GetRepositorySizeParams) (*gitpkg.GetRepositorySizeOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetRepositorySize") } var r0 *gitpkg.GetRepositorySizeOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetRepositorySizeParams) (*gitpkg.GetRepositorySizeOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetRepositorySizeParams) *gitpkg.GetRepositorySizeOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.GetRepositorySizeOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GetRepositorySizeParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) UpdateRef(ctx context.Context, params gitpkg.UpdateRefParams) error { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for UpdateRef") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.UpdateRefParams) error); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.UpdateRefParams) error); ok { r0 = rf(ctx, params) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) UpdateRefs(ctx context.Context, params gitpkg.UpdateRefsParams) error { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for UpdateRefs") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.UpdateRefsParams) error); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.UpdateRefsParams) error); ok { r0 = rf(ctx, params) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) SyncRepository(ctx context.Context, params *gitpkg.SyncRepositoryParams) (*gitpkg.SyncRepositoryOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for SyncRepository") } var r0 *gitpkg.SyncRepositoryOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.SyncRepositoryParams) (*gitpkg.SyncRepositoryOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.SyncRepositoryParams) *gitpkg.SyncRepositoryOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.SyncRepositoryOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.SyncRepositoryParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) SyncRefs(ctx context.Context, params *gitpkg.SyncRefsParams) (*gitpkg.SyncRefsOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for SyncRefs") } var r0 *gitpkg.SyncRefsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.SyncRefsParams) (*gitpkg.SyncRefsOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.SyncRefsParams) *gitpkg.SyncRefsOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.SyncRefsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.SyncRefsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) FetchObjects(ctx context.Context, params *gitpkg.FetchObjectsParams) (gitpkg.FetchObjectsOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for FetchObjects") } var r0 gitpkg.FetchObjectsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.FetchObjectsParams) (gitpkg.FetchObjectsOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.FetchObjectsParams) gitpkg.FetchObjectsOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.FetchObjectsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.FetchObjectsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) GetRemoteDefaultBranch(ctx context.Context, params *gitpkg.GetRemoteDefaultBranchParams) (*gitpkg.GetRemoteDefaultBranchOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetRemoteDefaultBranch") } var r0 *gitpkg.GetRemoteDefaultBranchOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetRemoteDefaultBranchParams) (*gitpkg.GetRemoteDefaultBranchOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetRemoteDefaultBranchParams) *gitpkg.GetRemoteDefaultBranchOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.GetRemoteDefaultBranchOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GetRemoteDefaultBranchParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) MatchFiles(ctx context.Context, params *gitpkg.MatchFilesParams) (*gitpkg.MatchFilesOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for MatchFiles") } var r0 *gitpkg.MatchFilesOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.MatchFilesParams) (*gitpkg.MatchFilesOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.MatchFilesParams) *gitpkg.MatchFilesOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.MatchFilesOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.MatchFilesParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) GetCommit(ctx context.Context, params *gitpkg.GetCommitParams) (*gitpkg.GetCommitOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetCommit") } var r0 *gitpkg.GetCommitOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetCommitParams) (*gitpkg.GetCommitOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetCommitParams) *gitpkg.GetCommitOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.GetCommitOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GetCommitParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) ListCommits(ctx context.Context, params *gitpkg.ListCommitsParams) (*gitpkg.ListCommitsOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ListCommits") } var r0 *gitpkg.ListCommitsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListCommitsParams) (*gitpkg.ListCommitsOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListCommitsParams) *gitpkg.ListCommitsOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.ListCommitsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.ListCommitsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) ListCommitTags(ctx context.Context, params *gitpkg.ListCommitTagsParams) (*gitpkg.ListCommitTagsOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ListCommitTags") } var r0 *gitpkg.ListCommitTagsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListCommitTagsParams) (*gitpkg.ListCommitTagsOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ListCommitTagsParams) *gitpkg.ListCommitTagsOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.ListCommitTagsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.ListCommitTagsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) GetCommitDivergences(ctx context.Context, params *gitpkg.GetCommitDivergencesParams) (*gitpkg.GetCommitDivergencesOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetCommitDivergences") } var r0 *gitpkg.GetCommitDivergencesOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetCommitDivergencesParams) (*gitpkg.GetCommitDivergencesOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetCommitDivergencesParams) *gitpkg.GetCommitDivergencesOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.GetCommitDivergencesOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GetCommitDivergencesParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) CommitFiles(ctx context.Context, params *gitpkg.CommitFilesParams) (gitpkg.CommitFilesResponse, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for CommitFiles") } var r0 gitpkg.CommitFilesResponse var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.CommitFilesParams) (gitpkg.CommitFilesResponse, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.CommitFilesParams) gitpkg.CommitFilesResponse); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.CommitFilesResponse) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.CommitFilesParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) MergeBase(ctx context.Context, params gitpkg.MergeBaseParams) (gitpkg.MergeBaseOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for MergeBase") } var r0 gitpkg.MergeBaseOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.MergeBaseParams) (gitpkg.MergeBaseOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.MergeBaseParams) gitpkg.MergeBaseOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.MergeBaseOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params gitpkg.MergeBaseParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) IsAncestor(ctx context.Context, params gitpkg.IsAncestorParams) (gitpkg.IsAncestorOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for IsAncestor") } var r0 gitpkg.IsAncestorOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.IsAncestorParams) (gitpkg.IsAncestorOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.IsAncestorParams) gitpkg.IsAncestorOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.IsAncestorOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params gitpkg.IsAncestorParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) ProcessPreReceiveObjects(ctx context.Context, params gitpkg.ProcessPreReceiveObjectsParams) (gitpkg.ProcessPreReceiveObjectsOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ProcessPreReceiveObjects") } var r0 gitpkg.ProcessPreReceiveObjectsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.ProcessPreReceiveObjectsParams) (gitpkg.ProcessPreReceiveObjectsOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.ProcessPreReceiveObjectsParams) gitpkg.ProcessPreReceiveObjectsOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.ProcessPreReceiveObjectsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params gitpkg.ProcessPreReceiveObjectsParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) GetInfoRefs(ctx context.Context, w io.Writer, params *gitpkg.InfoRefsParams) error { ret := _m.Called(ctx, w, params) if len(ret) == 0 { panic("no return value specified for GetInfoRefs") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, w io.Writer, params *gitpkg.InfoRefsParams) error); ok { return rf(ctx, w, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, w io.Writer, params *gitpkg.InfoRefsParams) error); ok { r0 = rf(ctx, w, params) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) ServicePack(ctx context.Context, params *gitpkg.ServicePackParams) error { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ServicePack") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ServicePackParams) error); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.ServicePackParams) error); ok { r0 = rf(ctx, params) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) RawDiff(ctx context.Context, w io.Writer, in *gitpkg.DiffParams, files ...api.FileDiffRequest) error { ret := _m.Called(ctx, w, in, files) if len(ret) == 0 { panic("no return value specified for RawDiff") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, w io.Writer, in *gitpkg.DiffParams, files ...api.FileDiffRequest) error); ok { return rf(ctx, w, in, files...) } if rf, ok := ret.Get(0).(func(ctx context.Context, w io.Writer, in *gitpkg.DiffParams, files ...api.FileDiffRequest) error); ok { r0 = rf(ctx, w, in, files...) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) Diff(ctx context.Context, in *gitpkg.DiffParams, files ...api.FileDiffRequest) (<-chan *gitpkg.FileDiff, <-chan error) { ret := _m.Called(ctx, in, files) if len(ret) == 0 { panic("no return value specified for Diff") } var r0 <-chan *gitpkg.FileDiff var r1 <-chan error if rf, ok := ret.Get(0).(func(ctx context.Context, in *gitpkg.DiffParams, files ...api.FileDiffRequest) (<-chan *gitpkg.FileDiff, <-chan error)); ok { return rf(ctx, in, files...) } if rf, ok := ret.Get(0).(func(ctx context.Context, in *gitpkg.DiffParams, files ...api.FileDiffRequest) <-chan *gitpkg.FileDiff); ok { r0 = rf(ctx, in, files...) } else if ret.Get(0) != nil { r0 = ret.Get(0).(<-chan *gitpkg.FileDiff) } if rf, ok := ret.Get(1).(func(ctx context.Context, in *gitpkg.DiffParams, files ...api.FileDiffRequest) <-chan error); ok { r1 = rf(ctx, in, files...) } else if ret.Get(1) != nil { r1 = ret.Get(1).(<-chan error) } return r0, r1 } func (_m *Interface) DiffFileNames(ctx context.Context, in *gitpkg.DiffParams) (gitpkg.DiffFileNamesOutput, error) { ret := _m.Called(ctx, in) if len(ret) == 0 { panic("no return value specified for DiffFileNames") } var r0 gitpkg.DiffFileNamesOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, in *gitpkg.DiffParams) (gitpkg.DiffFileNamesOutput, error)); ok { return rf(ctx, in) } if rf, ok := ret.Get(0).(func(ctx context.Context, in *gitpkg.DiffParams) gitpkg.DiffFileNamesOutput); ok { r0 = rf(ctx, in) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.DiffFileNamesOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, in *gitpkg.DiffParams) error); ok { r1 = rf(ctx, in) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) CommitDiff(ctx context.Context, params *gitpkg.GetCommitParams, w io.Writer) error { ret := _m.Called(ctx, params, w) if len(ret) == 0 { panic("no return value specified for CommitDiff") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetCommitParams, w io.Writer) error); ok { return rf(ctx, params, w) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GetCommitParams, w io.Writer) error); ok { r0 = rf(ctx, params, w) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) DiffShortStat(ctx context.Context, params *gitpkg.DiffParams) (gitpkg.DiffShortStatOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for DiffShortStat") } var r0 gitpkg.DiffShortStatOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DiffParams) (gitpkg.DiffShortStatOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DiffParams) gitpkg.DiffShortStatOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.DiffShortStatOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.DiffParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) DiffStats(ctx context.Context, params *gitpkg.DiffParams) (gitpkg.DiffStatsOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for DiffStats") } var r0 gitpkg.DiffStatsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DiffParams) (gitpkg.DiffStatsOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DiffParams) gitpkg.DiffStatsOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.DiffStatsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.DiffParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) GetDiffHunkHeaders(ctx context.Context, params gitpkg.GetDiffHunkHeadersParams) (gitpkg.GetDiffHunkHeadersOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GetDiffHunkHeaders") } var r0 gitpkg.GetDiffHunkHeadersOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.GetDiffHunkHeadersParams) (gitpkg.GetDiffHunkHeadersOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.GetDiffHunkHeadersParams) gitpkg.GetDiffHunkHeadersOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.GetDiffHunkHeadersOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params gitpkg.GetDiffHunkHeadersParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) DiffCut(ctx context.Context, params *gitpkg.DiffCutParams) (gitpkg.DiffCutOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for DiffCut") } var r0 gitpkg.DiffCutOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DiffCutParams) (gitpkg.DiffCutOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.DiffCutParams) gitpkg.DiffCutOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.DiffCutOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.DiffCutParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) ResolveRevision(ctx context.Context, params gitpkg.ResolveRevisionParams) (gitpkg.ResolveRevisionOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for ResolveRevision") } var r0 gitpkg.ResolveRevisionOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.ResolveRevisionParams) (gitpkg.ResolveRevisionOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.ResolveRevisionParams) gitpkg.ResolveRevisionOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.ResolveRevisionOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params gitpkg.ResolveRevisionParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) Merge(ctx context.Context, in *gitpkg.MergeParams) (gitpkg.MergeOutput, error) { ret := _m.Called(ctx, in) if len(ret) == 0 { panic("no return value specified for Merge") } var r0 gitpkg.MergeOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, in *gitpkg.MergeParams) (gitpkg.MergeOutput, error)); ok { return rf(ctx, in) } if rf, ok := ret.Get(0).(func(ctx context.Context, in *gitpkg.MergeParams) gitpkg.MergeOutput); ok { r0 = rf(ctx, in) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.MergeOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, in *gitpkg.MergeParams) error); ok { r1 = rf(ctx, in) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) Revert(ctx context.Context, in *gitpkg.RevertParams) (gitpkg.RevertOutput, error) { ret := _m.Called(ctx, in) if len(ret) == 0 { panic("no return value specified for Revert") } var r0 gitpkg.RevertOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, in *gitpkg.RevertParams) (gitpkg.RevertOutput, error)); ok { return rf(ctx, in) } if rf, ok := ret.Get(0).(func(ctx context.Context, in *gitpkg.RevertParams) gitpkg.RevertOutput); ok { r0 = rf(ctx, in) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.RevertOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, in *gitpkg.RevertParams) error); ok { r1 = rf(ctx, in) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) Blame(ctx context.Context, params *gitpkg.BlameParams) (<-chan *gitpkg.BlamePart, <-chan error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for Blame") } var r0 <-chan *gitpkg.BlamePart var r1 <-chan error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.BlameParams) (<-chan *gitpkg.BlamePart, <-chan error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.BlameParams) <-chan *gitpkg.BlamePart); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(<-chan *gitpkg.BlamePart) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.BlameParams) <-chan error); ok { r1 = rf(ctx, params) } else if ret.Get(1) != nil { r1 = ret.Get(1).(<-chan error) } return r0, r1 } func (_m *Interface) PushRemote(ctx context.Context, params *gitpkg.PushRemoteParams) error { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for PushRemote") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.PushRemoteParams) error); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.PushRemoteParams) error); ok { r0 = rf(ctx, params) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) GeneratePipeline(ctx context.Context, params *gitpkg.GeneratePipelineParams) (gitpkg.GeneratePipelinesOutput, error) { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for GeneratePipeline") } var r0 gitpkg.GeneratePipelinesOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GeneratePipelineParams) (gitpkg.GeneratePipelinesOutput, error)); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params *gitpkg.GeneratePipelineParams) gitpkg.GeneratePipelinesOutput); ok { r0 = rf(ctx, params) } else if ret.Get(0) != nil { r0 = ret.Get(0).(gitpkg.GeneratePipelinesOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, params *gitpkg.GeneratePipelineParams) error); ok { r1 = rf(ctx, params) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) ScanSecrets(ctx context.Context, param *gitpkg.ScanSecretsParams) (*gitpkg.ScanSecretsOutput, error) { ret := _m.Called(ctx, param) if len(ret) == 0 { panic("no return value specified for ScanSecrets") } var r0 *gitpkg.ScanSecretsOutput var r1 error if rf, ok := ret.Get(0).(func(ctx context.Context, param *gitpkg.ScanSecretsParams) (*gitpkg.ScanSecretsOutput, error)); ok { return rf(ctx, param) } if rf, ok := ret.Get(0).(func(ctx context.Context, param *gitpkg.ScanSecretsParams) *gitpkg.ScanSecretsOutput); ok { r0 = rf(ctx, param) } else if ret.Get(0) != nil { r0 = ret.Get(0).(*gitpkg.ScanSecretsOutput) } if rf, ok := ret.Get(1).(func(ctx context.Context, param *gitpkg.ScanSecretsParams) error); ok { r1 = rf(ctx, param) } else { r1 = ret.Error(1) } return r0, r1 } func (_m *Interface) Archive(ctx context.Context, params gitpkg.ArchiveParams, w io.Writer) error { ret := _m.Called(ctx, params, w) if len(ret) == 0 { panic("no return value specified for Archive") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.ArchiveParams, w io.Writer) error); ok { return rf(ctx, params, w) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.ArchiveParams, w io.Writer) error); ok { r0 = rf(ctx, params, w) } else { r0 = ret.Error(0) } return r0 } func (_m *Interface) OptimizeRepository(ctx context.Context, params gitpkg.OptimizeRepositoryParams) error { ret := _m.Called(ctx, params) if len(ret) == 0 { panic("no return value specified for OptimizeRepository") } var r0 error if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.OptimizeRepositoryParams) error); ok { return rf(ctx, params) } if rf, ok := ret.Get(0).(func(ctx context.Context, params gitpkg.OptimizeRepositoryParams) error); ok { r0 = rf(ctx, params) } else { r0 = ret.Error(0) } return r0 }