Documentation ¶
Index ¶
- type Benchmark
- type Builder
- type Evaluator
- type Manager
- type MockBenchmark
- type MockBenchmark_Expecter
- type MockBenchmark_Run_Call
- func (_c *MockBenchmark_Run_Call) Return(_a0 <-chan []beat.Event, _a1 error) *MockBenchmark_Run_Call
- func (_c *MockBenchmark_Run_Call) Run(run func(ctx context.Context)) *MockBenchmark_Run_Call
- func (_c *MockBenchmark_Run_Call) RunAndReturn(run func(context.Context) (<-chan []beat.Event, error)) *MockBenchmark_Run_Call
- type MockBenchmark_Stop_Call
- type MockEvaluator
- type MockEvaluator_Eval_Call
- func (_c *MockEvaluator_Eval_Call) Return(_a0 evaluator.EventData, _a1 error) *MockEvaluator_Eval_Call
- func (_c *MockEvaluator_Eval_Call) Run(run func(ctx context.Context, resource fetching.ResourceInfo)) *MockEvaluator_Eval_Call
- func (_c *MockEvaluator_Eval_Call) RunAndReturn(run func(context.Context, fetching.ResourceInfo) (evaluator.EventData, error)) *MockEvaluator_Eval_Call
- type MockEvaluator_Expecter
- type MockManager
- type MockManager_Expecter
- type MockManager_Run_Call
- type MockManager_Stop_Call
- type MockOption
- type MockOption_Execute_Call
- type MockOption_Expecter
- type MockTransformer
- type MockTransformer_CreateBeatEvents_Call
- func (_c *MockTransformer_CreateBeatEvents_Call) Return(_a0 []beat.Event, _a1 error) *MockTransformer_CreateBeatEvents_Call
- func (_c *MockTransformer_CreateBeatEvents_Call) Run(run func(ctx context.Context, data evaluator.EventData)) *MockTransformer_CreateBeatEvents_Call
- func (_c *MockTransformer_CreateBeatEvents_Call) RunAndReturn(run func(context.Context, evaluator.EventData) ([]beat.Event, error)) *MockTransformer_CreateBeatEvents_Call
- type MockTransformer_Expecter
- type Option
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
type MockBenchmark ¶
MockBenchmark is an autogenerated mock type for the Benchmark type
func NewMockBenchmark ¶
func NewMockBenchmark(t interface { mock.TestingT Cleanup(func()) }) *MockBenchmark
NewMockBenchmark creates a new instance of MockBenchmark. 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 (*MockBenchmark) EXPECT ¶
func (_m *MockBenchmark) EXPECT() *MockBenchmark_Expecter
func (*MockBenchmark) Stop ¶
func (_m *MockBenchmark) Stop()
Stop provides a mock function with given fields:
type MockBenchmark_Expecter ¶
type MockBenchmark_Expecter struct {
// contains filtered or unexported fields
}
func (*MockBenchmark_Expecter) Run ¶
func (_e *MockBenchmark_Expecter) Run(ctx interface{}) *MockBenchmark_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
func (*MockBenchmark_Expecter) Stop ¶
func (_e *MockBenchmark_Expecter) Stop() *MockBenchmark_Stop_Call
Stop is a helper method to define mock.On call
type MockBenchmark_Run_Call ¶
MockBenchmark_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockBenchmark_Run_Call) Return ¶
func (_c *MockBenchmark_Run_Call) Return(_a0 <-chan []beat.Event, _a1 error) *MockBenchmark_Run_Call
func (*MockBenchmark_Run_Call) Run ¶
func (_c *MockBenchmark_Run_Call) Run(run func(ctx context.Context)) *MockBenchmark_Run_Call
func (*MockBenchmark_Run_Call) RunAndReturn ¶
func (_c *MockBenchmark_Run_Call) RunAndReturn(run func(context.Context) (<-chan []beat.Event, error)) *MockBenchmark_Run_Call
type MockBenchmark_Stop_Call ¶
MockBenchmark_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*MockBenchmark_Stop_Call) Return ¶
func (_c *MockBenchmark_Stop_Call) Return() *MockBenchmark_Stop_Call
func (*MockBenchmark_Stop_Call) Run ¶
func (_c *MockBenchmark_Stop_Call) Run(run func()) *MockBenchmark_Stop_Call
func (*MockBenchmark_Stop_Call) RunAndReturn ¶
func (_c *MockBenchmark_Stop_Call) RunAndReturn(run func()) *MockBenchmark_Stop_Call
type MockEvaluator ¶
MockEvaluator is an autogenerated mock type for the Evaluator type
func NewMockEvaluator ¶
func NewMockEvaluator(t interface { mock.TestingT Cleanup(func()) }) *MockEvaluator
NewMockEvaluator creates a new instance of MockEvaluator. 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 (*MockEvaluator) EXPECT ¶
func (_m *MockEvaluator) EXPECT() *MockEvaluator_Expecter
func (*MockEvaluator) Eval ¶
func (_m *MockEvaluator) Eval(ctx context.Context, resource fetching.ResourceInfo) (evaluator.EventData, error)
Eval provides a mock function with given fields: ctx, resource
type MockEvaluator_Eval_Call ¶
MockEvaluator_Eval_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Eval'
func (*MockEvaluator_Eval_Call) Return ¶
func (_c *MockEvaluator_Eval_Call) Return(_a0 evaluator.EventData, _a1 error) *MockEvaluator_Eval_Call
func (*MockEvaluator_Eval_Call) Run ¶
func (_c *MockEvaluator_Eval_Call) Run(run func(ctx context.Context, resource fetching.ResourceInfo)) *MockEvaluator_Eval_Call
func (*MockEvaluator_Eval_Call) RunAndReturn ¶
func (_c *MockEvaluator_Eval_Call) RunAndReturn(run func(context.Context, fetching.ResourceInfo) (evaluator.EventData, error)) *MockEvaluator_Eval_Call
type MockEvaluator_Expecter ¶
type MockEvaluator_Expecter struct {
// contains filtered or unexported fields
}
func (*MockEvaluator_Expecter) Eval ¶
func (_e *MockEvaluator_Expecter) Eval(ctx interface{}, resource interface{}) *MockEvaluator_Eval_Call
Eval is a helper method to define mock.On call
- ctx context.Context
- resource fetching.ResourceInfo
type MockManager ¶
MockManager is an autogenerated mock type for the Manager type
func NewMockManager ¶
func NewMockManager(t interface { mock.TestingT Cleanup(func()) }) *MockManager
NewMockManager creates a new instance of MockManager. 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 (*MockManager) EXPECT ¶
func (_m *MockManager) EXPECT() *MockManager_Expecter
func (*MockManager) Run ¶
func (_m *MockManager) Run()
Run provides a mock function with given fields:
func (*MockManager) Stop ¶
func (_m *MockManager) Stop()
Stop provides a mock function with given fields:
type MockManager_Expecter ¶
type MockManager_Expecter struct {
// contains filtered or unexported fields
}
func (*MockManager_Expecter) Run ¶
func (_e *MockManager_Expecter) Run() *MockManager_Run_Call
Run is a helper method to define mock.On call
func (*MockManager_Expecter) Stop ¶
func (_e *MockManager_Expecter) Stop() *MockManager_Stop_Call
Stop is a helper method to define mock.On call
type MockManager_Run_Call ¶
MockManager_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockManager_Run_Call) Return ¶
func (_c *MockManager_Run_Call) Return() *MockManager_Run_Call
func (*MockManager_Run_Call) Run ¶
func (_c *MockManager_Run_Call) Run(run func()) *MockManager_Run_Call
func (*MockManager_Run_Call) RunAndReturn ¶
func (_c *MockManager_Run_Call) RunAndReturn(run func()) *MockManager_Run_Call
type MockManager_Stop_Call ¶
MockManager_Stop_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Stop'
func (*MockManager_Stop_Call) Return ¶
func (_c *MockManager_Stop_Call) Return() *MockManager_Stop_Call
func (*MockManager_Stop_Call) Run ¶
func (_c *MockManager_Stop_Call) Run(run func()) *MockManager_Stop_Call
func (*MockManager_Stop_Call) RunAndReturn ¶
func (_c *MockManager_Stop_Call) RunAndReturn(run func()) *MockManager_Stop_Call
type MockOption ¶
MockOption is an autogenerated mock type for the Option type
func NewMockOption ¶
func NewMockOption(t interface { mock.TestingT Cleanup(func()) }) *MockOption
NewMockOption creates a new instance of MockOption. 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 (*MockOption) EXPECT ¶
func (_m *MockOption) EXPECT() *MockOption_Expecter
func (*MockOption) Execute ¶
func (_m *MockOption) Execute(b *Builder)
Execute provides a mock function with given fields: b
type MockOption_Execute_Call ¶
MockOption_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MockOption_Execute_Call) Return ¶
func (_c *MockOption_Execute_Call) Return() *MockOption_Execute_Call
func (*MockOption_Execute_Call) Run ¶
func (_c *MockOption_Execute_Call) Run(run func(b *Builder)) *MockOption_Execute_Call
func (*MockOption_Execute_Call) RunAndReturn ¶
func (_c *MockOption_Execute_Call) RunAndReturn(run func(*Builder)) *MockOption_Execute_Call
type MockOption_Expecter ¶
type MockOption_Expecter struct {
// contains filtered or unexported fields
}
func (*MockOption_Expecter) Execute ¶
func (_e *MockOption_Expecter) Execute(b interface{}) *MockOption_Execute_Call
Execute is a helper method to define mock.On call
- b *Builder
type MockTransformer ¶
MockTransformer is an autogenerated mock type for the Transformer type
func NewMockTransformer ¶
func NewMockTransformer(t interface { mock.TestingT Cleanup(func()) }) *MockTransformer
NewMockTransformer creates a new instance of MockTransformer. 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 (*MockTransformer) CreateBeatEvents ¶
func (_m *MockTransformer) CreateBeatEvents(ctx context.Context, data evaluator.EventData) ([]beat.Event, error)
CreateBeatEvents provides a mock function with given fields: ctx, data
func (*MockTransformer) EXPECT ¶
func (_m *MockTransformer) EXPECT() *MockTransformer_Expecter
type MockTransformer_CreateBeatEvents_Call ¶
MockTransformer_CreateBeatEvents_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateBeatEvents'
func (*MockTransformer_CreateBeatEvents_Call) Return ¶
func (_c *MockTransformer_CreateBeatEvents_Call) Return(_a0 []beat.Event, _a1 error) *MockTransformer_CreateBeatEvents_Call
func (*MockTransformer_CreateBeatEvents_Call) Run ¶
func (_c *MockTransformer_CreateBeatEvents_Call) Run(run func(ctx context.Context, data evaluator.EventData)) *MockTransformer_CreateBeatEvents_Call
func (*MockTransformer_CreateBeatEvents_Call) RunAndReturn ¶
func (_c *MockTransformer_CreateBeatEvents_Call) RunAndReturn(run func(context.Context, evaluator.EventData) ([]beat.Event, error)) *MockTransformer_CreateBeatEvents_Call
type MockTransformer_Expecter ¶
type MockTransformer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTransformer_Expecter) CreateBeatEvents ¶
func (_e *MockTransformer_Expecter) CreateBeatEvents(ctx interface{}, data interface{}) *MockTransformer_CreateBeatEvents_Call
CreateBeatEvents is a helper method to define mock.On call
- ctx context.Context
- data evaluator.EventData
type Option ¶
type Option func(b *Builder)
func WithBenchmarkDataProvider ¶
func WithBenchmarkDataProvider(cdp dataprovider.CommonDataProvider) Option
func WithIdProvider ¶
func WithIdProvider(idp dataprovider.IdProvider) Option