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{})
| 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. |
| 248 | func (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 |
no outgoing calls