mockmatcher

package
v0.0.0-...-4232bc2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyEq

func AnyEq(t testing.TB, want interface{}, message string) gomock.Matcher

AnyEq returns a matcher that matches any object, but then ensures that the object is equal to a passed-in value using assert.Equal. This is different from `gomock.Eq`, as this matcher will always match, but then use `assert.Equal` to print a diff of the difference, while `Eq` will be considered a missing call, and not do a diff of the mismatched arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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