Documentation ¶
Overview ¶
Package metricdatatest provides testing functionality for use with the metricdata package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertAggregationsEqual ¶
func AssertAggregationsEqual(t *testing.T, expected, actual metricdata.Aggregation, opts ...Option) bool
AssertAggregationsEqual asserts that two Aggregations are equal.
Types ¶
type Datatypes ¶
type Datatypes interface { metricdata.DataPoint[float64] | metricdata.DataPoint[int64] | metricdata.Gauge[float64] | metricdata.Gauge[int64] | metricdata.Histogram | metricdata.HistogramDataPoint | metricdata.Metrics | metricdata.ResourceMetrics | metricdata.ScopeMetrics | metricdata.Sum[float64] | metricdata.Sum[int64] }
Datatypes are the concrete data-types the metricdata package provides.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option allows for fine grain control over how AssertEqual operates.
func IgnoreTimestamp ¶
func IgnoreTimestamp() Option
IgnoreTimestamp disables checking if timestamps are different.
Click to show internal directories.
Click to hide internal directories.