trace

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEventOption

type MockEventOption struct {
	mock.Mock
}

MockEventOption is an autogenerated mock type for the EventOption type

func NewMockEventOption

func NewMockEventOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEventOption

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

type MockEventOption_Expecter

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

type MockEventOption_applyEvent_Call

type MockEventOption_applyEvent_Call struct {
	*mock.Call
}

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

func (*MockEventOption_applyEvent_Call) Return

func (*MockEventOption_applyEvent_Call) Run

func (*MockEventOption_applyEvent_Call) RunAndReturn

type MockSpan

type MockSpan struct {
	mock.Mock
	embedded.Span
}

MockSpan is an autogenerated mock type for the Span type

func NewMockSpan

func NewMockSpan(t interface {
	mock.TestingT
	Cleanup(func())
},
) *MockSpan

NewMockSpan creates a new instance of MockSpan. 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 (*MockSpan) AddEvent

func (_m *MockSpan) AddEvent(name string, options ...trace.EventOption)

AddEvent provides a mock function with given fields: name, options

func (_m *MockSpan) AddLink(link trace.Link)

AddLink provides a mock function with given fields: link

func (*MockSpan) EXPECT

func (_m *MockSpan) EXPECT() *MockSpan_Expecter

func (*MockSpan) End

func (_m *MockSpan) End(options ...trace.SpanEndOption)

End provides a mock function with given fields: options

func (*MockSpan) IsRecording

func (_m *MockSpan) IsRecording() bool

IsRecording provides a mock function with no fields

func (*MockSpan) RecordError

func (_m *MockSpan) RecordError(err error, options ...trace.EventOption)

RecordError provides a mock function with given fields: err, options

func (*MockSpan) SetAttributes

func (_m *MockSpan) SetAttributes(kv ...attribute.KeyValue)

SetAttributes provides a mock function with given fields: kv

func (*MockSpan) SetName

func (_m *MockSpan) SetName(name string)

SetName provides a mock function with given fields: name

func (*MockSpan) SetStatus

func (_m *MockSpan) SetStatus(code codes.Code, description string)

SetStatus provides a mock function with given fields: code, description

func (*MockSpan) SpanContext

func (_m *MockSpan) SpanContext() trace.SpanContext

SpanContext provides a mock function with no fields

func (*MockSpan) TracerProvider

func (_m *MockSpan) TracerProvider() trace.TracerProvider

TracerProvider provides a mock function with no fields

type MockSpanEndEventOption

type MockSpanEndEventOption struct {
	mock.Mock
}

MockSpanEndEventOption is an autogenerated mock type for the SpanEndEventOption type

func NewMockSpanEndEventOption

func NewMockSpanEndEventOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSpanEndEventOption

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

type MockSpanEndEventOption_Expecter

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

type MockSpanEndEventOption_applyEvent_Call

type MockSpanEndEventOption_applyEvent_Call struct {
	*mock.Call
}

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

func (*MockSpanEndEventOption_applyEvent_Call) Return

func (*MockSpanEndEventOption_applyEvent_Call) Run

func (*MockSpanEndEventOption_applyEvent_Call) RunAndReturn

type MockSpanEndEventOption_applySpanEnd_Call

type MockSpanEndEventOption_applySpanEnd_Call struct {
	*mock.Call
}

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

func (*MockSpanEndEventOption_applySpanEnd_Call) Return

func (*MockSpanEndEventOption_applySpanEnd_Call) Run

func (*MockSpanEndEventOption_applySpanEnd_Call) RunAndReturn

type MockSpanEndOption

type MockSpanEndOption struct {
	mock.Mock
}

MockSpanEndOption is an autogenerated mock type for the SpanEndOption type

func NewMockSpanEndOption

func NewMockSpanEndOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSpanEndOption

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

type MockSpanEndOption_Expecter

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

type MockSpanEndOption_applySpanEnd_Call

type MockSpanEndOption_applySpanEnd_Call struct {
	*mock.Call
}

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

func (*MockSpanEndOption_applySpanEnd_Call) Return

func (*MockSpanEndOption_applySpanEnd_Call) Run

func (*MockSpanEndOption_applySpanEnd_Call) RunAndReturn

type MockSpanEventOption

type MockSpanEventOption struct {
	mock.Mock
}

MockSpanEventOption is an autogenerated mock type for the SpanEventOption type

func NewMockSpanEventOption

func NewMockSpanEventOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSpanEventOption

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

type MockSpanEventOption_Expecter

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

type MockSpanEventOption_applyEvent_Call

type MockSpanEventOption_applyEvent_Call struct {
	*mock.Call
}

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

func (*MockSpanEventOption_applyEvent_Call) Return

func (*MockSpanEventOption_applyEvent_Call) Run

func (*MockSpanEventOption_applyEvent_Call) RunAndReturn

type MockSpanEventOption_applySpanEnd_Call

type MockSpanEventOption_applySpanEnd_Call struct {
	*mock.Call
}

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

func (*MockSpanEventOption_applySpanEnd_Call) Return

func (*MockSpanEventOption_applySpanEnd_Call) Run

func (*MockSpanEventOption_applySpanEnd_Call) RunAndReturn

type MockSpanEventOption_applySpanStart_Call

type MockSpanEventOption_applySpanStart_Call struct {
	*mock.Call
}

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

func (*MockSpanEventOption_applySpanStart_Call) Return

func (*MockSpanEventOption_applySpanStart_Call) Run

func (*MockSpanEventOption_applySpanStart_Call) RunAndReturn

type MockSpanOption

type MockSpanOption struct {
	mock.Mock
}

MockSpanOption is an autogenerated mock type for the SpanOption type

func NewMockSpanOption

func NewMockSpanOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSpanOption

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

type MockSpanOption_Expecter

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

type MockSpanOption_applySpanEnd_Call

type MockSpanOption_applySpanEnd_Call struct {
	*mock.Call
}

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

func (*MockSpanOption_applySpanEnd_Call) Return

func (*MockSpanOption_applySpanEnd_Call) Run

func (*MockSpanOption_applySpanEnd_Call) RunAndReturn

type MockSpanOption_applySpanStart_Call

type MockSpanOption_applySpanStart_Call struct {
	*mock.Call
}

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

func (*MockSpanOption_applySpanStart_Call) Return

func (*MockSpanOption_applySpanStart_Call) Run

func (*MockSpanOption_applySpanStart_Call) RunAndReturn

type MockSpanStartEventOption

type MockSpanStartEventOption struct {
	mock.Mock
}

MockSpanStartEventOption is an autogenerated mock type for the SpanStartEventOption type

func NewMockSpanStartEventOption

func NewMockSpanStartEventOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSpanStartEventOption

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

type MockSpanStartEventOption_Expecter

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

type MockSpanStartEventOption_applyEvent_Call

type MockSpanStartEventOption_applyEvent_Call struct {
	*mock.Call
}

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

func (*MockSpanStartEventOption_applyEvent_Call) Return

func (*MockSpanStartEventOption_applyEvent_Call) Run

func (*MockSpanStartEventOption_applyEvent_Call) RunAndReturn

type MockSpanStartEventOption_applySpanStart_Call

type MockSpanStartEventOption_applySpanStart_Call struct {
	*mock.Call
}

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

func (*MockSpanStartEventOption_applySpanStart_Call) Return

func (*MockSpanStartEventOption_applySpanStart_Call) Run

func (*MockSpanStartEventOption_applySpanStart_Call) RunAndReturn

type MockSpanStartOption

type MockSpanStartOption struct {
	mock.Mock
}

MockSpanStartOption is an autogenerated mock type for the SpanStartOption type

func NewMockSpanStartOption

func NewMockSpanStartOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSpanStartOption

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

type MockSpanStartOption_Expecter

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

type MockSpanStartOption_applySpanStart_Call

type MockSpanStartOption_applySpanStart_Call struct {
	*mock.Call
}

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

func (*MockSpanStartOption_applySpanStart_Call) Return

func (*MockSpanStartOption_applySpanStart_Call) Run

func (*MockSpanStartOption_applySpanStart_Call) RunAndReturn

type MockSpan_AddEvent_Call

type MockSpan_AddEvent_Call struct {
	*mock.Call
}

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

func (*MockSpan_AddEvent_Call) Return

func (*MockSpan_AddEvent_Call) Run

func (_c *MockSpan_AddEvent_Call) Run(run func(name string, options ...trace.EventOption)) *MockSpan_AddEvent_Call

func (*MockSpan_AddEvent_Call) RunAndReturn

func (_c *MockSpan_AddEvent_Call) RunAndReturn(run func(string, ...trace.EventOption)) *MockSpan_AddEvent_Call
type MockSpan_AddLink_Call struct {
	*mock.Call
}

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

func (_c *MockSpan_AddLink_Call) Run(run func(link trace.Link)) *MockSpan_AddLink_Call
func (_c *MockSpan_AddLink_Call) RunAndReturn(run func(trace.Link)) *MockSpan_AddLink_Call

type MockSpan_End_Call

type MockSpan_End_Call struct {
	*mock.Call
}

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

func (*MockSpan_End_Call) Return

func (_c *MockSpan_End_Call) Return() *MockSpan_End_Call

func (*MockSpan_End_Call) Run

func (_c *MockSpan_End_Call) Run(run func(options ...trace.SpanEndOption)) *MockSpan_End_Call

func (*MockSpan_End_Call) RunAndReturn

func (_c *MockSpan_End_Call) RunAndReturn(run func(...trace.SpanEndOption)) *MockSpan_End_Call

type MockSpan_Expecter

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

func (*MockSpan_Expecter) AddEvent

func (_e *MockSpan_Expecter) AddEvent(name interface{}, options ...interface{}) *MockSpan_AddEvent_Call

AddEvent is a helper method to define mock.On call

  • name string
  • options ...trace.EventOption
func (_e *MockSpan_Expecter) AddLink(link interface{}) *MockSpan_AddLink_Call

AddLink is a helper method to define mock.On call

  • link trace.Link

func (*MockSpan_Expecter) End

func (_e *MockSpan_Expecter) End(options ...interface{}) *MockSpan_End_Call

End is a helper method to define mock.On call

  • options ...trace.SpanEndOption

func (*MockSpan_Expecter) IsRecording

func (_e *MockSpan_Expecter) IsRecording() *MockSpan_IsRecording_Call

IsRecording is a helper method to define mock.On call

func (*MockSpan_Expecter) RecordError

func (_e *MockSpan_Expecter) RecordError(err interface{}, options ...interface{}) *MockSpan_RecordError_Call

RecordError is a helper method to define mock.On call

  • err error
  • options ...trace.EventOption

func (*MockSpan_Expecter) SetAttributes

func (_e *MockSpan_Expecter) SetAttributes(kv ...interface{}) *MockSpan_SetAttributes_Call

SetAttributes is a helper method to define mock.On call

  • kv ...attribute.KeyValue

func (*MockSpan_Expecter) SetName

func (_e *MockSpan_Expecter) SetName(name interface{}) *MockSpan_SetName_Call

SetName is a helper method to define mock.On call

  • name string

func (*MockSpan_Expecter) SetStatus

func (_e *MockSpan_Expecter) SetStatus(code interface{}, description interface{}) *MockSpan_SetStatus_Call

SetStatus is a helper method to define mock.On call

  • code codes.Code
  • description string

func (*MockSpan_Expecter) SpanContext

func (_e *MockSpan_Expecter) SpanContext() *MockSpan_SpanContext_Call

SpanContext is a helper method to define mock.On call

func (*MockSpan_Expecter) TracerProvider

func (_e *MockSpan_Expecter) TracerProvider() *MockSpan_TracerProvider_Call

TracerProvider is a helper method to define mock.On call

type MockSpan_IsRecording_Call

type MockSpan_IsRecording_Call struct {
	*mock.Call
}

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

func (*MockSpan_IsRecording_Call) Return

func (*MockSpan_IsRecording_Call) Run

func (*MockSpan_IsRecording_Call) RunAndReturn

func (_c *MockSpan_IsRecording_Call) RunAndReturn(run func() bool) *MockSpan_IsRecording_Call

type MockSpan_RecordError_Call

type MockSpan_RecordError_Call struct {
	*mock.Call
}

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

func (*MockSpan_RecordError_Call) Return

func (*MockSpan_RecordError_Call) Run

func (_c *MockSpan_RecordError_Call) Run(run func(err error, options ...trace.EventOption)) *MockSpan_RecordError_Call

func (*MockSpan_RecordError_Call) RunAndReturn

type MockSpan_SetAttributes_Call

type MockSpan_SetAttributes_Call struct {
	*mock.Call
}

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

func (*MockSpan_SetAttributes_Call) Return

func (*MockSpan_SetAttributes_Call) Run

func (*MockSpan_SetAttributes_Call) RunAndReturn

type MockSpan_SetName_Call

type MockSpan_SetName_Call struct {
	*mock.Call
}

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

func (*MockSpan_SetName_Call) Return

func (*MockSpan_SetName_Call) Run

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

func (*MockSpan_SetName_Call) RunAndReturn

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

type MockSpan_SetStatus_Call

type MockSpan_SetStatus_Call struct {
	*mock.Call
}

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

func (*MockSpan_SetStatus_Call) Return

func (*MockSpan_SetStatus_Call) Run

func (_c *MockSpan_SetStatus_Call) Run(run func(code codes.Code, description string)) *MockSpan_SetStatus_Call

func (*MockSpan_SetStatus_Call) RunAndReturn

func (_c *MockSpan_SetStatus_Call) RunAndReturn(run func(codes.Code, string)) *MockSpan_SetStatus_Call

type MockSpan_SpanContext_Call

type MockSpan_SpanContext_Call struct {
	*mock.Call
}

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

func (*MockSpan_SpanContext_Call) Return

func (*MockSpan_SpanContext_Call) Run

func (*MockSpan_SpanContext_Call) RunAndReturn

type MockSpan_TracerProvider_Call

type MockSpan_TracerProvider_Call struct {
	*mock.Call
}

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

func (*MockSpan_TracerProvider_Call) Return

func (*MockSpan_TracerProvider_Call) Run

func (*MockSpan_TracerProvider_Call) RunAndReturn

type MockSpan_span_Call

type MockSpan_span_Call struct {
	*mock.Call
}

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

func (*MockSpan_span_Call) Return

func (_c *MockSpan_span_Call) Return() *MockSpan_span_Call

func (*MockSpan_span_Call) Run

func (_c *MockSpan_span_Call) Run(run func()) *MockSpan_span_Call

func (*MockSpan_span_Call) RunAndReturn

func (_c *MockSpan_span_Call) RunAndReturn(run func()) *MockSpan_span_Call

type MockTracer

type MockTracer struct {
	mock.Mock
	embedded.Tracer
}

MockTracer is an autogenerated mock type for the Tracer type

func NewMockTracer

func NewMockTracer(t interface {
	mock.TestingT
	Cleanup(func())
},
) *MockTracer

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

func (_m *MockTracer) EXPECT() *MockTracer_Expecter

func (*MockTracer) Start

func (_m *MockTracer) Start(ctx context.Context, spanName string, opts ...trace.SpanStartOption) (context.Context, trace.Span)

Start provides a mock function with given fields: ctx, spanName, opts

type MockTracerOption

type MockTracerOption struct {
	mock.Mock
}

MockTracerOption is an autogenerated mock type for the TracerOption type

func NewMockTracerOption

func NewMockTracerOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTracerOption

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

type MockTracerOption_Expecter

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

type MockTracerOption_apply_Call

type MockTracerOption_apply_Call struct {
	*mock.Call
}

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

func (*MockTracerOption_apply_Call) Return

func (*MockTracerOption_apply_Call) Run

func (*MockTracerOption_apply_Call) RunAndReturn

type MockTracerProvider

type MockTracerProvider struct {
	mock.Mock
	embedded.TracerProvider
}

MockTracerProvider is an autogenerated mock type for the TracerProvider type

func NewMockTracerProvider

func NewMockTracerProvider(t interface {
	mock.TestingT
	Cleanup(func())
},
) *MockTracerProvider

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

func (*MockTracerProvider) Tracer

func (_m *MockTracerProvider) Tracer(name string, options ...trace.TracerOption) trace.Tracer

Tracer provides a mock function with given fields: name, options

type MockTracerProvider_Expecter

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

func (*MockTracerProvider_Expecter) Tracer

func (_e *MockTracerProvider_Expecter) Tracer(name interface{}, options ...interface{}) *MockTracerProvider_Tracer_Call

Tracer is a helper method to define mock.On call

  • name string
  • options ...trace.TracerOption

type MockTracerProvider_Tracer_Call

type MockTracerProvider_Tracer_Call struct {
	*mock.Call
}

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

func (*MockTracerProvider_Tracer_Call) Return

func (*MockTracerProvider_Tracer_Call) Run

func (*MockTracerProvider_Tracer_Call) RunAndReturn

type MockTracerProvider_tracerProvider_Call

type MockTracerProvider_tracerProvider_Call struct {
	*mock.Call
}

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

func (*MockTracerProvider_tracerProvider_Call) Return

func (*MockTracerProvider_tracerProvider_Call) Run

func (*MockTracerProvider_tracerProvider_Call) RunAndReturn

type MockTracer_Expecter

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

func (*MockTracer_Expecter) Start

func (_e *MockTracer_Expecter) Start(ctx interface{}, spanName interface{}, opts ...interface{}) *MockTracer_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context
  • spanName string
  • opts ...trace.SpanStartOption

type MockTracer_Start_Call

type MockTracer_Start_Call struct {
	*mock.Call
}

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

func (*MockTracer_Start_Call) Return

func (*MockTracer_Start_Call) Run

func (_c *MockTracer_Start_Call) Run(run func(ctx context.Context, spanName string, opts ...trace.SpanStartOption)) *MockTracer_Start_Call

func (*MockTracer_Start_Call) RunAndReturn

type MockTracer_tracer_Call

type MockTracer_tracer_Call struct {
	*mock.Call
}

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

func (*MockTracer_tracer_Call) Return

func (*MockTracer_tracer_Call) Run

func (_c *MockTracer_tracer_Call) Run(run func()) *MockTracer_tracer_Call

func (*MockTracer_tracer_Call) RunAndReturn

func (_c *MockTracer_tracer_Call) RunAndReturn(run func()) *MockTracer_tracer_Call

type MockspanOptionFunc

type MockspanOptionFunc struct {
	mock.Mock
}

MockspanOptionFunc is an autogenerated mock type for the spanOptionFunc type

func NewMockspanOptionFunc

func NewMockspanOptionFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockspanOptionFunc

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

func (*MockspanOptionFunc) Execute

Execute provides a mock function with given fields: _a0

type MockspanOptionFunc_Execute_Call

type MockspanOptionFunc_Execute_Call struct {
	*mock.Call
}

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

func (*MockspanOptionFunc_Execute_Call) Return

func (*MockspanOptionFunc_Execute_Call) Run

func (*MockspanOptionFunc_Execute_Call) RunAndReturn

type MockspanOptionFunc_Expecter

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

func (*MockspanOptionFunc_Expecter) Execute

func (_e *MockspanOptionFunc_Expecter) Execute(_a0 interface{}) *MockspanOptionFunc_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 trace.SpanConfig

type MocktracerOptionFunc

type MocktracerOptionFunc struct {
	mock.Mock
}

MocktracerOptionFunc is an autogenerated mock type for the tracerOptionFunc type

func NewMocktracerOptionFunc

func NewMocktracerOptionFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *MocktracerOptionFunc

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

func (*MocktracerOptionFunc) Execute

Execute provides a mock function with given fields: _a0

type MocktracerOptionFunc_Execute_Call

type MocktracerOptionFunc_Execute_Call struct {
	*mock.Call
}

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

func (*MocktracerOptionFunc_Execute_Call) Return

func (*MocktracerOptionFunc_Execute_Call) Run

func (*MocktracerOptionFunc_Execute_Call) RunAndReturn

type MocktracerOptionFunc_Expecter

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

func (*MocktracerOptionFunc_Expecter) Execute

Execute is a helper method to define mock.On call

  • _a0 trace.TracerConfig

Jump to

Keyboard shortcuts

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