testing

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GomegaContainsCollectorResultMatcher

func GomegaContainsCollectorResultMatcher(metric operatormetrics.Metric, expectedValue float64) types.GomegaMatcher

Types

type MetricMatcher

type MetricMatcher struct {
	Metric operatormetrics.Metric
	Labels map[string]string
}

func (*MetricMatcher) FailureMessage

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

func (*MetricMatcher) Match

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

func (*MetricMatcher) NegatedFailureMessage

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

type PromResult

type PromResult struct {
	Metric map[string]string `json:"metric"`
	Value  []interface{}     `json:"value"`
}

Jump to

Keyboard shortcuts

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