matcher

package
v2.26.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsInfoRecord added in v2.20.0

func ContainsInfoRecord(t *testing.T, records []report.Record, message string)

ContainsInfoRecord asserts that an info record with a given message is present in the slice.

func ContainsRecord added in v2.20.0

func ContainsRecord(t *testing.T, records []report.Record, wantedRecord report.Record, shouldExist bool)

ContainsRecord asserts that a given record should or should not exist within a slice. The comparison of the Error and Message is done via contains.

func EqAPI

func EqAPI(x api.API) gomock.Matcher

EqAPI returns the gomock matcher that matches two API.

API is equal if both API.ID and API.URLPath are equal

func FindRecord added in v2.22.0

func FindRecord(records []report.Record, wantedRecord report.Record) (report.Record, bool)

FindRecord checks if a given record is in a slice and returns it and true if found, otherwise an empty record and false. The comparison of the Error and Message is done via contains.

Types

This section is empty.

Jump to

Keyboard shortcuts

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