mocks

package
v1.64.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *Factory

NewFactory creates a new instance of Factory. 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 (*Factory) Close

func (_m *Factory) Close(ctx context.Context) error

Close provides a mock function with given fields: ctx

func (*Factory) CreateTraceReader

func (_m *Factory) CreateTraceReader() (tracestore.Reader, error)

CreateTraceReader provides a mock function with no fields

func (*Factory) CreateTraceWriter

func (_m *Factory) CreateTraceWriter() (tracestore.Writer, error)

CreateTraceWriter provides a mock function with no fields

func (*Factory) Initialize

func (_m *Factory) Initialize(ctx context.Context) error

Initialize provides a mock function with given fields: ctx

type Reader

type Reader struct {
	mock.Mock
}

Reader is an autogenerated mock type for the Reader type

func NewReader

func NewReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *Reader

NewReader creates a new instance of Reader. 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 (*Reader) FindTraceIDs

func (_m *Reader) FindTraceIDs(ctx context.Context, query tracestore.TraceQueryParameters) ([]pcommon.TraceID, error)

FindTraceIDs provides a mock function with given fields: ctx, query

func (*Reader) FindTraces

func (_m *Reader) FindTraces(ctx context.Context, query tracestore.TraceQueryParameters) ([]ptrace.Traces, error)

FindTraces provides a mock function with given fields: ctx, query

func (*Reader) GetOperations

GetOperations provides a mock function with given fields: ctx, query

func (*Reader) GetServices

func (_m *Reader) GetServices(ctx context.Context) ([]string, error)

GetServices provides a mock function with given fields: ctx

func (*Reader) GetTrace

func (_m *Reader) GetTrace(ctx context.Context, traceID pcommon.TraceID) (ptrace.Traces, error)

GetTrace provides a mock function with given fields: ctx, traceID

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func NewWriter

func NewWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Writer

NewWriter creates a new instance of Writer. 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 (*Writer) WriteTraces

func (_m *Writer) WriteTraces(ctx context.Context, td ptrace.Traces) error

WriteTraces provides a mock function with given fields: ctx, td

Jump to

Keyboard shortcuts

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