mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockErrorReporter added in v0.4.0

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

MockErrorReporter is a mock of ErrorReporter interface.

func NewMockErrorReporter added in v0.4.0

func NewMockErrorReporter(ctrl *gomock.Controller) *MockErrorReporter

NewMockErrorReporter creates a new mock instance.

func (*MockErrorReporter) CaptureError added in v0.4.0

func (m *MockErrorReporter) CaptureError(err error, options observability.ErrorReporterOptions) bool

CaptureError mocks base method.

func (*MockErrorReporter) EXPECT added in v0.4.0

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

func (*MockErrorReporter) FlushErrorReporting added in v0.4.0

func (m *MockErrorReporter) FlushErrorReporting()

FlushErrorReporting mocks base method.

type MockErrorReporterMockRecorder added in v0.4.0

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

MockErrorReporterMockRecorder is the mock recorder for MockErrorReporter.

func (*MockErrorReporterMockRecorder) CaptureError added in v0.4.0

func (mr *MockErrorReporterMockRecorder) CaptureError(err, options interface{}) *gomock.Call

CaptureError indicates an expected call of CaptureError.

func (*MockErrorReporterMockRecorder) FlushErrorReporting added in v0.4.0

func (mr *MockErrorReporterMockRecorder) FlushErrorReporting() *gomock.Call

FlushErrorReporting indicates an expected call of FlushErrorReporting.

type MockInstrumentor

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

MockInstrumentor is a mock of Instrumentor interface.

func NewMockInstrumentor

func NewMockInstrumentor(ctrl *gomock.Controller) *MockInstrumentor

NewMockInstrumentor creates a new mock instance.

func (*MockInstrumentor) EXPECT

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

func (*MockInstrumentor) Finish

func (m *MockInstrumentor) Finish(span observability.Span)

Finish mocks base method.

func (*MockInstrumentor) NewTransaction

func (m *MockInstrumentor) NewTransaction(ctx context.Context, txName, operation string) observability.Span

NewTransaction mocks base method.

func (*MockInstrumentor) StartSpan

func (m *MockInstrumentor) StartSpan(ctx context.Context, operation string) observability.Span

StartSpan mocks base method.

type MockInstrumentorMockRecorder

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

MockInstrumentorMockRecorder is the mock recorder for MockInstrumentor.

func (*MockInstrumentorMockRecorder) Finish

func (mr *MockInstrumentorMockRecorder) Finish(span interface{}) *gomock.Call

Finish indicates an expected call of Finish.

func (*MockInstrumentorMockRecorder) NewTransaction

func (mr *MockInstrumentorMockRecorder) NewTransaction(ctx, txName, operation interface{}) *gomock.Call

NewTransaction indicates an expected call of NewTransaction.

func (*MockInstrumentorMockRecorder) StartSpan

func (mr *MockInstrumentorMockRecorder) StartSpan(ctx, operation interface{}) *gomock.Call

StartSpan indicates an expected call of StartSpan.

type MockSpan

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

MockSpan is a mock of Span interface.

func NewMockSpan

func NewMockSpan(ctrl *gomock.Controller) *MockSpan

NewMockSpan creates a new mock instance.

func (*MockSpan) Context

func (m *MockSpan) Context() context.Context

Context mocks base method.

func (*MockSpan) EXPECT

func (m *MockSpan) EXPECT() *MockSpanMockRecorder

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

func (*MockSpan) Finish

func (m *MockSpan) Finish()

Finish mocks base method.

func (*MockSpan) GetDurationMs

func (m *MockSpan) GetDurationMs() int64

GetDurationMs mocks base method.

func (*MockSpan) GetOperation

func (m *MockSpan) GetOperation() string

GetOperation mocks base method.

func (*MockSpan) GetTraceId

func (m *MockSpan) GetTraceId() string

GetTraceId mocks base method.

func (*MockSpan) GetTxName

func (m *MockSpan) GetTxName() string

GetTxName mocks base method.

func (*MockSpan) SetTransactionName

func (m *MockSpan) SetTransactionName(name string)

SetTransactionName mocks base method.

func (*MockSpan) StartSpan

func (m *MockSpan) StartSpan(ctx context.Context)

StartSpan mocks base method.

type MockSpanMockRecorder

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

MockSpanMockRecorder is the mock recorder for MockSpan.

func (*MockSpanMockRecorder) Context

func (mr *MockSpanMockRecorder) Context() *gomock.Call

Context indicates an expected call of Context.

func (*MockSpanMockRecorder) Finish

func (mr *MockSpanMockRecorder) Finish() *gomock.Call

Finish indicates an expected call of Finish.

func (*MockSpanMockRecorder) GetDurationMs

func (mr *MockSpanMockRecorder) GetDurationMs() *gomock.Call

GetDurationMs indicates an expected call of GetDurationMs.

func (*MockSpanMockRecorder) GetOperation

func (mr *MockSpanMockRecorder) GetOperation() *gomock.Call

GetOperation indicates an expected call of GetOperation.

func (*MockSpanMockRecorder) GetTraceId

func (mr *MockSpanMockRecorder) GetTraceId() *gomock.Call

GetTraceId indicates an expected call of GetTraceId.

func (*MockSpanMockRecorder) GetTxName

func (mr *MockSpanMockRecorder) GetTxName() *gomock.Call

GetTxName indicates an expected call of GetTxName.

func (*MockSpanMockRecorder) SetTransactionName

func (mr *MockSpanMockRecorder) SetTransactionName(name interface{}) *gomock.Call

SetTransactionName indicates an expected call of SetTransactionName.

func (*MockSpanMockRecorder) StartSpan

func (mr *MockSpanMockRecorder) StartSpan(ctx interface{}) *gomock.Call

StartSpan indicates an expected call of StartSpan.

Jump to

Keyboard shortcuts

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