mocks

package
v1.17.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*PlatformType) Disconnect added in v1.17.0

func (_m *PlatformType) Disconnect(ctx context.Context) error

Disconnect provides a mock function with given fields: ctx

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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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

Jump to

Keyboard shortcuts

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