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

package aggregatortest

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


Package Files



const Magnitude = 1000

func CheckedMerge Uses

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

func CheckedUpdate Uses

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

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

func NewAggregatorTest Uses

func NewAggregatorTest(mkind otel.InstrumentKind, nkind otel.NumberKind) *otel.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 otel.NumberKind) Numbers

func (*Numbers) Append Uses

func (n *Numbers) Append(v otel.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() otel.Number

func (*Numbers) Median Uses

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

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

func (*Numbers) Min Uses

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

func (*Numbers) Points Uses

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

func (*Numbers) Sort Uses

func (n *Numbers) Sort()

func (*Numbers) Sum Uses

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

func (*Numbers) Swap Uses

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

type Profile Uses

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

Package aggregatortest imports 10 packages (graph). Updated 2020-10-20. Refresh now. Tools for package owners.