Documentation ¶
Index ¶
- Constants
- func CheckedMerge(t *testing.T, aggInto, aggFrom export.Aggregator, ...)
- func CheckedUpdate(t *testing.T, agg export.Aggregator, number core.Number, ...)
- func NewAggregatorTest(mkind metric.Kind, nkind core.NumberKind) *metric.Descriptor
- func RunProfiles(t *testing.T, f func(*testing.T, Profile))
- func TestMain(m *testing.M)
- type Numbers
- func (n *Numbers) Append(v core.Number)
- func (n *Numbers) Count() int64
- func (n *Numbers) Len() int
- func (n *Numbers) Less(i, j int) bool
- func (n *Numbers) Max() core.Number
- func (n *Numbers) Median() core.Number
- func (n *Numbers) Min() core.Number
- func (n *Numbers) Points() []core.Number
- func (n *Numbers) Sort()
- func (n *Numbers) Sum() core.Number
- func (n *Numbers) Swap(i, j int)
- type Profile
Constants ¶
View Source
const Magnitude = 1000
Variables ¶
This section is empty.
Functions ¶
func CheckedMerge ¶
func CheckedMerge(t *testing.T, aggInto, aggFrom export.Aggregator, descriptor *metric.Descriptor)
func CheckedUpdate ¶
func CheckedUpdate(t *testing.T, agg export.Aggregator, number core.Number, descriptor *metric.Descriptor)
Performs the same range test the SDK does on behalf of the aggregator.
func NewAggregatorTest ¶
func NewAggregatorTest(mkind metric.Kind, nkind core.NumberKind) *metric.Descriptor
Types ¶
type Numbers ¶
type Numbers struct {
// contains filtered or unexported fields
}
func NewNumbers ¶
func NewNumbers(kind core.NumberKind) Numbers
Click to show internal directories.
Click to hide internal directories.