mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OTLPExporter

type OTLPExporter struct {
	mock.Mock
}

OTLPExporter is an autogenerated mock type for the OTLPExporter type

func NewOTLPExporter

func NewOTLPExporter(t interface {
	mock.TestingT
	Cleanup(func())
}) *OTLPExporter

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

func (_m *OTLPExporter) EXPECT() *OTLPExporter_Expecter

func (*OTLPExporter) Export

func (_m *OTLPExporter) Export(ctx context.Context, records []log.Record) error

Export provides a mock function with given fields: ctx, records

func (*OTLPExporter) ForceFlush

func (_m *OTLPExporter) ForceFlush(ctx context.Context) error

ForceFlush provides a mock function with given fields: ctx

func (*OTLPExporter) Shutdown

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

Shutdown provides a mock function with given fields: ctx

type OTLPExporter_Expecter

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

func (*OTLPExporter_Expecter) Export

func (_e *OTLPExporter_Expecter) Export(ctx interface{}, records interface{}) *OTLPExporter_Export_Call

Export is a helper method to define mock.On call

  • ctx context.Context
  • records []log.Record

func (*OTLPExporter_Expecter) ForceFlush

func (_e *OTLPExporter_Expecter) ForceFlush(ctx interface{}) *OTLPExporter_ForceFlush_Call

ForceFlush is a helper method to define mock.On call

  • ctx context.Context

func (*OTLPExporter_Expecter) Shutdown

func (_e *OTLPExporter_Expecter) Shutdown(ctx interface{}) *OTLPExporter_Shutdown_Call

Shutdown is a helper method to define mock.On call

  • ctx context.Context

type OTLPExporter_Export_Call

type OTLPExporter_Export_Call struct {
	*mock.Call
}

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

func (*OTLPExporter_Export_Call) Return

func (*OTLPExporter_Export_Call) Run

func (_c *OTLPExporter_Export_Call) Run(run func(ctx context.Context, records []log.Record)) *OTLPExporter_Export_Call

func (*OTLPExporter_Export_Call) RunAndReturn

type OTLPExporter_ForceFlush_Call

type OTLPExporter_ForceFlush_Call struct {
	*mock.Call
}

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

func (*OTLPExporter_ForceFlush_Call) Return

func (*OTLPExporter_ForceFlush_Call) Run

func (*OTLPExporter_ForceFlush_Call) RunAndReturn

type OTLPExporter_Shutdown_Call

type OTLPExporter_Shutdown_Call struct {
	*mock.Call
}

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

func (*OTLPExporter_Shutdown_Call) Return

func (*OTLPExporter_Shutdown_Call) Run

func (*OTLPExporter_Shutdown_Call) RunAndReturn

Jump to

Keyboard shortcuts

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