Documentation ¶
Index ¶
- func AlmostEquals(v float64, eps float64) func(any) error
- func AtLeast(want float64) func(any) error
- func Buckets(count int) func(any) error
- func Distribution(count uint64, sum float64) func(any) error
- func DoesNotExist(any) error
- func Exactly(v float64) func(any) error
- func LessThan(v float64) func(any) error
- func TestRegistry(t test.Failer) prometheus.Gatherer
- type Compare
- type Metric
- type MetricsTest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlmostEquals ¶
Check if two floats are equal with some room for errors (for example, rounding errors) For rounding errors, setting `eps` to 1e-7 is a good default
func DoesNotExist ¶
func TestRegistry ¶
func TestRegistry(t test.Failer) prometheus.Gatherer
Types ¶
type MetricsTest ¶
type MetricsTest struct {
// contains filtered or unexported fields
}
func New ¶
func New(t test.Failer) *MetricsTest
func (*MetricsTest) Dump ¶
func (m *MetricsTest) Dump()
func (*MetricsTest) Metrics ¶
func (m *MetricsTest) Metrics() []Metric
Metrics returns the full list of known metrics. Usually Assert should be used
Click to show internal directories.
Click to hide internal directories.