MCPcopy
hub / github.com/gogs/gogs / MockModuleStore

Struct MockModuleStore

internal/gitutil/mocks.go:11–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9var _ ModuleStore = (*MockModuleStore)(nil)
10
11type 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
23func (m *MockModuleStore) RemoteAdd(repoPath, name, url string, opts ...git.RemoteAddOptions) error {
24 return m.remoteAdd(repoPath, name, url, opts...)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected