seriesiter

package
v0.15.17-hotfix.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSingleSampleTagIterator

func GenerateSingleSampleTagIterator(ctrl *gomock.Controller, tag ident.Tag) ident.TagIterator

GenerateSingleSampleTagIterator generates a new tag iterator

func GenerateTag

func GenerateTag() ident.Tag

GenerateTag generates a new tag

func NewMockSeriesIterSlice

func NewMockSeriesIterSlice(
	ctrl *gomock.Controller,
	tagGenerator func() ident.TagIterator,
	len int,
	numValues int,
) []encoding.SeriesIterator

NewMockSeriesIterSlice generates a slice of mock series iterators

func NewMockSeriesIterator added in v0.7.1

func NewMockSeriesIterator(ctrl *gomock.Controller, tagGenerator func() ident.TagIterator, numValues int) *encoding.MockSeriesIterator

NewMockSeriesIterator constructs a MockSeriesIterator return numValues datapoints, using tagGenerator, and otherwise configured with sensible defaults.

func NewMockSeriesIteratorFromBase added in v0.7.1

func NewMockSeriesIteratorFromBase(mockIter *encoding.MockSeriesIterator, tagGenerator func() ident.TagIterator, numValues int) *encoding.MockSeriesIterator

NewMockSeriesIteratorFromBase constructs a MockSeriesIterator return numValues datapoints, using tagGenerator, and otherwise configured with sensible defaults. Any expectations already set on mockIter will be respected.

func NewMockSeriesIters

func NewMockSeriesIters(
	ctrl *gomock.Controller,
	tags ident.Tag,
	l int,
	numValues int,
) encoding.SeriesIterators

NewMockSeriesIters generates a new mock series iters

func NewMockValidTagGenerator added in v0.7.1

func NewMockValidTagGenerator(ctrl *gomock.Controller) func() ident.TagIterator

NewMockValidTagGenerator wraps around GenerateSimpleTagIterator to construct a default TagIterator function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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