testutil

package
v1.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL