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

Method SetDefaultReturn

internal/database/mocks_gen.go:264–268  ·  view source on GitHub ↗

SetDefaultReturn calls SetDefaultHook with a function that returns the given values.

(r0 interface{})

Source from the content-addressed store, hash-verified

262// SetDefaultReturn calls SetDefaultHook with a function that returns the
263// given values.
264func (f *ProviderConfigFunc) SetDefaultReturn(r0 interface{}) {
265 f.SetDefaultHook(func() interface{} {
266 return r0
267 })
268}
269
270// PushReturn calls PushHook with a function that returns the given values.
271func (f *ProviderConfigFunc) PushReturn(r0 interface{}) {

Callers 2

AfterFindMethod · 0.45
loginSourcesCountFunction · 0.45

Calls 1

SetDefaultHookMethod · 0.95

Tested by 1

loginSourcesCountFunction · 0.36