Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gogs/gogs
/ SetMockModuleStore
Function
SetMockModuleStore
internal/gitutil/mocks.go:55–61 ·
view source on GitHub ↗
(t *testing.T, mock ModuleStore)
Source
from the content-addressed store, hash-verified
53
}
54
55
func
SetMockModuleStore(t *testing.T, mock ModuleStore) {
56
before := Module
57
Module = mock
58
t.Cleanup(
func
() {
59
Module = before
60
})
61
}
Callers
2
TestModuler_PullRequestMeta
Function · 0.85
TestModuler_ListTagsAfter
Function · 0.85
Calls
no outgoing calls
Tested by
2
TestModuler_PullRequestMeta
Function · 0.68
TestModuler_ListTagsAfter
Function · 0.68