aboutsummaryrefslogtreecommitdiff
path: root/internal/gitutil/mocks.go
diff options
context:
space:
mode:
authordependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>2022-03-22 00:55:36 +0800
committerGitHub <noreply@github.com>2022-03-22 00:55:36 +0800
commit3c49a6173d9cdf339f4a27d427a4cfc3dd51a24f (patch)
tree4ed73e5a8ea82695a073b74fd9b53a874f7bfca7 /internal/gitutil/mocks.go
parentd66fe583d5f1e0ea5b50aa478ae1dcf3bd69fe7c (diff)
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 <jc@unknwon.io>
Diffstat (limited to 'internal/gitutil/mocks.go')
-rw-r--r--internal/gitutil/mocks.go32
1 files changed, 16 insertions, 16 deletions
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) {