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

package aggregatortest

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

Index

Package Files

test.go

Constants

const Magnitude = 1000

func CheckedMerge Uses

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

func CheckedUpdate Uses

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

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

func NewAggregatorTest Uses

func NewAggregatorTest(mkind metric.InstrumentKind, nkind number.Kind) *metric.Descriptor

func RunProfiles Uses

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

func SynchronizedMoveResetTest Uses

func SynchronizedMoveResetTest(t *testing.T, mkind metric.InstrumentKind, nf func(*metric.Descriptor) export.Aggregator)

func TestMain Uses

func TestMain(m *testing.M)

Ensure local struct alignment prior to running tests.

type NoopAggregation Uses

type NoopAggregation struct{}

func (NoopAggregation) Kind Uses

func (NoopAggregation) Kind() aggregation.Kind

type NoopAggregator Uses

type NoopAggregator struct{}

func (NoopAggregator) Aggregation Uses

func (NoopAggregator) Aggregation() aggregation.Aggregation

func (NoopAggregator) Merge Uses

func (NoopAggregator) Merge(export.Aggregator, *metric.Descriptor) error

func (NoopAggregator) SynchronizedMove Uses

func (NoopAggregator) SynchronizedMove(export.Aggregator, *metric.Descriptor) error

func (NoopAggregator) Update Uses

func (NoopAggregator) Update(context.Context, number.Number, *metric.Descriptor) error

type Numbers Uses

type Numbers struct {
    // contains filtered or unexported fields
}

func NewNumbers Uses

func NewNumbers(kind number.Kind) Numbers

func (*Numbers) Append Uses

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

func (*Numbers) Count Uses

func (n *Numbers) Count() uint64

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() number.Number

func (*Numbers) Min Uses

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

func (*Numbers) Points Uses

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

func (*Numbers) Sort Uses

func (n *Numbers) Sort()

func (*Numbers) Sum Uses

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

func (*Numbers) Swap Uses

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

type Profile Uses

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

Package aggregatortest imports 14 packages (graph). Updated 2021-01-21. Refresh now. Tools for package owners.