testing

package
v0.21.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package testing is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use

func (*MockCounterMetric) Inc

func (m *MockCounterMetric) Inc()

Inc mocks base method

type MockCounterMetricMockRecorder

type MockCounterMetricMockRecorder struct {
	// contains filtered or unexported fields
}

MockCounterMetricMockRecorder is the mock recorder for MockCounterMetric

func (*MockCounterMetricMockRecorder) Inc

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

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

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL