MCPcopy 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
55func SetMockModuleStore(t *testing.T, mock ModuleStore) {
56 before := Module
57 Module = mock
58 t.Cleanup(func() {
59 Module = before
60 })
61}

Callers 2

Calls

no outgoing calls

Tested by 2