testutil

package
v1.16.109 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeMetricsSink

type FakeMetricsSink struct {
	metrics.BlackholeSink
	GaugeCalls       []MetricCall
	IncrCounterCalls []MetricCall
	// contains filtered or unexported fields
}

func NewFakeSink

func NewFakeSink(t *testing.T) (*FakeMetricsSink, *metrics.Metrics)

func (*FakeMetricsSink) IncrCounterWithLabels

func (f *FakeMetricsSink) IncrCounterWithLabels(key []string, val float32, labels []metrics.Label)

func (*FakeMetricsSink) SetGaugeWithLabels

func (f *FakeMetricsSink) SetGaugeWithLabels(key []string, val float32, labels []metrics.Label)

type MetricCall

type MetricCall struct {
	Key    []string
	Val    float32
	Labels []metrics.Label
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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