| 9 | var _ ModuleStore = (*MockModuleStore)(nil) |
| 10 | |
| 11 | type MockModuleStore struct { |
| 12 | remoteAdd func(repoPath, name, url string, opts ...git.RemoteAddOptions) error |
| 13 | diffNameOnly func(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) |
| 14 | log func(repoPath, rev string, opts ...git.LogOptions) ([]*git.Commit, error) |
| 15 | mergeBase func(repoPath, base, head string, opts ...git.MergeBaseOptions) (string, error) |
| 16 | remoteRemove func(repoPath, name string, opts ...git.RemoteRemoveOptions) error |
| 17 | repoTags func(repoPath string, opts ...git.TagsOptions) ([]string, error) |
| 18 | |
| 19 | pullRequestMeta func(headPath, basePath, headBranch, baseBranch string) (*PullRequestMeta, error) |
| 20 | listTagsAfter func(repoPath, after string, limit int) (*TagsPage, error) |
| 21 | } |
| 22 | |
| 23 | func (m *MockModuleStore) RemoteAdd(repoPath, name, url string, opts ...git.RemoteAddOptions) error { |
| 24 | return m.remoteAdd(repoPath, name, url, opts...) |
nothing calls this directly
no outgoing calls
no test coverage detected