1234567891011121314151617181920212223 |
- package gitutil
- import (
- "github.com/gogs/git-module"
- )
- 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)
- }
- var MockModule MockModuleStore
|