otel: go.opentelemetry.io/otel/sdk/metric/aggregator/test Index | Files

package test

import "go.opentelemetry.io/otel/sdk/metric/aggregator/test"


Package Files



const Magnitude = 1000

func CheckedMerge Uses

func CheckedMerge(t *testing.T, aggInto, aggFrom export.Aggregator, descriptor *export.Descriptor)

func CheckedUpdate Uses

func CheckedUpdate(t *testing.T, agg export.Aggregator, number core.Number, descriptor *export.Descriptor)

Performs the same range test the SDK does on behalf of the aggregator.

func NewAggregatorTest Uses

func NewAggregatorTest(mkind export.Kind, nkind core.NumberKind, alternate bool) *export.Descriptor

func RunProfiles Uses

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

func TestMain Uses

func TestMain(m *testing.M)

Ensure local struct alignment prior to running tests.

type Numbers Uses

type Numbers struct {
    // contains filtered or unexported fields

func NewNumbers Uses

func NewNumbers(kind core.NumberKind) Numbers

func (*Numbers) Append Uses

func (n *Numbers) Append(v core.Number)

func (*Numbers) Count Uses

func (n *Numbers) Count() int64

func (*Numbers) Len Uses

func (n *Numbers) Len() int

func (*Numbers) Less Uses

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

func (*Numbers) Max Uses

func (n *Numbers) Max() core.Number

func (*Numbers) Median Uses

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

Median() is an alias for Quantile(0.5).

func (*Numbers) Min Uses

func (n *Numbers) Min() core.Number

func (*Numbers) Points Uses

func (n *Numbers) Points() []core.Number

func (*Numbers) Sort Uses

func (n *Numbers) Sort()

func (*Numbers) Sum Uses

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

func (*Numbers) Swap Uses

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

type Profile Uses

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

Package test imports 10 packages (graph). Updated 2020-02-21. Refresh now. Tools for package owners.