Documentation
¶
Overview ¶
Package testutil provides various functions for unit testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetricFamiliesMap ¶
func MetricFamiliesMap(mfs ...*dto.MetricFamily) map[string]*dto.MetricFamily
MetricFamiliesMap creates the map needed in the MetricFamilies field of a WriteRequest from the provided reference metric families. While doing so, it creates deep copies of the metric families so that modifications that might happen during processing of the WriteRequest will not affect the reference metric families.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.