Documentation ¶
Index ¶
- Constants
- func CheckedMerge(t *testing.T, aggInto, aggFrom export.Aggregator, ...)
- func CheckedUpdate(t *testing.T, agg export.Aggregator, number metric.Number, ...)
- func NewAggregatorTest(mkind metric.Kind, nkind metric.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 metric.Number)
- func (n *Numbers) Count() int64
- func (n *Numbers) Len() int
- func (n *Numbers) Less(i, j int) bool
- func (n *Numbers) Max() metric.Number
- func (n *Numbers) Median() metric.Number
- func (n *Numbers) Min() metric.Number
- func (n *Numbers) Points() []metric.Number
- func (n *Numbers) Sort()
- func (n *Numbers) Sum() metric.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 metric.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 metric.NumberKind) *metric.Descriptor
Types ¶
type Numbers ¶
type Numbers struct {
// contains filtered or unexported fields
}
func NewNumbers ¶
func NewNumbers(kind metric.NumberKind) Numbers
Click to show internal directories.
Click to hide internal directories.