Documentation ¶
Index ¶
- type MockMetric
- type MockMetric_Compare_Call
- func (_c *MockMetric_Compare_Call) Return(_a0 bool, _a1 error) *MockMetric_Compare_Call
- func (_c *MockMetric_Compare_Call) Run(run func(operator metrics.MetricOperator, value float64)) *MockMetric_Compare_Call
- func (_c *MockMetric_Compare_Call) RunAndReturn(run func(metrics.MetricOperator, float64) (bool, error)) *MockMetric_Compare_Call
- type MockMetric_Expecter
- type MockMetrics
- type MockMetrics_Expecter
- type MockMetrics_Find_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMetric ¶
MockMetric is an autogenerated mock type for the Metric type
func NewMockMetric ¶
func NewMockMetric(t interface { mock.TestingT Cleanup(func()) }) *MockMetric
NewMockMetric creates a new instance of MockMetric. 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 (*MockMetric) Compare ¶
func (_m *MockMetric) Compare(operator metrics.MetricOperator, value float64) (bool, error)
Compare provides a mock function with given fields: operator, value
func (*MockMetric) EXPECT ¶
func (_m *MockMetric) EXPECT() *MockMetric_Expecter
type MockMetric_Compare_Call ¶
MockMetric_Compare_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Compare'
func (*MockMetric_Compare_Call) Return ¶
func (_c *MockMetric_Compare_Call) Return(_a0 bool, _a1 error) *MockMetric_Compare_Call
func (*MockMetric_Compare_Call) Run ¶
func (_c *MockMetric_Compare_Call) Run(run func(operator metrics.MetricOperator, value float64)) *MockMetric_Compare_Call
func (*MockMetric_Compare_Call) RunAndReturn ¶
func (_c *MockMetric_Compare_Call) RunAndReturn(run func(metrics.MetricOperator, float64) (bool, error)) *MockMetric_Compare_Call
type MockMetric_Expecter ¶
type MockMetric_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMetric_Expecter) Compare ¶
func (_e *MockMetric_Expecter) Compare(operator interface{}, value interface{}) *MockMetric_Compare_Call
Compare is a helper method to define mock.On call
- operator metrics.MetricOperator
- value float64
type MockMetrics ¶
MockMetrics is an autogenerated mock type for the Metrics type
func NewMockMetrics ¶
func NewMockMetrics(t interface { mock.TestingT Cleanup(func()) }) *MockMetrics
NewMockMetrics creates a new instance of MockMetrics. 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 (*MockMetrics) EXPECT ¶
func (_m *MockMetrics) EXPECT() *MockMetrics_Expecter
type MockMetrics_Expecter ¶
type MockMetrics_Expecter struct {
// contains filtered or unexported fields
}
func (*MockMetrics_Expecter) Find ¶
func (_e *MockMetrics_Expecter) Find(name interface{}) *MockMetrics_Find_Call
Find is a helper method to define mock.On call
- name string
type MockMetrics_Find_Call ¶
MockMetrics_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*MockMetrics_Find_Call) Return ¶
func (_c *MockMetrics_Find_Call) Return(_a0 metrics.Metric, _a1 error) *MockMetrics_Find_Call
func (*MockMetrics_Find_Call) Run ¶
func (_c *MockMetrics_Find_Call) Run(run func(name string)) *MockMetrics_Find_Call
func (*MockMetrics_Find_Call) RunAndReturn ¶
func (_c *MockMetrics_Find_Call) RunAndReturn(run func(string) (metrics.Metric, error)) *MockMetrics_Find_Call