testutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCheckWithLen

func AssertCheckWithLen(
	t *testing.T,
	checker Checker,
	expectedMetrics int,
)

AssertCheckWithLen XXX

func AssertCheckWithMetrics

func AssertCheckWithMetrics(
	t *testing.T,
	checker Checker,
	expectedMetrics int,
	fields map[string]float64,
	tags []string,
	delta ...float64,
)

AssertCheckWithMetrics XXX

func AssertCheckWithRateMetrics

func AssertCheckWithRateMetrics(
	t *testing.T,
	checker Checker,
	checker2 Checker,
	expectedMetrics int,
	fields map[string]float64,
	tags []string,
	delta ...float64,
)

AssertCheckWithRateMetrics XXX

func AssertContainsMetricWithTags

func AssertContainsMetricWithTags(
	t *testing.T,
	metrics []metric.Metric,
	name string,
	expectedValue float64,
	tags []string,
	delta ...float64,
)

AssertContainsMetricWithTags XXX

func MockAggregator

func MockAggregator(
	metrics chan metric.Metric,
) metric.Aggregator

MockAggregator XXX

Types

type Checker

type Checker func(agg metric.Aggregator) error

Checker XXX

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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