mockmetrics

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExporter

type MockExporter struct {
	mock.Mock
}

MockExporter is an autogenerated mock type for the Exporter type

func NewMockExporter

func NewMockExporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockExporter

NewMockExporter creates a new instance of MockExporter. 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 (*MockExporter) EXPECT

func (_m *MockExporter) EXPECT() *MockExporter_Expecter

func (*MockExporter) Flush

func (_m *MockExporter) Flush()

Flush provides a mock function with no fields

func (*MockExporter) Send

func (_m *MockExporter) Send(tenant string, series []prompb.TimeSeries) error

Send provides a mock function with given fields: tenant, series

type MockExporter_Expecter

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

func (*MockExporter_Expecter) Flush

Flush is a helper method to define mock.On call

func (*MockExporter_Expecter) Send

func (_e *MockExporter_Expecter) Send(tenant interface{}, series interface{}) *MockExporter_Send_Call

Send is a helper method to define mock.On call

  • tenant string
  • series []prompb.TimeSeries

type MockExporter_Flush_Call

type MockExporter_Flush_Call struct {
	*mock.Call
}

MockExporter_Flush_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Flush'

func (*MockExporter_Flush_Call) Return

func (*MockExporter_Flush_Call) Run

func (_c *MockExporter_Flush_Call) Run(run func()) *MockExporter_Flush_Call

func (*MockExporter_Flush_Call) RunAndReturn

func (_c *MockExporter_Flush_Call) RunAndReturn(run func()) *MockExporter_Flush_Call

type MockExporter_Send_Call

type MockExporter_Send_Call struct {
	*mock.Call
}

MockExporter_Send_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Send'

func (*MockExporter_Send_Call) Return

func (*MockExporter_Send_Call) Run

func (_c *MockExporter_Send_Call) Run(run func(tenant string, series []prompb.TimeSeries)) *MockExporter_Send_Call

func (*MockExporter_Send_Call) RunAndReturn

type MockRuler

type MockRuler struct {
	mock.Mock
}

MockRuler is an autogenerated mock type for the Ruler type

func NewMockRuler

func NewMockRuler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRuler

NewMockRuler creates a new instance of MockRuler. 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 (*MockRuler) EXPECT

func (_m *MockRuler) EXPECT() *MockRuler_Expecter

func (*MockRuler) RecordingRules

func (_m *MockRuler) RecordingRules(tenant string) []*model.RecordingRule

RecordingRules provides a mock function with given fields: tenant

type MockRuler_Expecter

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

func (*MockRuler_Expecter) RecordingRules

func (_e *MockRuler_Expecter) RecordingRules(tenant interface{}) *MockRuler_RecordingRules_Call

RecordingRules is a helper method to define mock.On call

  • tenant string

type MockRuler_RecordingRules_Call

type MockRuler_RecordingRules_Call struct {
	*mock.Call
}

MockRuler_RecordingRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RecordingRules'

func (*MockRuler_RecordingRules_Call) Return

func (*MockRuler_RecordingRules_Call) Run

func (*MockRuler_RecordingRules_Call) RunAndReturn

Jump to

Keyboard shortcuts

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