mocks

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinishOptionFunc added in v1.10.6

type FinishOptionFunc struct {
	mock.Mock
}

FinishOptionFunc is an autogenerated mock type for the FinishOptionFunc type

func NewFinishOptionFunc added in v1.11.21

func NewFinishOptionFunc(t mockConstructorTestingTNewFinishOptionFunc) *FinishOptionFunc

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

func (*FinishOptionFunc) Execute added in v1.10.6

func (_m *FinishOptionFunc) Execute(_a0 *tracer.FinishOption)

Execute provides a mock function with given fields: _a0

type OptionFunc

type OptionFunc struct {
	mock.Mock
}

OptionFunc is an autogenerated mock type for the OptionFunc type

func NewOptionFunc added in v1.11.21

func NewOptionFunc(t mockConstructorTestingTNewOptionFunc) *OptionFunc

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

func (*OptionFunc) Execute

func (_m *OptionFunc) Execute(_a0 *tracer.Option)

Execute provides a mock function with given fields: _a0

type PlatformType added in v1.9.3

type PlatformType struct {
	mock.Mock
}

PlatformType is an autogenerated mock type for the PlatformType type

func NewPlatformType added in v1.11.21

func NewPlatformType(t mockConstructorTestingTNewPlatformType) *PlatformType

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

func (*PlatformType) GetTraceID added in v1.10.6

func (_m *PlatformType) GetTraceID(ctx context.Context) string

GetTraceID provides a mock function with given fields: ctx

func (*PlatformType) GetTraceURL added in v1.10.6

func (_m *PlatformType) GetTraceURL(ctx context.Context) string

GetTraceURL provides a mock function with given fields: ctx

func (*PlatformType) StartRootSpan added in v1.9.3

func (_m *PlatformType) StartRootSpan(ctx context.Context, operationName string, header map[string]string) tracer.Tracer

StartRootSpan provides a mock function with given fields: ctx, operationName, header

func (*PlatformType) StartSpan added in v1.9.3

func (_m *PlatformType) StartSpan(ctx context.Context, opName string) tracer.Tracer

StartSpan provides a mock function with given fields: ctx, opName

type Tracer added in v1.10.6

type Tracer struct {
	mock.Mock
}

Tracer is an autogenerated mock type for the Tracer type

func NewTracer added in v1.11.19

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) Context added in v1.10.6

func (_m *Tracer) Context() context.Context

Context provides a mock function with given fields:

func (*Tracer) Finish added in v1.10.6

func (_m *Tracer) Finish(opts ...tracer.FinishOptionFunc)

Finish provides a mock function with given fields: opts

func (*Tracer) InjectRequestHeader added in v1.10.6

func (_m *Tracer) InjectRequestHeader(header map[string]string)

InjectRequestHeader provides a mock function with given fields: header

func (*Tracer) Log added in v1.10.6

func (_m *Tracer) Log(key string, value interface{})

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

func (*Tracer) NewContext added in v1.11.19

func (_m *Tracer) NewContext() context.Context

NewContext provides a mock function with given fields:

func (*Tracer) SetError added in v1.10.6

func (_m *Tracer) SetError(err error)

SetError provides a mock function with given fields: err

func (*Tracer) SetTag added in v1.10.6

func (_m *Tracer) SetTag(key string, value interface{})

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

func (*Tracer) Tags added in v1.10.6

func (_m *Tracer) Tags() map[string]interface{}

Tags provides a mock function with given fields:

Jump to

Keyboard shortcuts

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