Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- func PatchPipelineRunsPeriodic(replacement metrics.PipelineRunsMetric) func()
- type MockCounterMetric
- type MockCounterMetricMockRecorder
- type MockPipelineRunsMetric
- type MockPipelineRunsMetricMockRecorder
- type MockResultsMetric
- type MockResultsMetricMockRecorder
- type MockStateItemsMetric
- type MockStateItemsMetricMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PatchPipelineRunsPeriodic ¶
func PatchPipelineRunsPeriodic(replacement metrics.PipelineRunsMetric) func()
PatchPipelineRunsPeriodic patches "github.com/SAP/stewardci-core/pkg/runctl/metrics".PipelineRunsPeriodic with the given replacement and returns a function that reverts the patch. Multiple nested replacements must be reverted in exactly the opposite order (revert last replacement first).
Types ¶
type MockCounterMetric ¶
type MockCounterMetric struct {
// contains filtered or unexported fields
}
MockCounterMetric is a mock of CounterMetric interface.
func NewMockCounterMetric ¶
func NewMockCounterMetric(ctrl *gomock.Controller) *MockCounterMetric
NewMockCounterMetric creates a new mock instance.
func (*MockCounterMetric) EXPECT ¶
func (m *MockCounterMetric) EXPECT() *MockCounterMetricMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCounterMetricMockRecorder ¶
type MockCounterMetricMockRecorder struct {
// contains filtered or unexported fields
}
MockCounterMetricMockRecorder is the mock recorder for MockCounterMetric.
func (*MockCounterMetricMockRecorder) Inc ¶
func (mr *MockCounterMetricMockRecorder) Inc() *gomock.Call
Inc indicates an expected call of Inc.
type MockPipelineRunsMetric ¶
type MockPipelineRunsMetric struct {
// contains filtered or unexported fields
}
MockPipelineRunsMetric is a mock of PipelineRunsMetric interface.
func NewMockPipelineRunsMetric ¶
func NewMockPipelineRunsMetric(ctrl *gomock.Controller) *MockPipelineRunsMetric
NewMockPipelineRunsMetric creates a new mock instance.
func (*MockPipelineRunsMetric) EXPECT ¶
func (m *MockPipelineRunsMetric) EXPECT() *MockPipelineRunsMetricMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPipelineRunsMetric) Observe ¶
func (m *MockPipelineRunsMetric) Observe(arg0 *v1alpha1.PipelineRun)
Observe mocks base method.
type MockPipelineRunsMetricMockRecorder ¶
type MockPipelineRunsMetricMockRecorder struct {
// contains filtered or unexported fields
}
MockPipelineRunsMetricMockRecorder is the mock recorder for MockPipelineRunsMetric.
func (*MockPipelineRunsMetricMockRecorder) Observe ¶
func (mr *MockPipelineRunsMetricMockRecorder) Observe(arg0 interface{}) *gomock.Call
Observe indicates an expected call of Observe.
type MockResultsMetric ¶
type MockResultsMetric struct {
// contains filtered or unexported fields
}
MockResultsMetric is a mock of ResultsMetric interface.
func NewMockResultsMetric ¶
func NewMockResultsMetric(ctrl *gomock.Controller) *MockResultsMetric
NewMockResultsMetric creates a new mock instance.
func (*MockResultsMetric) EXPECT ¶
func (m *MockResultsMetric) EXPECT() *MockResultsMetricMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResultsMetric) Observe ¶
func (m *MockResultsMetric) Observe(arg0 v1alpha1.Result)
Observe mocks base method.
type MockResultsMetricMockRecorder ¶
type MockResultsMetricMockRecorder struct {
// contains filtered or unexported fields
}
MockResultsMetricMockRecorder is the mock recorder for MockResultsMetric.
func (*MockResultsMetricMockRecorder) Observe ¶
func (mr *MockResultsMetricMockRecorder) Observe(arg0 interface{}) *gomock.Call
Observe indicates an expected call of Observe.
type MockStateItemsMetric ¶
type MockStateItemsMetric struct {
// contains filtered or unexported fields
}
MockStateItemsMetric is a mock of StateItemsMetric interface.
func NewMockStateItemsMetric ¶
func NewMockStateItemsMetric(ctrl *gomock.Controller) *MockStateItemsMetric
NewMockStateItemsMetric creates a new mock instance.
func (*MockStateItemsMetric) EXPECT ¶
func (m *MockStateItemsMetric) EXPECT() *MockStateItemsMetricMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateItemsMetric) Observe ¶
func (m *MockStateItemsMetric) Observe(arg0 *v1alpha1.StateItem)
Observe mocks base method.
type MockStateItemsMetricMockRecorder ¶
type MockStateItemsMetricMockRecorder struct {
// contains filtered or unexported fields
}
MockStateItemsMetricMockRecorder is the mock recorder for MockStateItemsMetric.
func (*MockStateItemsMetricMockRecorder) Observe ¶
func (mr *MockStateItemsMetricMockRecorder) Observe(arg0 interface{}) *gomock.Call
Observe indicates an expected call of Observe.