package test
import "go.opentelemetry.io/otel/sdk/metric/aggregator/test"
Index ¶
- func NewAggregatorTest(mkind export.MetricKind, nkind core.NumberKind, alternate bool) (export.MetricBatcher, export.MetricRecord)
- func RunProfiles(t *testing.T, f func(*testing.T, Profile))
- type Numbers
- func (n *Numbers) Count() int64
- func (n *Numbers) Len() int
- func (n *Numbers) Less(i, j int) bool
- func (n *Numbers) Median(kind core.NumberKind) core.Number
- func (n *Numbers) Sort()
- func (n *Numbers) Sum(kind core.NumberKind) core.Number
- func (n *Numbers) Swap(i, j int)
- type Profile
Functions ¶
func NewAggregatorTest ¶
func NewAggregatorTest(mkind export.MetricKind, nkind core.NumberKind, alternate bool) (export.MetricBatcher, export.MetricRecord)
func RunProfiles ¶
Types ¶
type Numbers ¶
func (*Numbers) Count ¶
func (*Numbers) Len ¶
func (*Numbers) Less ¶
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 ¶
type Profile ¶
type Profile struct { NumberKind core.NumberKind Random func(sign int) core.Number }
Source Files ¶
test.go
- Version
- v0.1.0
- Published
- Nov 4, 2019
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 1 hour ago –
Tools for package owners.