promtest

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package promtest contains helpers to test metrics structs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLabelsStruct

func CheckLabelsStruct(t *testing.T, xLabels interface{})

CheckLabelsStruct checks that labels has a Values and Labels method. It also checks that labels.Labels() returns the struct field names.

Types

This section is empty.

Jump to

Keyboard shortcuts

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