From 3c49a6173d9cdf339f4a27d427a4cfc3dd51a24f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 22 Mar 2022 00:55:36 +0800 Subject: mod: bump github.com/gogs/git-module from 1.2.0 to 1.4.0 (#6866) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Joe Chen --- internal/gitutil/mocks.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'internal/gitutil/mocks.go') diff --git a/internal/gitutil/mocks.go b/internal/gitutil/mocks.go index b58fa079..1f740ee7 100644 --- a/internal/gitutil/mocks.go +++ b/internal/gitutil/mocks.go @@ -13,35 +13,35 @@ import ( var _ ModuleStore = (*MockModuleStore)(nil) type MockModuleStore struct { - repoAddRemote func(repoPath, name, url string, opts ...git.AddRemoteOptions) error - repoDiffNameOnly func(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) - repoLog func(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error) - repoMergeBase func(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error) - repoRemoveRemote func(repoPath, name string, opts ...git.RemoveRemoteOptions) error - repoTags func(repoPath string, opts ...git.TagsOptions) ([]string, error) + remoteAdd func(repoPath, name, url string, opts ...git.RemoteAddOptions) error + diffNameOnly func(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) + log func(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error) + mergeBase func(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error) + remoteRemove func(repoPath, name string, opts ...git.RemoteRemoveOptions) error + repoTags func(repoPath string, opts ...git.TagsOptions) ([]string, error) pullRequestMeta func(headPath, basePath, headBranch, baseBranch string) (*PullRequestMeta, error) listTagsAfter func(repoPath, after string, limit int) (*TagsPage, error) } -func (m *MockModuleStore) RepoAddRemote(repoPath, name, url string, opts ...git.AddRemoteOptions) error { - return m.repoAddRemote(repoPath, name, url, opts...) +func (m *MockModuleStore) RemoteAdd(repoPath, name, url string, opts ...git.RemoteAddOptions) error { + return m.remoteAdd(repoPath, name, url, opts...) } -func (m *MockModuleStore) RepoDiffNameOnly(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) { - return m.repoDiffNameOnly(repoPath, base, head, opts...) +func (m *MockModuleStore) DiffNameOnly(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) { + return m.diffNameOnly(repoPath, base, head, opts...) } -func (m *MockModuleStore) RepoLog(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error) { - return m.repoLog(repoPath, rev, opts...) +func (m *MockModuleStore) Log(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error) { + return m.log(repoPath, rev, opts...) } -func (m *MockModuleStore) RepoMergeBase(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error) { - return m.repoMergeBase(repoPath, base, head, opts...) +func (m *MockModuleStore) MergeBase(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error) { + return m.mergeBase(repoPath, base, head, opts...) } -func (m *MockModuleStore) RepoRemoveRemote(repoPath, name string, opts ...git.RemoveRemoteOptions) error { - return m.repoRemoveRemote(repoPath, name, opts...) +func (m *MockModuleStore) RemoteRemove(repoPath, name string, opts ...git.RemoteRemoveOptions) error { + return m.remoteRemove(repoPath, name, opts...) } func (m *MockModuleStore) RepoTags(repoPath string, opts ...git.TagsOptions) ([]string, error) { -- cgit v1.2.3