MCPcopy Create free account
hub / github.com/gogs/gogs / SetDefaultHook

Method SetDefaultHook

internal/database/mocks_gen.go:248–250  ·  view source on GitHub ↗

SetDefaultHook sets function that is called when the Config method of the parent MockProvider instance is invoked and the hook queue is empty.

(hook func() interface{})

Source from the content-addressed store, hash-verified

246// SetDefaultHook sets function that is called when the Config method of the
247// parent MockProvider instance is invoked and the hook queue is empty.
248func (f *ProviderConfigFunc) SetDefaultHook(hook func() interface{}) {
249 f.defaultHook = hook
250}
251
252// PushHook adds a function to the end of hook queue. Each invocation of the
253// Config method of the parent MockProvider instance invokes the hook at the

Callers 5

SetDefaultReturnMethod · 0.95
loginSourcesDeleteByIDFunction · 0.45
loginSourcesGetByIDFunction · 0.45
loginSourcesListFunction · 0.45

Calls

no outgoing calls

Tested by 4

loginSourcesDeleteByIDFunction · 0.36
loginSourcesGetByIDFunction · 0.36
loginSourcesListFunction · 0.36