matcher

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 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 checks if 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 checks if a given record is in 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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