mocks

package
v0.0.0-...-fb8dd36 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TraceStore

type TraceStore struct {
	mock.Mock
}

TraceStore is an autogenerated mock type for the TraceStore type

func NewTraceStore

func NewTraceStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *TraceStore

NewTraceStore creates a new instance of TraceStore. 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 (*TraceStore) CommitNumberOfTileStart

func (_m *TraceStore) CommitNumberOfTileStart(commitNumber types.CommitNumber) types.CommitNumber

CommitNumberOfTileStart provides a mock function with given fields: commitNumber

func (*TraceStore) GetLastNSources

func (_m *TraceStore) GetLastNSources(ctx context.Context, traceID string, n int) ([]tracestore.Source, error)

GetLastNSources provides a mock function with given fields: ctx, traceID, n

func (*TraceStore) GetLatestTile

func (_m *TraceStore) GetLatestTile(_a0 context.Context) (types.TileNumber, error)

GetLatestTile provides a mock function with given fields: _a0

func (*TraceStore) GetParamSet

func (_m *TraceStore) GetParamSet(ctx context.Context, tileNumber types.TileNumber) (paramtools.ReadOnlyParamSet, error)

GetParamSet provides a mock function with given fields: ctx, tileNumber

func (*TraceStore) GetSource

func (_m *TraceStore) GetSource(ctx context.Context, commitNumber types.CommitNumber, traceId string) (string, error)

GetSource provides a mock function with given fields: ctx, commitNumber, traceId

func (*TraceStore) GetTraceIDsBySource

func (_m *TraceStore) GetTraceIDsBySource(ctx context.Context, sourceFilename string, tileNumber types.TileNumber) ([]string, error)

GetTraceIDsBySource provides a mock function with given fields: ctx, sourceFilename, tileNumber

func (*TraceStore) OffsetFromCommitNumber

func (_m *TraceStore) OffsetFromCommitNumber(commitNumber types.CommitNumber) int32

OffsetFromCommitNumber provides a mock function with given fields: commitNumber

func (*TraceStore) QueryTraces

func (_m *TraceStore) QueryTraces(ctx context.Context, tileNumber types.TileNumber, q *query.Query) (types.TraceSet, []provider.Commit, error)

QueryTraces provides a mock function with given fields: ctx, tileNumber, q

func (*TraceStore) QueryTracesIDOnly

func (_m *TraceStore) QueryTracesIDOnly(ctx context.Context, tileNumber types.TileNumber, q *query.Query) (<-chan paramtools.Params, error)

QueryTracesIDOnly provides a mock function with given fields: ctx, tileNumber, q

func (*TraceStore) ReadTraces

func (_m *TraceStore) ReadTraces(ctx context.Context, tileNumber types.TileNumber, keys []string) (types.TraceSet, []provider.Commit, error)

ReadTraces provides a mock function with given fields: ctx, tileNumber, keys

func (*TraceStore) ReadTracesForCommitRange

func (_m *TraceStore) ReadTracesForCommitRange(ctx context.Context, keys []string, begin types.CommitNumber, end types.CommitNumber) (types.TraceSet, []provider.Commit, error)

ReadTracesForCommitRange provides a mock function with given fields: ctx, keys, begin, end

func (*TraceStore) StartBackgroundMetricsGathering

func (_m *TraceStore) StartBackgroundMetricsGathering()

StartBackgroundMetricsGathering provides a mock function with given fields:

func (*TraceStore) TileNumber

func (_m *TraceStore) TileNumber(commitNumber types.CommitNumber) types.TileNumber

TileNumber provides a mock function with given fields: commitNumber

func (*TraceStore) TileSize

func (_m *TraceStore) TileSize() int32

TileSize provides a mock function with given fields:

func (*TraceStore) TraceCount

func (_m *TraceStore) TraceCount(ctx context.Context, tileNumber types.TileNumber) (int64, error)

TraceCount provides a mock function with given fields: ctx, tileNumber

func (*TraceStore) WriteTraces

func (_m *TraceStore) WriteTraces(ctx context.Context, commitNumber types.CommitNumber, params []paramtools.Params, values []float32, paramset paramtools.ParamSet, source string, timestamp time.Time) error

WriteTraces provides a mock function with given fields: ctx, commitNumber, params, values, paramset, source, timestamp

Jump to

Keyboard shortcuts

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