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/pull_request_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'internal/gitutil/pull_request_test.go') diff --git a/internal/gitutil/pull_request_test.go b/internal/gitutil/pull_request_test.go index ca0b40ad..1bee39ea 100644 --- a/internal/gitutil/pull_request_test.go +++ b/internal/gitutil/pull_request_test.go @@ -25,7 +25,7 @@ func TestModuler_PullRequestMeta(t *testing.T) { } SetMockModuleStore(t, &MockModuleStore{ - repoAddRemote: func(repoPath, name, url string, opts ...git.AddRemoteOptions) error { + remoteAdd: func(repoPath, name, url string, opts ...git.RemoteAddOptions) error { if repoPath != headPath { return fmt.Errorf("repoPath: want %q but got %q", headPath, repoPath) } else if name == "" { @@ -42,7 +42,7 @@ func TestModuler_PullRequestMeta(t *testing.T) { return nil }, - repoMergeBase: func(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error) { + mergeBase: func(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error) { if repoPath != headPath { return "", fmt.Errorf("repoPath: want %q but got %q", headPath, repoPath) } else if base == "" { @@ -53,7 +53,7 @@ func TestModuler_PullRequestMeta(t *testing.T) { return mergeBase, nil }, - repoLog: func(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error) { + log: func(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error) { if repoPath != headPath { return nil, fmt.Errorf("repoPath: want %q but got %q", headPath, repoPath) } @@ -65,7 +65,7 @@ func TestModuler_PullRequestMeta(t *testing.T) { return commits, nil }, - repoDiffNameOnly: func(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) { + diffNameOnly: func(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) { if repoPath != headPath { return nil, fmt.Errorf("repoPath: want %q but got %q", headPath, repoPath) } else if base == "" { @@ -82,7 +82,7 @@ func TestModuler_PullRequestMeta(t *testing.T) { return changedFiles, nil }, - repoRemoveRemote: func(repoPath, name string, opts ...git.RemoveRemoteOptions) error { + remoteRemove: func(repoPath, name string, opts ...git.RemoteRemoveOptions) error { if repoPath != headPath { return fmt.Errorf("repoPath: want %q but got %q", headPath, repoPath) } else if name == "" { -- cgit v1.2.3