Documentation
¶
Index ¶
- type MockPluginSystemSnapshot
- type MockPluginSystemSnapshot_Expecter
- type MockPluginSystemSnapshot_Hooks_Call
- func (_c *MockPluginSystemSnapshot_Hooks_Call) Return(hookNameToHookRegistrations map[plugin.HookName][]plugin.HookRegistration) *MockPluginSystemSnapshot_Hooks_Call
- func (_c *MockPluginSystemSnapshot_Hooks_Call) Run(run func()) *MockPluginSystemSnapshot_Hooks_Call
- func (_c *MockPluginSystemSnapshot_Hooks_Call) RunAndReturn(run func() map[plugin.HookName][]plugin.HookRegistration) *MockPluginSystemSnapshot_Hooks_Call
- type MockPluginSystemSnapshot_Plugins_Call
- func (_c *MockPluginSystemSnapshot_Plugins_Call) Return(plugins []plugin.Plugin) *MockPluginSystemSnapshot_Plugins_Call
- func (_c *MockPluginSystemSnapshot_Plugins_Call) Run(run func()) *MockPluginSystemSnapshot_Plugins_Call
- func (_c *MockPluginSystemSnapshot_Plugins_Call) RunAndReturn(run func() []plugin.Plugin) *MockPluginSystemSnapshot_Plugins_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPluginSystemSnapshot ¶
MockPluginSystemSnapshot is an autogenerated mock type for the PluginSystemSnapshot type
func NewMockPluginSystemSnapshot ¶
func NewMockPluginSystemSnapshot(t interface {
mock.TestingT
Cleanup(func())
}) *MockPluginSystemSnapshot
NewMockPluginSystemSnapshot creates a new instance of MockPluginSystemSnapshot. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockPluginSystemSnapshot) EXPECT ¶
func (_m *MockPluginSystemSnapshot) EXPECT() *MockPluginSystemSnapshot_Expecter
func (*MockPluginSystemSnapshot) Hooks ¶
func (_mock *MockPluginSystemSnapshot) Hooks() map[plugin.HookName][]plugin.HookRegistration
Hooks provides a mock function for the type MockPluginSystemSnapshot
func (*MockPluginSystemSnapshot) Plugins ¶
func (_mock *MockPluginSystemSnapshot) Plugins() []plugin.Plugin
Plugins provides a mock function for the type MockPluginSystemSnapshot
type MockPluginSystemSnapshot_Expecter ¶
type MockPluginSystemSnapshot_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPluginSystemSnapshot_Expecter) Hooks ¶
func (_e *MockPluginSystemSnapshot_Expecter) Hooks() *MockPluginSystemSnapshot_Hooks_Call
Hooks is a helper method to define mock.On call
func (*MockPluginSystemSnapshot_Expecter) Plugins ¶
func (_e *MockPluginSystemSnapshot_Expecter) Plugins() *MockPluginSystemSnapshot_Plugins_Call
Plugins is a helper method to define mock.On call
type MockPluginSystemSnapshot_Hooks_Call ¶
MockPluginSystemSnapshot_Hooks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hooks'
func (*MockPluginSystemSnapshot_Hooks_Call) Return ¶
func (_c *MockPluginSystemSnapshot_Hooks_Call) Return(hookNameToHookRegistrations map[plugin.HookName][]plugin.HookRegistration) *MockPluginSystemSnapshot_Hooks_Call
func (*MockPluginSystemSnapshot_Hooks_Call) Run ¶
func (_c *MockPluginSystemSnapshot_Hooks_Call) Run(run func()) *MockPluginSystemSnapshot_Hooks_Call
func (*MockPluginSystemSnapshot_Hooks_Call) RunAndReturn ¶
func (_c *MockPluginSystemSnapshot_Hooks_Call) RunAndReturn(run func() map[plugin.HookName][]plugin.HookRegistration) *MockPluginSystemSnapshot_Hooks_Call
type MockPluginSystemSnapshot_Plugins_Call ¶
MockPluginSystemSnapshot_Plugins_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Plugins'
func (*MockPluginSystemSnapshot_Plugins_Call) Return ¶
func (_c *MockPluginSystemSnapshot_Plugins_Call) Return(plugins []plugin.Plugin) *MockPluginSystemSnapshot_Plugins_Call
func (*MockPluginSystemSnapshot_Plugins_Call) Run ¶
func (_c *MockPluginSystemSnapshot_Plugins_Call) Run(run func()) *MockPluginSystemSnapshot_Plugins_Call
func (*MockPluginSystemSnapshot_Plugins_Call) RunAndReturn ¶
func (_c *MockPluginSystemSnapshot_Plugins_Call) RunAndReturn(run func() []plugin.Plugin) *MockPluginSystemSnapshot_Plugins_Call