mocks

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMeasurementBatcher added in v1.26.0

type MockMeasurementBatcher struct {
	mock.Mock
}

MockMeasurementBatcher is an autogenerated mock type for the MeasurementBatcher type

func NewMockMeasurementBatcher added in v1.26.0

func NewMockMeasurementBatcher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMeasurementBatcher

NewMockMeasurementBatcher creates a new instance of MockMeasurementBatcher. 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 (*MockMeasurementBatcher) AcceptMetrics added in v1.26.0

func (_m *MockMeasurementBatcher) AcceptMetrics(ctx context.Context, metrics []*record.Metric) error

AcceptMetrics provides a mock function with given fields: ctx, metrics

func (*MockMeasurementBatcher) Shutdown added in v1.26.0

func (_m *MockMeasurementBatcher) Shutdown(ctx context.Context) error

Shutdown provides a mock function with given fields: ctx

type MockMeasurements

type MockMeasurements struct {
	mock.Mock
}

MockMeasurements is an autogenerated mock type for the Measurements type

func NewMockMeasurements

func NewMockMeasurements(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockMeasurements

NewMockMeasurements creates a new instance of MockMeasurements. 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 (*MockMeasurements) AgentMetrics

func (_m *MockMeasurements) AgentMetrics(ctx context.Context, id []string, options ...stats.QueryOption) (stats.MetricData, error)

AgentMetrics provides a mock function with given fields: ctx, id, options

func (*MockMeasurements) Clear

func (_m *MockMeasurements) Clear()

Clear provides a mock function with given fields:

func (*MockMeasurements) ConfigurationMetrics

func (_m *MockMeasurements) ConfigurationMetrics(ctx context.Context, name string, options ...stats.QueryOption) (stats.MetricData, error)

ConfigurationMetrics provides a mock function with given fields: ctx, name, options

func (*MockMeasurements) MeasurementsSize

func (_m *MockMeasurements) MeasurementsSize(_a0 context.Context) (int, error)

MeasurementsSize provides a mock function with given fields: _a0

func (*MockMeasurements) OverviewMetrics

func (_m *MockMeasurements) OverviewMetrics(ctx context.Context, options ...stats.QueryOption) (stats.MetricData, error)

OverviewMetrics provides a mock function with given fields: ctx, options

func (*MockMeasurements) ProcessMetrics

func (_m *MockMeasurements) ProcessMetrics(ctx context.Context) error

ProcessMetrics provides a mock function with given fields: ctx

func (*MockMeasurements) SaveAgentMetrics

func (_m *MockMeasurements) SaveAgentMetrics(ctx context.Context, metrics []*record.Metric) error

SaveAgentMetrics provides a mock function with given fields: ctx, metrics

Jump to

Keyboard shortcuts

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