matcher

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 5 Imported by: 0

README

matcher

gomock matcher collection

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmp

func Cmp(t *testing.T, want interface{}, opts ...cmp.Option) gomock.Matcher

Cmp is a Matcher that matches using go-cmp.

Example usage:

dbMock.EXPECT().
	Insert(t, matcher.Cmp(&someComplex).

func CmpProto

func CmpProto(t *testing.T, want interface{}, opts ...cmp.Option) gomock.Matcher

Cmp is a Matcher that matches using go-cmp.

Example usage:

dbMock.EXPECT().
	Insert(t, matcher.CmpProto(&someComplex).

Types

This section is empty.

Jump to

Keyboard shortcuts

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