mocks

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

DO NOT EDIT.

DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContextWithMockSpan

func NewContextWithMockSpan(ctx context.Context, traceID, spanID uint64) context.Context

NewContextWithMockSpan is test helper.

func NewTracerWithRecorder

func NewTracerWithRecorder() (trace.Tracer, *tracetest.SpanRecorder)

Types

type MockLogger

type MockLogger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

MockLogger is logger wrapped for tests.

func NewMockLogger

func NewMockLogger() *MockLogger

func (*MockLogger) String

func (m *MockLogger) String() string

type MockReadOnlySpan

type MockReadOnlySpan struct {
	tracesdk.ReadWriteSpan // DO NOT EDIT.
	// contains filtered or unexported fields
}

MockReadOnlySpan is a mock of ReadOnlySpan interface.

func NewMockReadOnlySpan

func NewMockReadOnlySpan(ctrl *gomock.Controller) *MockReadOnlySpan

NewMockReadOnlySpan creates a new mock instance.

func (*MockReadOnlySpan) Attributes

func (m *MockReadOnlySpan) Attributes() []attribute.KeyValue

Attributes mocks base method.

func (*MockReadOnlySpan) ChildSpanCount

func (m *MockReadOnlySpan) ChildSpanCount() int

ChildSpanCount mocks base method.

func (*MockReadOnlySpan) DroppedAttributes

func (m *MockReadOnlySpan) DroppedAttributes() int

DroppedAttributes mocks base method.

func (*MockReadOnlySpan) DroppedEvents

func (m *MockReadOnlySpan) DroppedEvents() int

DroppedEvents mocks base method.

func (m *MockReadOnlySpan) DroppedLinks() int

DroppedLinks mocks base method.

func (*MockReadOnlySpan) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockReadOnlySpan) EndTime

func (m *MockReadOnlySpan) EndTime() time.Time

EndTime mocks base method.

func (*MockReadOnlySpan) Events

func (m *MockReadOnlySpan) Events() []trace.Event

Events mocks base method.

func (*MockReadOnlySpan) InstrumentationLibrary

func (m *MockReadOnlySpan) InstrumentationLibrary() instrumentation.Library

InstrumentationLibrary mocks base method.

func (m *MockReadOnlySpan) Links() []trace.Link

Links mocks base method.

func (*MockReadOnlySpan) Name

func (m *MockReadOnlySpan) Name() string

Name mocks base method.

func (*MockReadOnlySpan) Parent

func (m *MockReadOnlySpan) Parent() trace0.SpanContext

Parent mocks base method.

func (*MockReadOnlySpan) Resource

func (m *MockReadOnlySpan) Resource() *resource.Resource

Resource mocks base method.

func (*MockReadOnlySpan) SpanContext

func (m *MockReadOnlySpan) SpanContext() trace0.SpanContext

SpanContext mocks base method.

func (*MockReadOnlySpan) SpanKind

func (m *MockReadOnlySpan) SpanKind() trace0.SpanKind

SpanKind mocks base method.

func (*MockReadOnlySpan) StartTime

func (m *MockReadOnlySpan) StartTime() time.Time

StartTime mocks base method.

func (*MockReadOnlySpan) Status

func (m *MockReadOnlySpan) Status() trace.Status

Status mocks base method.

type MockReadOnlySpanMockRecorder

type MockReadOnlySpanMockRecorder struct {
	tracesdk.ReadWriteSpan // DO NOT EDIT.
	// contains filtered or unexported fields
}

MockReadOnlySpanMockRecorder is the mock recorder for MockReadOnlySpan.

func (*MockReadOnlySpanMockRecorder) Attributes

func (mr *MockReadOnlySpanMockRecorder) Attributes() *gomock.Call

Attributes indicates an expected call of Attributes.

func (*MockReadOnlySpanMockRecorder) ChildSpanCount

func (mr *MockReadOnlySpanMockRecorder) ChildSpanCount() *gomock.Call

ChildSpanCount indicates an expected call of ChildSpanCount.

func (*MockReadOnlySpanMockRecorder) DroppedAttributes

func (mr *MockReadOnlySpanMockRecorder) DroppedAttributes() *gomock.Call

DroppedAttributes indicates an expected call of DroppedAttributes.

func (*MockReadOnlySpanMockRecorder) DroppedEvents

func (mr *MockReadOnlySpanMockRecorder) DroppedEvents() *gomock.Call

DroppedEvents indicates an expected call of DroppedEvents.

func (mr *MockReadOnlySpanMockRecorder) DroppedLinks() *gomock.Call

DroppedLinks indicates an expected call of DroppedLinks.

func (*MockReadOnlySpanMockRecorder) EndTime

func (mr *MockReadOnlySpanMockRecorder) EndTime() *gomock.Call

EndTime indicates an expected call of EndTime.

func (*MockReadOnlySpanMockRecorder) Events

Events indicates an expected call of Events.

func (*MockReadOnlySpanMockRecorder) InstrumentationLibrary

func (mr *MockReadOnlySpanMockRecorder) InstrumentationLibrary() *gomock.Call

InstrumentationLibrary indicates an expected call of InstrumentationLibrary.

Links indicates an expected call of Links.

func (*MockReadOnlySpanMockRecorder) Name

Name indicates an expected call of Name.

func (*MockReadOnlySpanMockRecorder) Parent

Parent indicates an expected call of Parent.

func (*MockReadOnlySpanMockRecorder) Resource

func (mr *MockReadOnlySpanMockRecorder) Resource() *gomock.Call

Resource indicates an expected call of Resource.

func (*MockReadOnlySpanMockRecorder) SpanContext

func (mr *MockReadOnlySpanMockRecorder) SpanContext() *gomock.Call

SpanContext indicates an expected call of SpanContext.

func (*MockReadOnlySpanMockRecorder) SpanKind

func (mr *MockReadOnlySpanMockRecorder) SpanKind() *gomock.Call

SpanKind indicates an expected call of SpanKind.

func (*MockReadOnlySpanMockRecorder) StartTime

func (mr *MockReadOnlySpanMockRecorder) StartTime() *gomock.Call

StartTime indicates an expected call of StartTime.

func (*MockReadOnlySpanMockRecorder) Status

Status indicates an expected call of Status.

type MockReadWriteSpan

type MockReadWriteSpan struct {
	tracesdk.ReadWriteSpan // DO NOT EDIT.
	// contains filtered or unexported fields
}

MockReadWriteSpan is a mock of ReadWriteSpan interface.

func NewMockReadWriteSpan

func NewMockReadWriteSpan(ctrl *gomock.Controller) *MockReadWriteSpan

NewMockReadWriteSpan creates a new mock instance.

func (*MockReadWriteSpan) AddEvent

func (m *MockReadWriteSpan) AddEvent(arg0 string, arg1 ...trace0.EventOption)

AddEvent mocks base method.

func (*MockReadWriteSpan) Attributes

func (m *MockReadWriteSpan) Attributes() []attribute.KeyValue

Attributes mocks base method.

func (*MockReadWriteSpan) ChildSpanCount

func (m *MockReadWriteSpan) ChildSpanCount() int

ChildSpanCount mocks base method.

func (*MockReadWriteSpan) DroppedAttributes

func (m *MockReadWriteSpan) DroppedAttributes() int

DroppedAttributes mocks base method.

func (*MockReadWriteSpan) DroppedEvents

func (m *MockReadWriteSpan) DroppedEvents() int

DroppedEvents mocks base method.

func (m *MockReadWriteSpan) DroppedLinks() int

DroppedLinks mocks base method.

func (*MockReadWriteSpan) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockReadWriteSpan) End

func (m *MockReadWriteSpan) End(arg0 ...trace0.SpanEndOption)

End mocks base method.

func (*MockReadWriteSpan) EndTime

func (m *MockReadWriteSpan) EndTime() time.Time

EndTime mocks base method.

func (*MockReadWriteSpan) Events

func (m *MockReadWriteSpan) Events() []trace.Event

Events mocks base method.

func (*MockReadWriteSpan) InstrumentationLibrary

func (m *MockReadWriteSpan) InstrumentationLibrary() instrumentation.Library

InstrumentationLibrary mocks base method.

func (*MockReadWriteSpan) IsRecording

func (m *MockReadWriteSpan) IsRecording() bool

IsRecording mocks base method.

func (m *MockReadWriteSpan) Links() []trace.Link

Links mocks base method.

func (*MockReadWriteSpan) Name

func (m *MockReadWriteSpan) Name() string

Name mocks base method.

func (*MockReadWriteSpan) Parent

func (m *MockReadWriteSpan) Parent() trace0.SpanContext

Parent mocks base method.

func (*MockReadWriteSpan) RecordError

func (m *MockReadWriteSpan) RecordError(arg0 error, arg1 ...trace0.EventOption)

RecordError mocks base method.

func (*MockReadWriteSpan) Resource

func (m *MockReadWriteSpan) Resource() *resource.Resource

Resource mocks base method.

func (*MockReadWriteSpan) SetAttributes

func (m *MockReadWriteSpan) SetAttributes(arg0 ...attribute.KeyValue)

SetAttributes mocks base method.

func (*MockReadWriteSpan) SetName

func (m *MockReadWriteSpan) SetName(arg0 string)

SetName mocks base method.

func (*MockReadWriteSpan) SetStatus

func (m *MockReadWriteSpan) SetStatus(arg0 codes.Code, arg1 string)

SetStatus mocks base method.

func (*MockReadWriteSpan) SpanContext

func (m *MockReadWriteSpan) SpanContext() trace0.SpanContext

SpanContext mocks base method.

func (*MockReadWriteSpan) SpanKind

func (m *MockReadWriteSpan) SpanKind() trace0.SpanKind

SpanKind mocks base method.

func (*MockReadWriteSpan) StartTime

func (m *MockReadWriteSpan) StartTime() time.Time

StartTime mocks base method.

func (*MockReadWriteSpan) Status

func (m *MockReadWriteSpan) Status() trace.Status

Status mocks base method.

func (*MockReadWriteSpan) TracerProvider

func (m *MockReadWriteSpan) TracerProvider() trace0.TracerProvider

TracerProvider mocks base method.

type MockReadWriteSpanMockRecorder

type MockReadWriteSpanMockRecorder struct {
	tracesdk.ReadWriteSpan // DO NOT EDIT.
	// contains filtered or unexported fields
}

MockReadWriteSpanMockRecorder is the mock recorder for MockReadWriteSpan.

func (*MockReadWriteSpanMockRecorder) AddEvent

func (mr *MockReadWriteSpanMockRecorder) AddEvent(arg0 interface{}, arg1 ...interface{}) *gomock.Call

AddEvent indicates an expected call of AddEvent.

func (*MockReadWriteSpanMockRecorder) Attributes

func (mr *MockReadWriteSpanMockRecorder) Attributes() *gomock.Call

Attributes indicates an expected call of Attributes.

func (*MockReadWriteSpanMockRecorder) ChildSpanCount

func (mr *MockReadWriteSpanMockRecorder) ChildSpanCount() *gomock.Call

ChildSpanCount indicates an expected call of ChildSpanCount.

func (*MockReadWriteSpanMockRecorder) DroppedAttributes

func (mr *MockReadWriteSpanMockRecorder) DroppedAttributes() *gomock.Call

DroppedAttributes indicates an expected call of DroppedAttributes.

func (*MockReadWriteSpanMockRecorder) DroppedEvents

func (mr *MockReadWriteSpanMockRecorder) DroppedEvents() *gomock.Call

DroppedEvents indicates an expected call of DroppedEvents.

func (mr *MockReadWriteSpanMockRecorder) DroppedLinks() *gomock.Call

DroppedLinks indicates an expected call of DroppedLinks.

func (*MockReadWriteSpanMockRecorder) End

func (mr *MockReadWriteSpanMockRecorder) End(arg0 ...interface{}) *gomock.Call

End indicates an expected call of End.

func (*MockReadWriteSpanMockRecorder) EndTime

func (mr *MockReadWriteSpanMockRecorder) EndTime() *gomock.Call

EndTime indicates an expected call of EndTime.

func (*MockReadWriteSpanMockRecorder) Events

Events indicates an expected call of Events.

func (*MockReadWriteSpanMockRecorder) InstrumentationLibrary

func (mr *MockReadWriteSpanMockRecorder) InstrumentationLibrary() *gomock.Call

InstrumentationLibrary indicates an expected call of InstrumentationLibrary.

func (*MockReadWriteSpanMockRecorder) IsRecording

func (mr *MockReadWriteSpanMockRecorder) IsRecording() *gomock.Call

IsRecording indicates an expected call of IsRecording.

Links indicates an expected call of Links.

func (*MockReadWriteSpanMockRecorder) Name

Name indicates an expected call of Name.

func (*MockReadWriteSpanMockRecorder) Parent

Parent indicates an expected call of Parent.

func (*MockReadWriteSpanMockRecorder) RecordError

func (mr *MockReadWriteSpanMockRecorder) RecordError(arg0 interface{}, arg1 ...interface{}) *gomock.Call

RecordError indicates an expected call of RecordError.

func (*MockReadWriteSpanMockRecorder) Resource

func (mr *MockReadWriteSpanMockRecorder) Resource() *gomock.Call

Resource indicates an expected call of Resource.

func (*MockReadWriteSpanMockRecorder) SetAttributes

func (mr *MockReadWriteSpanMockRecorder) SetAttributes(arg0 ...interface{}) *gomock.Call

SetAttributes indicates an expected call of SetAttributes.

func (*MockReadWriteSpanMockRecorder) SetName

func (mr *MockReadWriteSpanMockRecorder) SetName(arg0 interface{}) *gomock.Call

SetName indicates an expected call of SetName.

func (*MockReadWriteSpanMockRecorder) SetStatus

func (mr *MockReadWriteSpanMockRecorder) SetStatus(arg0, arg1 interface{}) *gomock.Call

SetStatus indicates an expected call of SetStatus.

func (*MockReadWriteSpanMockRecorder) SpanContext

func (mr *MockReadWriteSpanMockRecorder) SpanContext() *gomock.Call

SpanContext indicates an expected call of SpanContext.

func (*MockReadWriteSpanMockRecorder) SpanKind

func (mr *MockReadWriteSpanMockRecorder) SpanKind() *gomock.Call

SpanKind indicates an expected call of SpanKind.

func (*MockReadWriteSpanMockRecorder) StartTime

func (mr *MockReadWriteSpanMockRecorder) StartTime() *gomock.Call

StartTime indicates an expected call of StartTime.

func (*MockReadWriteSpanMockRecorder) Status

Status indicates an expected call of Status.

func (*MockReadWriteSpanMockRecorder) TracerProvider

func (mr *MockReadWriteSpanMockRecorder) TracerProvider() *gomock.Call

TracerProvider indicates an expected call of TracerProvider.

type MockSpanProcessor

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

MockSpanProcessor is a mock of SpanProcessor interface.

func NewMockSpanProcessor

func NewMockSpanProcessor(ctrl *gomock.Controller) *MockSpanProcessor

NewMockSpanProcessor creates a new mock instance.

func (*MockSpanProcessor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSpanProcessor) ForceFlush

func (m *MockSpanProcessor) ForceFlush(arg0 context.Context) error

ForceFlush mocks base method.

func (*MockSpanProcessor) OnEnd

func (m *MockSpanProcessor) OnEnd(arg0 trace.ReadOnlySpan)

OnEnd mocks base method.

func (*MockSpanProcessor) OnStart

func (m *MockSpanProcessor) OnStart(arg0 context.Context, arg1 trace.ReadWriteSpan)

OnStart mocks base method.

func (*MockSpanProcessor) Shutdown

func (m *MockSpanProcessor) Shutdown(arg0 context.Context) error

Shutdown mocks base method.

type MockSpanProcessorMockRecorder

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

MockSpanProcessorMockRecorder is the mock recorder for MockSpanProcessor.

func (*MockSpanProcessorMockRecorder) ForceFlush

func (mr *MockSpanProcessorMockRecorder) ForceFlush(arg0 interface{}) *gomock.Call

ForceFlush indicates an expected call of ForceFlush.

func (*MockSpanProcessorMockRecorder) OnEnd

func (mr *MockSpanProcessorMockRecorder) OnEnd(arg0 interface{}) *gomock.Call

OnEnd indicates an expected call of OnEnd.

func (*MockSpanProcessorMockRecorder) OnStart

func (mr *MockSpanProcessorMockRecorder) OnStart(arg0, arg1 interface{}) *gomock.Call

OnStart indicates an expected call of OnStart.

func (*MockSpanProcessorMockRecorder) Shutdown

func (mr *MockSpanProcessorMockRecorder) Shutdown(arg0 interface{}) *gomock.Call

Shutdown indicates an expected call of Shutdown.

Jump to

Keyboard shortcuts

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