test_matchers

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrometheusMetric

func PrometheusMetric(expected prometheus.Metric) types.GomegaMatcher

Types

type PrometheusMetricMatcher

type PrometheusMetricMatcher struct {
	Desc   *prometheus.Desc
	Metric *dto.Metric
}

func (*PrometheusMetricMatcher) FailureMessage

func (matcher *PrometheusMetricMatcher) FailureMessage(actual interface{}) (message string)

func (*PrometheusMetricMatcher) Match

func (matcher *PrometheusMetricMatcher) Match(actual interface{}) (success bool, err error)

func (*PrometheusMetricMatcher) NegatedFailureMessage

func (matcher *PrometheusMetricMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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