mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 15:20:01 +01:00
gitutil: refactor the way to mock (#6032)
* Refactor the mock module store * Only test on 1.14.x
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user