gitutil: refactor the way to mock (#6032)

* Refactor the mock module store

* Only test on 1.14.x
This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-03-29 19:37:28 +08:00
committed by GitHub
parent 9356231e64
commit 933206f1fe
7 changed files with 146 additions and 126 deletions

View File

@@ -20,7 +20,7 @@ type TagsPage struct {
HasNext bool
}
func (moduler) ListTagsAfter(repoPath, after string, limit int) (*TagsPage, error) {
func (module) ListTagsAfter(repoPath, after string, limit int) (*TagsPage, error) {
all, err := Module.RepoTags(repoPath)
if err != nil {
return nil, errors.Wrap(err, "get tags")