Documentation ¶
Index ¶
- type MockStrategy
- type MockStrategy_Expecter
- type MockStrategy_NewAssetInventory_Call
- func (_c *MockStrategy_NewAssetInventory_Call) Return(_a0 inventory.AssetInventory, _a1 error) *MockStrategy_NewAssetInventory_Call
- func (_c *MockStrategy_NewAssetInventory_Call) Run(run func(ctx context.Context, client beat.Client)) *MockStrategy_NewAssetInventory_Call
- func (_c *MockStrategy_NewAssetInventory_Call) RunAndReturn(run func(context.Context, beat.Client) (inventory.AssetInventory, error)) *MockStrategy_NewAssetInventory_Call
- type Strategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStrategy ¶
MockStrategy is an autogenerated mock type for the Strategy type
func NewMockStrategy ¶
func NewMockStrategy(t interface { mock.TestingT Cleanup(func()) }) *MockStrategy
NewMockStrategy creates a new instance of MockStrategy. 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 (*MockStrategy) EXPECT ¶
func (_m *MockStrategy) EXPECT() *MockStrategy_Expecter
func (*MockStrategy) NewAssetInventory ¶
func (_m *MockStrategy) NewAssetInventory(ctx context.Context, client beat.Client) (inventory.AssetInventory, error)
NewAssetInventory provides a mock function with given fields: ctx, client
type MockStrategy_Expecter ¶
type MockStrategy_Expecter struct {
// contains filtered or unexported fields
}
func (*MockStrategy_Expecter) NewAssetInventory ¶
func (_e *MockStrategy_Expecter) NewAssetInventory(ctx interface{}, client interface{}) *MockStrategy_NewAssetInventory_Call
NewAssetInventory is a helper method to define mock.On call
- ctx context.Context
- client beat.Client
type MockStrategy_NewAssetInventory_Call ¶
MockStrategy_NewAssetInventory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NewAssetInventory'
func (*MockStrategy_NewAssetInventory_Call) Return ¶
func (_c *MockStrategy_NewAssetInventory_Call) Return(_a0 inventory.AssetInventory, _a1 error) *MockStrategy_NewAssetInventory_Call
func (*MockStrategy_NewAssetInventory_Call) Run ¶
func (_c *MockStrategy_NewAssetInventory_Call) Run(run func(ctx context.Context, client beat.Client)) *MockStrategy_NewAssetInventory_Call
func (*MockStrategy_NewAssetInventory_Call) RunAndReturn ¶
func (_c *MockStrategy_NewAssetInventory_Call) RunAndReturn(run func(context.Context, beat.Client) (inventory.AssetInventory, error)) *MockStrategy_NewAssetInventory_Call
Click to show internal directories.
Click to hide internal directories.