mocks

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Span

type Span struct {
	mock.Mock
}

Span is an autogenerated mock type for the Span type

func NewSpan

func NewSpan(t mockConstructorTestingTNewSpan) *Span

NewSpan creates a new instance of Span. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Span) AddAnnotation

func (_m *Span) AddAnnotation(key string, value string)

AddAnnotation provides a mock function with given fields: key, value

func (*Span) AddError

func (_m *Span) AddError(err error)

AddError provides a mock function with given fields: err

func (*Span) AddMetadata

func (_m *Span) AddMetadata(key string, value interface{})

AddMetadata provides a mock function with given fields: key, value

func (*Span) EXPECT

func (_m *Span) EXPECT() *Span_Expecter

func (*Span) Finish

func (_m *Span) Finish()

Finish provides a mock function with given fields:

func (*Span) GetId

func (_m *Span) GetId() string

GetId provides a mock function with given fields:

func (*Span) GetTrace

func (_m *Span) GetTrace() *tracing.Trace

GetTrace provides a mock function with given fields:

type Span_AddAnnotation_Call

type Span_AddAnnotation_Call struct {
	*mock.Call
}

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

func (*Span_AddAnnotation_Call) Return

func (*Span_AddAnnotation_Call) Run

func (_c *Span_AddAnnotation_Call) Run(run func(key string, value string)) *Span_AddAnnotation_Call

func (*Span_AddAnnotation_Call) RunAndReturn

func (_c *Span_AddAnnotation_Call) RunAndReturn(run func(string, string)) *Span_AddAnnotation_Call

type Span_AddError_Call

type Span_AddError_Call struct {
	*mock.Call
}

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

func (*Span_AddError_Call) Return

func (_c *Span_AddError_Call) Return() *Span_AddError_Call

func (*Span_AddError_Call) Run

func (_c *Span_AddError_Call) Run(run func(err error)) *Span_AddError_Call

func (*Span_AddError_Call) RunAndReturn

func (_c *Span_AddError_Call) RunAndReturn(run func(error)) *Span_AddError_Call

type Span_AddMetadata_Call

type Span_AddMetadata_Call struct {
	*mock.Call
}

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

func (*Span_AddMetadata_Call) Return

func (*Span_AddMetadata_Call) Run

func (_c *Span_AddMetadata_Call) Run(run func(key string, value interface{})) *Span_AddMetadata_Call

func (*Span_AddMetadata_Call) RunAndReturn

func (_c *Span_AddMetadata_Call) RunAndReturn(run func(string, interface{})) *Span_AddMetadata_Call

type Span_Expecter

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

func (*Span_Expecter) AddAnnotation

func (_e *Span_Expecter) AddAnnotation(key interface{}, value interface{}) *Span_AddAnnotation_Call

AddAnnotation is a helper method to define mock.On call

  • key string
  • value string

func (*Span_Expecter) AddError

func (_e *Span_Expecter) AddError(err interface{}) *Span_AddError_Call

AddError is a helper method to define mock.On call

  • err error

func (*Span_Expecter) AddMetadata

func (_e *Span_Expecter) AddMetadata(key interface{}, value interface{}) *Span_AddMetadata_Call

AddMetadata is a helper method to define mock.On call

  • key string
  • value interface{}

func (*Span_Expecter) Finish

func (_e *Span_Expecter) Finish() *Span_Finish_Call

Finish is a helper method to define mock.On call

func (*Span_Expecter) GetId

func (_e *Span_Expecter) GetId() *Span_GetId_Call

GetId is a helper method to define mock.On call

func (*Span_Expecter) GetTrace

func (_e *Span_Expecter) GetTrace() *Span_GetTrace_Call

GetTrace is a helper method to define mock.On call

type Span_Finish_Call

type Span_Finish_Call struct {
	*mock.Call
}

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

func (*Span_Finish_Call) Return

func (_c *Span_Finish_Call) Return() *Span_Finish_Call

func (*Span_Finish_Call) Run

func (_c *Span_Finish_Call) Run(run func()) *Span_Finish_Call

func (*Span_Finish_Call) RunAndReturn

func (_c *Span_Finish_Call) RunAndReturn(run func()) *Span_Finish_Call

type Span_GetId_Call

type Span_GetId_Call struct {
	*mock.Call
}

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

func (*Span_GetId_Call) Return

func (_c *Span_GetId_Call) Return(_a0 string) *Span_GetId_Call

func (*Span_GetId_Call) Run

func (_c *Span_GetId_Call) Run(run func()) *Span_GetId_Call

func (*Span_GetId_Call) RunAndReturn

func (_c *Span_GetId_Call) RunAndReturn(run func() string) *Span_GetId_Call

type Span_GetTrace_Call

type Span_GetTrace_Call struct {
	*mock.Call
}

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

func (*Span_GetTrace_Call) Return

func (*Span_GetTrace_Call) Run

func (_c *Span_GetTrace_Call) Run(run func()) *Span_GetTrace_Call

func (*Span_GetTrace_Call) RunAndReturn

func (_c *Span_GetTrace_Call) RunAndReturn(run func() *tracing.Trace) *Span_GetTrace_Call

type TraceAble

type TraceAble struct {
	mock.Mock
}

TraceAble is an autogenerated mock type for the TraceAble type

func NewTraceAble

func NewTraceAble(t mockConstructorTestingTNewTraceAble) *TraceAble

NewTraceAble creates a new instance of TraceAble. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TraceAble) EXPECT

func (_m *TraceAble) EXPECT() *TraceAble_Expecter

func (*TraceAble) GetTrace

func (_m *TraceAble) GetTrace() *tracing.Trace

GetTrace provides a mock function with given fields:

type TraceAble_Expecter

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

func (*TraceAble_Expecter) GetTrace

GetTrace is a helper method to define mock.On call

type TraceAble_GetTrace_Call

type TraceAble_GetTrace_Call struct {
	*mock.Call
}

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

func (*TraceAble_GetTrace_Call) Return

func (*TraceAble_GetTrace_Call) Run

func (_c *TraceAble_GetTrace_Call) Run(run func()) *TraceAble_GetTrace_Call

func (*TraceAble_GetTrace_Call) RunAndReturn

func (_c *TraceAble_GetTrace_Call) RunAndReturn(run func() *tracing.Trace) *TraceAble_GetTrace_Call

type Tracer

type Tracer struct {
	mock.Mock
}

Tracer is an autogenerated mock type for the Tracer type

func NewTracer

func NewTracer(t mockConstructorTestingTNewTracer) *Tracer

NewTracer creates a new instance of Tracer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Tracer) EXPECT

func (_m *Tracer) EXPECT() *Tracer_Expecter

func (*Tracer) HttpHandler

func (_m *Tracer) HttpHandler(h http.Handler) http.Handler

HttpHandler provides a mock function with given fields: h

func (*Tracer) StartSpan

func (_m *Tracer) StartSpan(name string) (context.Context, tracing.Span)

StartSpan provides a mock function with given fields: name

func (*Tracer) StartSpanFromContext

func (_m *Tracer) StartSpanFromContext(ctx context.Context, name string) (context.Context, tracing.Span)

StartSpanFromContext provides a mock function with given fields: ctx, name

func (*Tracer) StartSubSpan

func (_m *Tracer) StartSubSpan(ctx context.Context, name string) (context.Context, tracing.Span)

StartSubSpan provides a mock function with given fields: ctx, name

type Tracer_Expecter

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

func (*Tracer_Expecter) HttpHandler

func (_e *Tracer_Expecter) HttpHandler(h interface{}) *Tracer_HttpHandler_Call

HttpHandler is a helper method to define mock.On call

  • h http.Handler

func (*Tracer_Expecter) StartSpan

func (_e *Tracer_Expecter) StartSpan(name interface{}) *Tracer_StartSpan_Call

StartSpan is a helper method to define mock.On call

  • name string

func (*Tracer_Expecter) StartSpanFromContext

func (_e *Tracer_Expecter) StartSpanFromContext(ctx interface{}, name interface{}) *Tracer_StartSpanFromContext_Call

StartSpanFromContext is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*Tracer_Expecter) StartSubSpan

func (_e *Tracer_Expecter) StartSubSpan(ctx interface{}, name interface{}) *Tracer_StartSubSpan_Call

StartSubSpan is a helper method to define mock.On call

  • ctx context.Context
  • name string

type Tracer_HttpHandler_Call

type Tracer_HttpHandler_Call struct {
	*mock.Call
}

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

func (*Tracer_HttpHandler_Call) Return

func (*Tracer_HttpHandler_Call) Run

func (*Tracer_HttpHandler_Call) RunAndReturn

type Tracer_StartSpanFromContext_Call

type Tracer_StartSpanFromContext_Call struct {
	*mock.Call
}

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

func (*Tracer_StartSpanFromContext_Call) Return

func (*Tracer_StartSpanFromContext_Call) Run

func (*Tracer_StartSpanFromContext_Call) RunAndReturn

type Tracer_StartSpan_Call

type Tracer_StartSpan_Call struct {
	*mock.Call
}

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

func (*Tracer_StartSpan_Call) Return

func (*Tracer_StartSpan_Call) Run

func (_c *Tracer_StartSpan_Call) Run(run func(name string)) *Tracer_StartSpan_Call

func (*Tracer_StartSpan_Call) RunAndReturn

type Tracer_StartSubSpan_Call

type Tracer_StartSubSpan_Call struct {
	*mock.Call
}

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

func (*Tracer_StartSubSpan_Call) Return

func (*Tracer_StartSubSpan_Call) Run

func (*Tracer_StartSubSpan_Call) RunAndReturn

Jump to

Keyboard shortcuts

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