testutils

package
v0.0.0-...-0611383 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 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, counters map[string]tally.CounterSnapshot, metric string, expected int)

func AssertGaugeValue

func AssertGaugeValue(t *testing.T, gauges map[string]tally.GaugeSnapshot, metric string, expected int)

func AssertSyncMapLen

func AssertSyncMapLen(t *testing.T, len int, sm *sync.Map)

AssertSyncMapLen is a custom solution for checking the length of sync.Map. sync.Map does not currently offer support for length checks: https://github.com/golang/go/issues/20680

func AssertTimerValue

func AssertTimerValue(t *testing.T, timers map[string]tally.TimerSnapshot, metric string, expected []time.Duration)

Types

This section is empty.

Jump to

Keyboard shortcuts

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