Documentation ¶
Overview ¶
Package fake implements metrics that can be used in tests that are run with t.Parallel(). The metric results cannot be asserted as they are a no-op.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Counter struct{}
Counter is a no-op implementation of a counter for tests.
func (*Counter) Init ¶
func (c *Counter) Init(name, description, unit string, aggregation aggregation.Aggregation, tagKeys ...string) error
Init is a no-op implementation for tests.
func (*Counter) MaybeGetResult ¶
MaybeGetResult is a no-op implementation for tests.
Click to show internal directories.
Click to hide internal directories.