mocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExporterFactory

type ExporterFactory struct {
	mock.Mock
}

ExporterFactory is an autogenerated mock type for the ExporterFactory type

func NewExporterFactory

func NewExporterFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *ExporterFactory

NewExporterFactory creates a new instance of ExporterFactory. 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 (*ExporterFactory) Build

Build provides a mock function with given fields: cfg

func (*ExporterFactory) EXPECT

func (*ExporterFactory) Validate

func (_m *ExporterFactory) Validate(cfg telemetry.ExporterConfig) error

Validate provides a mock function with given fields: cfg

type ExporterFactory_Build_Call

type ExporterFactory_Build_Call struct {
	*mock.Call
}

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

func (*ExporterFactory_Build_Call) Return

func (*ExporterFactory_Build_Call) Run

func (*ExporterFactory_Build_Call) RunAndReturn

type ExporterFactory_Expecter

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

func (*ExporterFactory_Expecter) Build

func (_e *ExporterFactory_Expecter) Build(cfg interface{}) *ExporterFactory_Build_Call

Build is a helper method to define mock.On call

  • cfg telemetry.ExporterConfig

func (*ExporterFactory_Expecter) Validate

func (_e *ExporterFactory_Expecter) Validate(cfg interface{}) *ExporterFactory_Validate_Call

Validate is a helper method to define mock.On call

  • cfg telemetry.ExporterConfig

type ExporterFactory_Validate_Call

type ExporterFactory_Validate_Call struct {
	*mock.Call
}

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

func (*ExporterFactory_Validate_Call) Return

func (*ExporterFactory_Validate_Call) Run

func (*ExporterFactory_Validate_Call) RunAndReturn

type Worker

type Worker struct {
	mock.Mock
}

Worker is an autogenerated mock type for the Worker type

func NewWorker

func NewWorker(t interface {
	mock.TestingT
	Cleanup(func())
}) *Worker

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

func (_m *Worker) EXPECT() *Worker_Expecter

func (*Worker) Process

func (_m *Worker) Process(requestTrace *trace.RequestTrace, req *context.RequestContext, resp *context.ResponseContext, startTime time.Time, endTime time.Time, exporters []telemetry.ExporterConfig)

Process provides a mock function with given fields: requestTrace, req, resp, startTime, endTime, exporters

func (*Worker) Shutdown

func (_m *Worker) Shutdown()

Shutdown provides a mock function with no fields

func (*Worker) StartWorkers

func (_m *Worker) StartWorkers(n int)

StartWorkers provides a mock function with given fields: n

type Worker_Expecter

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

func (*Worker_Expecter) Process

func (_e *Worker_Expecter) Process(requestTrace interface{}, req interface{}, resp interface{}, startTime interface{}, endTime interface{}, exporters interface{}) *Worker_Process_Call

Process is a helper method to define mock.On call

  • requestTrace *trace.RequestTrace
  • req *context.RequestContext
  • resp *context.ResponseContext
  • startTime time.Time
  • endTime time.Time
  • exporters []telemetry.ExporterConfig

func (*Worker_Expecter) Shutdown

func (_e *Worker_Expecter) Shutdown() *Worker_Shutdown_Call

Shutdown is a helper method to define mock.On call

func (*Worker_Expecter) StartWorkers

func (_e *Worker_Expecter) StartWorkers(n interface{}) *Worker_StartWorkers_Call

StartWorkers is a helper method to define mock.On call

  • n int

type Worker_Process_Call

type Worker_Process_Call struct {
	*mock.Call
}

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

func (*Worker_Process_Call) Return

func (*Worker_Process_Call) Run

func (_c *Worker_Process_Call) Run(run func(requestTrace *trace.RequestTrace, req *context.RequestContext, resp *context.ResponseContext, startTime time.Time, endTime time.Time, exporters []telemetry.ExporterConfig)) *Worker_Process_Call

type Worker_Shutdown_Call

type Worker_Shutdown_Call struct {
	*mock.Call
}

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

func (*Worker_Shutdown_Call) Return

func (*Worker_Shutdown_Call) Run

func (_c *Worker_Shutdown_Call) Run(run func()) *Worker_Shutdown_Call

func (*Worker_Shutdown_Call) RunAndReturn

func (_c *Worker_Shutdown_Call) RunAndReturn(run func()) *Worker_Shutdown_Call

type Worker_StartWorkers_Call

type Worker_StartWorkers_Call struct {
	*mock.Call
}

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

func (*Worker_StartWorkers_Call) Return

func (*Worker_StartWorkers_Call) Run

func (*Worker_StartWorkers_Call) RunAndReturn

func (_c *Worker_StartWorkers_Call) RunAndReturn(run func(int)) *Worker_StartWorkers_Call

Jump to

Keyboard shortcuts

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