test

package
v0.0.0-...-a71ec85 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAggregatorTest

func NewAggregatorTest(mkind export.MetricKind, nkind core.NumberKind, alternate bool) (export.MetricBatcher, export.MetricRecord)

func RunProfiles

func RunProfiles(t *testing.T, f func(*testing.T, Profile))

Types

type Numbers

type Numbers []core.Number

func (*Numbers) Count

func (n *Numbers) Count() int64

func (*Numbers) Len

func (n *Numbers) Len() int

func (*Numbers) Less

func (n *Numbers) Less(i, j int) bool

func (*Numbers) Median

func (n *Numbers) Median(kind core.NumberKind) core.Number

func (*Numbers) Sort

func (n *Numbers) Sort()

func (*Numbers) Sum

func (n *Numbers) Sum(kind core.NumberKind) core.Number

func (*Numbers) Swap

func (n *Numbers) Swap(i, j int)

type Profile

type Profile struct {
	NumberKind core.NumberKind
	Random     func(sign int) core.Number
}

Jump to

Keyboard shortcuts

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