tallytest

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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