tallytest

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCounterValue

func AssertCounterValue(t *testing.T, expected int64, s tally.Snapshot, name string, tags map[string]string) bool

AssertCounterValue asserts that the given counter has the expected value.

func AssertGaugeNil

func AssertGaugeNil(t *testing.T, s tally.Snapshot, name string, tags map[string]string) bool

AssertGaugeNil asserts that the given gauge does not exist.

func AssertGaugeValue

func AssertGaugeValue(t *testing.T, expected float64, s tally.Snapshot, name string, tags map[string]string) bool

AssertGaugeValue asserts that the given gauge has the expected value.

func CounterMap added in v1.2.0

func CounterMap(m map[string]tally.CounterSnapshot) map[string]int64

CounterMap returns the counter map for a snapshot.

func GaugeMap added in v1.2.0

func GaugeMap(m map[string]tally.GaugeSnapshot) map[string]float64

GaugeMap returns the gauge map for a snapshot.

Types

This section is empty.

Jump to

Keyboard shortcuts

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