testutils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCounterMetrics

func AssertCounterMetrics(t *testing.T, f *metrics.LocalFactory, expectedMetrics ...ExpectedMetric)

AssertCounterMetrics checks if counter metrics exist.

func AssertGaugeMetrics

func AssertGaugeMetrics(t *testing.T, f *metrics.LocalFactory, expectedMetrics ...ExpectedMetric)

AssertGaugeMetrics checks if gauge metrics exist.

Types

type ExpectedMetric

type ExpectedMetric struct {
	Name  string
	Tags  map[string]string
	Value int
}

ExpectedMetric contains metrics under test.

Jump to

Keyboard shortcuts

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