Documentation ¶
Index ¶
- type MockEventOption
- type MockEventOption_Expecter
- type MockEventOption_applyEvent_Call
- func (_c *MockEventOption_applyEvent_Call) Return(_a0 trace.EventConfig) *MockEventOption_applyEvent_Call
- func (_c *MockEventOption_applyEvent_Call) Run(run func(_a0 trace.EventConfig)) *MockEventOption_applyEvent_Call
- func (_c *MockEventOption_applyEvent_Call) RunAndReturn(run func(trace.EventConfig) trace.EventConfig) *MockEventOption_applyEvent_Call
- type MockSpan
- func (_m *MockSpan) AddEvent(name string, options ...trace.EventOption)
- func (_m *MockSpan) AddLink(link trace.Link)
- func (_m *MockSpan) EXPECT() *MockSpan_Expecter
- func (_m *MockSpan) End(options ...trace.SpanEndOption)
- func (_m *MockSpan) IsRecording() bool
- func (_m *MockSpan) RecordError(err error, options ...trace.EventOption)
- func (_m *MockSpan) SetAttributes(kv ...attribute.KeyValue)
- func (_m *MockSpan) SetName(name string)
- func (_m *MockSpan) SetStatus(code codes.Code, description string)
- func (_m *MockSpan) SpanContext() trace.SpanContext
- func (_m *MockSpan) TracerProvider() trace.TracerProvider
- type MockSpanEndEventOption
- type MockSpanEndEventOption_Expecter
- type MockSpanEndEventOption_applyEvent_Call
- func (_c *MockSpanEndEventOption_applyEvent_Call) Return(_a0 trace.EventConfig) *MockSpanEndEventOption_applyEvent_Call
- func (_c *MockSpanEndEventOption_applyEvent_Call) Run(run func(_a0 trace.EventConfig)) *MockSpanEndEventOption_applyEvent_Call
- func (_c *MockSpanEndEventOption_applyEvent_Call) RunAndReturn(run func(trace.EventConfig) trace.EventConfig) *MockSpanEndEventOption_applyEvent_Call
- type MockSpanEndEventOption_applySpanEnd_Call
- func (_c *MockSpanEndEventOption_applySpanEnd_Call) Return(_a0 trace.SpanConfig) *MockSpanEndEventOption_applySpanEnd_Call
- func (_c *MockSpanEndEventOption_applySpanEnd_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanEndEventOption_applySpanEnd_Call
- func (_c *MockSpanEndEventOption_applySpanEnd_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanEndEventOption_applySpanEnd_Call
- type MockSpanEndOption
- type MockSpanEndOption_Expecter
- type MockSpanEndOption_applySpanEnd_Call
- func (_c *MockSpanEndOption_applySpanEnd_Call) Return(_a0 trace.SpanConfig) *MockSpanEndOption_applySpanEnd_Call
- func (_c *MockSpanEndOption_applySpanEnd_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanEndOption_applySpanEnd_Call
- func (_c *MockSpanEndOption_applySpanEnd_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanEndOption_applySpanEnd_Call
- type MockSpanEventOption
- type MockSpanEventOption_Expecter
- type MockSpanEventOption_applyEvent_Call
- func (_c *MockSpanEventOption_applyEvent_Call) Return(_a0 trace.EventConfig) *MockSpanEventOption_applyEvent_Call
- func (_c *MockSpanEventOption_applyEvent_Call) Run(run func(_a0 trace.EventConfig)) *MockSpanEventOption_applyEvent_Call
- func (_c *MockSpanEventOption_applyEvent_Call) RunAndReturn(run func(trace.EventConfig) trace.EventConfig) *MockSpanEventOption_applyEvent_Call
- type MockSpanEventOption_applySpanEnd_Call
- func (_c *MockSpanEventOption_applySpanEnd_Call) Return(_a0 trace.SpanConfig) *MockSpanEventOption_applySpanEnd_Call
- func (_c *MockSpanEventOption_applySpanEnd_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanEventOption_applySpanEnd_Call
- func (_c *MockSpanEventOption_applySpanEnd_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanEventOption_applySpanEnd_Call
- type MockSpanEventOption_applySpanStart_Call
- func (_c *MockSpanEventOption_applySpanStart_Call) Return(_a0 trace.SpanConfig) *MockSpanEventOption_applySpanStart_Call
- func (_c *MockSpanEventOption_applySpanStart_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanEventOption_applySpanStart_Call
- func (_c *MockSpanEventOption_applySpanStart_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanEventOption_applySpanStart_Call
- type MockSpanOption
- type MockSpanOption_Expecter
- type MockSpanOption_applySpanEnd_Call
- func (_c *MockSpanOption_applySpanEnd_Call) Return(_a0 trace.SpanConfig) *MockSpanOption_applySpanEnd_Call
- func (_c *MockSpanOption_applySpanEnd_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanOption_applySpanEnd_Call
- func (_c *MockSpanOption_applySpanEnd_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanOption_applySpanEnd_Call
- type MockSpanOption_applySpanStart_Call
- func (_c *MockSpanOption_applySpanStart_Call) Return(_a0 trace.SpanConfig) *MockSpanOption_applySpanStart_Call
- func (_c *MockSpanOption_applySpanStart_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanOption_applySpanStart_Call
- func (_c *MockSpanOption_applySpanStart_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanOption_applySpanStart_Call
- type MockSpanStartEventOption
- type MockSpanStartEventOption_Expecter
- type MockSpanStartEventOption_applyEvent_Call
- func (_c *MockSpanStartEventOption_applyEvent_Call) Return(_a0 trace.EventConfig) *MockSpanStartEventOption_applyEvent_Call
- func (_c *MockSpanStartEventOption_applyEvent_Call) Run(run func(_a0 trace.EventConfig)) *MockSpanStartEventOption_applyEvent_Call
- func (_c *MockSpanStartEventOption_applyEvent_Call) RunAndReturn(run func(trace.EventConfig) trace.EventConfig) *MockSpanStartEventOption_applyEvent_Call
- type MockSpanStartEventOption_applySpanStart_Call
- func (_c *MockSpanStartEventOption_applySpanStart_Call) Return(_a0 trace.SpanConfig) *MockSpanStartEventOption_applySpanStart_Call
- func (_c *MockSpanStartEventOption_applySpanStart_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanStartEventOption_applySpanStart_Call
- func (_c *MockSpanStartEventOption_applySpanStart_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanStartEventOption_applySpanStart_Call
- type MockSpanStartOption
- type MockSpanStartOption_Expecter
- type MockSpanStartOption_applySpanStart_Call
- func (_c *MockSpanStartOption_applySpanStart_Call) Return(_a0 trace.SpanConfig) *MockSpanStartOption_applySpanStart_Call
- func (_c *MockSpanStartOption_applySpanStart_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanStartOption_applySpanStart_Call
- func (_c *MockSpanStartOption_applySpanStart_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanStartOption_applySpanStart_Call
- type MockSpan_AddEvent_Call
- type MockSpan_AddLink_Call
- type MockSpan_End_Call
- type MockSpan_Expecter
- func (_e *MockSpan_Expecter) AddEvent(name interface{}, options ...interface{}) *MockSpan_AddEvent_Call
- func (_e *MockSpan_Expecter) AddLink(link interface{}) *MockSpan_AddLink_Call
- func (_e *MockSpan_Expecter) End(options ...interface{}) *MockSpan_End_Call
- func (_e *MockSpan_Expecter) IsRecording() *MockSpan_IsRecording_Call
- func (_e *MockSpan_Expecter) RecordError(err interface{}, options ...interface{}) *MockSpan_RecordError_Call
- func (_e *MockSpan_Expecter) SetAttributes(kv ...interface{}) *MockSpan_SetAttributes_Call
- func (_e *MockSpan_Expecter) SetName(name interface{}) *MockSpan_SetName_Call
- func (_e *MockSpan_Expecter) SetStatus(code interface{}, description interface{}) *MockSpan_SetStatus_Call
- func (_e *MockSpan_Expecter) SpanContext() *MockSpan_SpanContext_Call
- func (_e *MockSpan_Expecter) TracerProvider() *MockSpan_TracerProvider_Call
- type MockSpan_IsRecording_Call
- type MockSpan_RecordError_Call
- func (_c *MockSpan_RecordError_Call) Return() *MockSpan_RecordError_Call
- func (_c *MockSpan_RecordError_Call) Run(run func(err error, options ...trace.EventOption)) *MockSpan_RecordError_Call
- func (_c *MockSpan_RecordError_Call) RunAndReturn(run func(error, ...trace.EventOption)) *MockSpan_RecordError_Call
- type MockSpan_SetAttributes_Call
- type MockSpan_SetName_Call
- type MockSpan_SetStatus_Call
- type MockSpan_SpanContext_Call
- type MockSpan_TracerProvider_Call
- func (_c *MockSpan_TracerProvider_Call) Return(_a0 trace.TracerProvider) *MockSpan_TracerProvider_Call
- func (_c *MockSpan_TracerProvider_Call) Run(run func()) *MockSpan_TracerProvider_Call
- func (_c *MockSpan_TracerProvider_Call) RunAndReturn(run func() trace.TracerProvider) *MockSpan_TracerProvider_Call
- type MockSpan_span_Call
- type MockTracer
- type MockTracerOption
- type MockTracerOption_Expecter
- type MockTracerOption_apply_Call
- func (_c *MockTracerOption_apply_Call) Return(_a0 trace.TracerConfig) *MockTracerOption_apply_Call
- func (_c *MockTracerOption_apply_Call) Run(run func(_a0 trace.TracerConfig)) *MockTracerOption_apply_Call
- func (_c *MockTracerOption_apply_Call) RunAndReturn(run func(trace.TracerConfig) trace.TracerConfig) *MockTracerOption_apply_Call
- type MockTracerProvider
- type MockTracerProvider_Expecter
- type MockTracerProvider_Tracer_Call
- func (_c *MockTracerProvider_Tracer_Call) Return(_a0 trace.Tracer) *MockTracerProvider_Tracer_Call
- func (_c *MockTracerProvider_Tracer_Call) Run(run func(name string, options ...trace.TracerOption)) *MockTracerProvider_Tracer_Call
- func (_c *MockTracerProvider_Tracer_Call) RunAndReturn(run func(string, ...trace.TracerOption) trace.Tracer) *MockTracerProvider_Tracer_Call
- type MockTracerProvider_tracerProvider_Call
- func (_c *MockTracerProvider_tracerProvider_Call) Return() *MockTracerProvider_tracerProvider_Call
- func (_c *MockTracerProvider_tracerProvider_Call) Run(run func()) *MockTracerProvider_tracerProvider_Call
- func (_c *MockTracerProvider_tracerProvider_Call) RunAndReturn(run func()) *MockTracerProvider_tracerProvider_Call
- type MockTracer_Expecter
- type MockTracer_Start_Call
- func (_c *MockTracer_Start_Call) Return(_a0 context.Context, _a1 trace.Span) *MockTracer_Start_Call
- func (_c *MockTracer_Start_Call) Run(run func(ctx context.Context, spanName string, opts ...trace.SpanStartOption)) *MockTracer_Start_Call
- func (_c *MockTracer_Start_Call) RunAndReturn(...) *MockTracer_Start_Call
- type MockTracer_tracer_Call
- type MockspanOptionFunc
- type MockspanOptionFunc_Execute_Call
- func (_c *MockspanOptionFunc_Execute_Call) Return(_a0 trace.SpanConfig) *MockspanOptionFunc_Execute_Call
- func (_c *MockspanOptionFunc_Execute_Call) Run(run func(_a0 trace.SpanConfig)) *MockspanOptionFunc_Execute_Call
- func (_c *MockspanOptionFunc_Execute_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockspanOptionFunc_Execute_Call
- type MockspanOptionFunc_Expecter
- type MocktracerOptionFunc
- type MocktracerOptionFunc_Execute_Call
- func (_c *MocktracerOptionFunc_Execute_Call) Return(_a0 trace.TracerConfig) *MocktracerOptionFunc_Execute_Call
- func (_c *MocktracerOptionFunc_Execute_Call) Run(run func(_a0 trace.TracerConfig)) *MocktracerOptionFunc_Execute_Call
- func (_c *MocktracerOptionFunc_Execute_Call) RunAndReturn(run func(trace.TracerConfig) trace.TracerConfig) *MocktracerOptionFunc_Execute_Call
- type MocktracerOptionFunc_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEventOption ¶
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 ¶
func (_m *MockEventOption) EXPECT() *MockEventOption_Expecter
type MockEventOption_Expecter ¶
type MockEventOption_Expecter struct {
// contains filtered or unexported fields
}
type MockEventOption_applyEvent_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 (_c *MockEventOption_applyEvent_Call) Return(_a0 trace.EventConfig) *MockEventOption_applyEvent_Call
func (*MockEventOption_applyEvent_Call) Run ¶
func (_c *MockEventOption_applyEvent_Call) Run(run func(_a0 trace.EventConfig)) *MockEventOption_applyEvent_Call
func (*MockEventOption_applyEvent_Call) RunAndReturn ¶
func (_c *MockEventOption_applyEvent_Call) RunAndReturn(run func(trace.EventConfig) trace.EventConfig) *MockEventOption_applyEvent_Call
type MockSpan ¶
MockSpan is an autogenerated mock type for the Span type
func NewMockSpan ¶
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 (*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 ¶
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 ¶
SetAttributes provides a mock function with given fields: kv
func (*MockSpan) SetStatus ¶
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 ¶
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 ¶
func (_m *MockSpanEndEventOption) EXPECT() *MockSpanEndEventOption_Expecter
type MockSpanEndEventOption_Expecter ¶
type MockSpanEndEventOption_Expecter struct {
// contains filtered or unexported fields
}
type MockSpanEndEventOption_applyEvent_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 (_c *MockSpanEndEventOption_applyEvent_Call) Return(_a0 trace.EventConfig) *MockSpanEndEventOption_applyEvent_Call
func (*MockSpanEndEventOption_applyEvent_Call) Run ¶
func (_c *MockSpanEndEventOption_applyEvent_Call) Run(run func(_a0 trace.EventConfig)) *MockSpanEndEventOption_applyEvent_Call
func (*MockSpanEndEventOption_applyEvent_Call) RunAndReturn ¶
func (_c *MockSpanEndEventOption_applyEvent_Call) RunAndReturn(run func(trace.EventConfig) trace.EventConfig) *MockSpanEndEventOption_applyEvent_Call
type MockSpanEndEventOption_applySpanEnd_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 (_c *MockSpanEndEventOption_applySpanEnd_Call) Return(_a0 trace.SpanConfig) *MockSpanEndEventOption_applySpanEnd_Call
func (*MockSpanEndEventOption_applySpanEnd_Call) Run ¶
func (_c *MockSpanEndEventOption_applySpanEnd_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanEndEventOption_applySpanEnd_Call
func (*MockSpanEndEventOption_applySpanEnd_Call) RunAndReturn ¶
func (_c *MockSpanEndEventOption_applySpanEnd_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanEndEventOption_applySpanEnd_Call
type MockSpanEndOption ¶
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 ¶
func (_m *MockSpanEndOption) EXPECT() *MockSpanEndOption_Expecter
type MockSpanEndOption_Expecter ¶
type MockSpanEndOption_Expecter struct {
// contains filtered or unexported fields
}
type MockSpanEndOption_applySpanEnd_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 (_c *MockSpanEndOption_applySpanEnd_Call) Return(_a0 trace.SpanConfig) *MockSpanEndOption_applySpanEnd_Call
func (*MockSpanEndOption_applySpanEnd_Call) Run ¶
func (_c *MockSpanEndOption_applySpanEnd_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanEndOption_applySpanEnd_Call
func (*MockSpanEndOption_applySpanEnd_Call) RunAndReturn ¶
func (_c *MockSpanEndOption_applySpanEnd_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanEndOption_applySpanEnd_Call
type MockSpanEventOption ¶
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 ¶
func (_m *MockSpanEventOption) EXPECT() *MockSpanEventOption_Expecter
type MockSpanEventOption_Expecter ¶
type MockSpanEventOption_Expecter struct {
// contains filtered or unexported fields
}
type MockSpanEventOption_applyEvent_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 (_c *MockSpanEventOption_applyEvent_Call) Return(_a0 trace.EventConfig) *MockSpanEventOption_applyEvent_Call
func (*MockSpanEventOption_applyEvent_Call) Run ¶
func (_c *MockSpanEventOption_applyEvent_Call) Run(run func(_a0 trace.EventConfig)) *MockSpanEventOption_applyEvent_Call
func (*MockSpanEventOption_applyEvent_Call) RunAndReturn ¶
func (_c *MockSpanEventOption_applyEvent_Call) RunAndReturn(run func(trace.EventConfig) trace.EventConfig) *MockSpanEventOption_applyEvent_Call
type MockSpanEventOption_applySpanEnd_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 (_c *MockSpanEventOption_applySpanEnd_Call) Return(_a0 trace.SpanConfig) *MockSpanEventOption_applySpanEnd_Call
func (*MockSpanEventOption_applySpanEnd_Call) Run ¶
func (_c *MockSpanEventOption_applySpanEnd_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanEventOption_applySpanEnd_Call
func (*MockSpanEventOption_applySpanEnd_Call) RunAndReturn ¶
func (_c *MockSpanEventOption_applySpanEnd_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanEventOption_applySpanEnd_Call
type MockSpanEventOption_applySpanStart_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 (_c *MockSpanEventOption_applySpanStart_Call) Return(_a0 trace.SpanConfig) *MockSpanEventOption_applySpanStart_Call
func (*MockSpanEventOption_applySpanStart_Call) Run ¶
func (_c *MockSpanEventOption_applySpanStart_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanEventOption_applySpanStart_Call
func (*MockSpanEventOption_applySpanStart_Call) RunAndReturn ¶
func (_c *MockSpanEventOption_applySpanStart_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanEventOption_applySpanStart_Call
type MockSpanOption ¶
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 ¶
func (_m *MockSpanOption) EXPECT() *MockSpanOption_Expecter
type MockSpanOption_Expecter ¶
type MockSpanOption_Expecter struct {
// contains filtered or unexported fields
}
type MockSpanOption_applySpanEnd_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 (_c *MockSpanOption_applySpanEnd_Call) Return(_a0 trace.SpanConfig) *MockSpanOption_applySpanEnd_Call
func (*MockSpanOption_applySpanEnd_Call) Run ¶
func (_c *MockSpanOption_applySpanEnd_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanOption_applySpanEnd_Call
func (*MockSpanOption_applySpanEnd_Call) RunAndReturn ¶
func (_c *MockSpanOption_applySpanEnd_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanOption_applySpanEnd_Call
type MockSpanOption_applySpanStart_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 (_c *MockSpanOption_applySpanStart_Call) Return(_a0 trace.SpanConfig) *MockSpanOption_applySpanStart_Call
func (*MockSpanOption_applySpanStart_Call) Run ¶
func (_c *MockSpanOption_applySpanStart_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanOption_applySpanStart_Call
func (*MockSpanOption_applySpanStart_Call) RunAndReturn ¶
func (_c *MockSpanOption_applySpanStart_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanOption_applySpanStart_Call
type MockSpanStartEventOption ¶
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 ¶
func (_m *MockSpanStartEventOption) EXPECT() *MockSpanStartEventOption_Expecter
type MockSpanStartEventOption_Expecter ¶
type MockSpanStartEventOption_Expecter struct {
// contains filtered or unexported fields
}
type MockSpanStartEventOption_applyEvent_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 (_c *MockSpanStartEventOption_applyEvent_Call) Return(_a0 trace.EventConfig) *MockSpanStartEventOption_applyEvent_Call
func (*MockSpanStartEventOption_applyEvent_Call) Run ¶
func (_c *MockSpanStartEventOption_applyEvent_Call) Run(run func(_a0 trace.EventConfig)) *MockSpanStartEventOption_applyEvent_Call
func (*MockSpanStartEventOption_applyEvent_Call) RunAndReturn ¶
func (_c *MockSpanStartEventOption_applyEvent_Call) RunAndReturn(run func(trace.EventConfig) trace.EventConfig) *MockSpanStartEventOption_applyEvent_Call
type MockSpanStartEventOption_applySpanStart_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 (_c *MockSpanStartEventOption_applySpanStart_Call) Return(_a0 trace.SpanConfig) *MockSpanStartEventOption_applySpanStart_Call
func (*MockSpanStartEventOption_applySpanStart_Call) Run ¶
func (_c *MockSpanStartEventOption_applySpanStart_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanStartEventOption_applySpanStart_Call
func (*MockSpanStartEventOption_applySpanStart_Call) RunAndReturn ¶
func (_c *MockSpanStartEventOption_applySpanStart_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanStartEventOption_applySpanStart_Call
type MockSpanStartOption ¶
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 ¶
func (_m *MockSpanStartOption) EXPECT() *MockSpanStartOption_Expecter
type MockSpanStartOption_Expecter ¶
type MockSpanStartOption_Expecter struct {
// contains filtered or unexported fields
}
type MockSpanStartOption_applySpanStart_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 (_c *MockSpanStartOption_applySpanStart_Call) Return(_a0 trace.SpanConfig) *MockSpanStartOption_applySpanStart_Call
func (*MockSpanStartOption_applySpanStart_Call) Run ¶
func (_c *MockSpanStartOption_applySpanStart_Call) Run(run func(_a0 trace.SpanConfig)) *MockSpanStartOption_applySpanStart_Call
func (*MockSpanStartOption_applySpanStart_Call) RunAndReturn ¶
func (_c *MockSpanStartOption_applySpanStart_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockSpanStartOption_applySpanStart_Call
type MockSpan_AddEvent_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 (_c *MockSpan_AddEvent_Call) Return() *MockSpan_AddEvent_Call
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 ¶
MockSpan_AddLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddLink'
func (*MockSpan_AddLink_Call) Return ¶
func (_c *MockSpan_AddLink_Call) Return() *MockSpan_AddLink_Call
func (*MockSpan_AddLink_Call) Run ¶
func (_c *MockSpan_AddLink_Call) Run(run func(link trace.Link)) *MockSpan_AddLink_Call
func (*MockSpan_AddLink_Call) RunAndReturn ¶
func (_c *MockSpan_AddLink_Call) RunAndReturn(run func(trace.Link)) *MockSpan_AddLink_Call
type MockSpan_End_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 (*MockSpan_Expecter) AddLink ¶
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 ¶
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 (_c *MockSpan_IsRecording_Call) Return(_a0 bool) *MockSpan_IsRecording_Call
func (*MockSpan_IsRecording_Call) Run ¶
func (_c *MockSpan_IsRecording_Call) Run(run func()) *MockSpan_IsRecording_Call
func (*MockSpan_IsRecording_Call) RunAndReturn ¶
func (_c *MockSpan_IsRecording_Call) RunAndReturn(run func() bool) *MockSpan_IsRecording_Call
type MockSpan_RecordError_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 (_c *MockSpan_RecordError_Call) Return() *MockSpan_RecordError_Call
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 ¶
func (_c *MockSpan_RecordError_Call) RunAndReturn(run func(error, ...trace.EventOption)) *MockSpan_RecordError_Call
type MockSpan_SetAttributes_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 (_c *MockSpan_SetAttributes_Call) Return() *MockSpan_SetAttributes_Call
func (*MockSpan_SetAttributes_Call) Run ¶
func (_c *MockSpan_SetAttributes_Call) Run(run func(kv ...attribute.KeyValue)) *MockSpan_SetAttributes_Call
func (*MockSpan_SetAttributes_Call) RunAndReturn ¶
func (_c *MockSpan_SetAttributes_Call) RunAndReturn(run func(...attribute.KeyValue)) *MockSpan_SetAttributes_Call
type MockSpan_SetName_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 (_c *MockSpan_SetName_Call) Return() *MockSpan_SetName_Call
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 ¶
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 (_c *MockSpan_SetStatus_Call) Return() *MockSpan_SetStatus_Call
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 ¶
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 (_c *MockSpan_SpanContext_Call) Return(_a0 trace.SpanContext) *MockSpan_SpanContext_Call
func (*MockSpan_SpanContext_Call) Run ¶
func (_c *MockSpan_SpanContext_Call) Run(run func()) *MockSpan_SpanContext_Call
func (*MockSpan_SpanContext_Call) RunAndReturn ¶
func (_c *MockSpan_SpanContext_Call) RunAndReturn(run func() trace.SpanContext) *MockSpan_SpanContext_Call
type MockSpan_TracerProvider_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 (_c *MockSpan_TracerProvider_Call) Return(_a0 trace.TracerProvider) *MockSpan_TracerProvider_Call
func (*MockSpan_TracerProvider_Call) Run ¶
func (_c *MockSpan_TracerProvider_Call) Run(run func()) *MockSpan_TracerProvider_Call
func (*MockSpan_TracerProvider_Call) RunAndReturn ¶
func (_c *MockSpan_TracerProvider_Call) RunAndReturn(run func() trace.TracerProvider) *MockSpan_TracerProvider_Call
type MockSpan_span_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 ¶
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
type MockTracerOption ¶
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 ¶
func (_m *MockTracerOption) EXPECT() *MockTracerOption_Expecter
type MockTracerOption_Expecter ¶
type MockTracerOption_Expecter struct {
// contains filtered or unexported fields
}
type MockTracerOption_apply_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 (_c *MockTracerOption_apply_Call) Return(_a0 trace.TracerConfig) *MockTracerOption_apply_Call
func (*MockTracerOption_apply_Call) Run ¶
func (_c *MockTracerOption_apply_Call) Run(run func(_a0 trace.TracerConfig)) *MockTracerOption_apply_Call
func (*MockTracerOption_apply_Call) RunAndReturn ¶
func (_c *MockTracerOption_apply_Call) RunAndReturn(run func(trace.TracerConfig) trace.TracerConfig) *MockTracerOption_apply_Call
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 (_m *MockTracerProvider) EXPECT() *MockTracerProvider_Expecter
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 ¶
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 (_c *MockTracerProvider_Tracer_Call) Return(_a0 trace.Tracer) *MockTracerProvider_Tracer_Call
func (*MockTracerProvider_Tracer_Call) Run ¶
func (_c *MockTracerProvider_Tracer_Call) Run(run func(name string, options ...trace.TracerOption)) *MockTracerProvider_Tracer_Call
func (*MockTracerProvider_Tracer_Call) RunAndReturn ¶
func (_c *MockTracerProvider_Tracer_Call) RunAndReturn(run func(string, ...trace.TracerOption) trace.Tracer) *MockTracerProvider_Tracer_Call
type MockTracerProvider_tracerProvider_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 (_c *MockTracerProvider_tracerProvider_Call) Return() *MockTracerProvider_tracerProvider_Call
func (*MockTracerProvider_tracerProvider_Call) Run ¶
func (_c *MockTracerProvider_tracerProvider_Call) Run(run func()) *MockTracerProvider_tracerProvider_Call
func (*MockTracerProvider_tracerProvider_Call) RunAndReturn ¶
func (_c *MockTracerProvider_tracerProvider_Call) RunAndReturn(run func()) *MockTracerProvider_tracerProvider_Call
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 ¶
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 (_c *MockTracer_Start_Call) Return(_a0 context.Context, _a1 trace.Span) *MockTracer_Start_Call
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 ¶
func (_c *MockTracer_Start_Call) RunAndReturn(run func(context.Context, string, ...trace.SpanStartOption) (context.Context, trace.Span)) *MockTracer_Start_Call
type MockTracer_tracer_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 (_c *MockTracer_tracer_Call) Return() *MockTracer_tracer_Call
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 ¶
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 (_m *MockspanOptionFunc) EXPECT() *MockspanOptionFunc_Expecter
func (*MockspanOptionFunc) Execute ¶
func (_m *MockspanOptionFunc) Execute(_a0 trace.SpanConfig) trace.SpanConfig
Execute provides a mock function with given fields: _a0
type MockspanOptionFunc_Execute_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 (_c *MockspanOptionFunc_Execute_Call) Return(_a0 trace.SpanConfig) *MockspanOptionFunc_Execute_Call
func (*MockspanOptionFunc_Execute_Call) Run ¶
func (_c *MockspanOptionFunc_Execute_Call) Run(run func(_a0 trace.SpanConfig)) *MockspanOptionFunc_Execute_Call
func (*MockspanOptionFunc_Execute_Call) RunAndReturn ¶
func (_c *MockspanOptionFunc_Execute_Call) RunAndReturn(run func(trace.SpanConfig) trace.SpanConfig) *MockspanOptionFunc_Execute_Call
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 ¶
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 (_m *MocktracerOptionFunc) EXPECT() *MocktracerOptionFunc_Expecter
func (*MocktracerOptionFunc) Execute ¶
func (_m *MocktracerOptionFunc) Execute(_a0 trace.TracerConfig) trace.TracerConfig
Execute provides a mock function with given fields: _a0
type MocktracerOptionFunc_Execute_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 (_c *MocktracerOptionFunc_Execute_Call) Return(_a0 trace.TracerConfig) *MocktracerOptionFunc_Execute_Call
func (*MocktracerOptionFunc_Execute_Call) Run ¶
func (_c *MocktracerOptionFunc_Execute_Call) Run(run func(_a0 trace.TracerConfig)) *MocktracerOptionFunc_Execute_Call
func (*MocktracerOptionFunc_Execute_Call) RunAndReturn ¶
func (_c *MocktracerOptionFunc_Execute_Call) RunAndReturn(run func(trace.TracerConfig) trace.TracerConfig) *MocktracerOptionFunc_Execute_Call
type MocktracerOptionFunc_Expecter ¶
type MocktracerOptionFunc_Expecter struct {
// contains filtered or unexported fields
}
func (*MocktracerOptionFunc_Expecter) Execute ¶
func (_e *MocktracerOptionFunc_Expecter) Execute(_a0 interface{}) *MocktracerOptionFunc_Execute_Call
Execute is a helper method to define mock.On call
- _a0 trace.TracerConfig