gmatcher

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package gmatcher provides custom Gomega matchers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HaveZeroRef

func HaveZeroRef() gomega.OmegaMatcher

HaveZeroRef returns a matcher that checks if all pools have 0 references.

Types

type ZeroRefMatcher

type ZeroRefMatcher struct{}

ZeroRefMatcher is a matcher that checks if all pools have 0 references.

func (*ZeroRefMatcher) FailureMessage

func (p *ZeroRefMatcher) FailureMessage(actual interface{}) (message string)

FailureMessage implements types.GomegaMatcher.

func (*ZeroRefMatcher) Match

func (p *ZeroRefMatcher) Match(actual interface{}) (success bool, err error)

Match implements types.GomegaMatcher.

func (*ZeroRefMatcher) NegatedFailureMessage

func (p *ZeroRefMatcher) NegatedFailureMessage(actual interface{}) (message string)

NegatedFailureMessage implements types.GomegaMatcher.

Jump to

Keyboard shortcuts

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