mockmatchers

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: UPL-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchesURI

func MatchesURI(path string) gomock.Matcher

func MatchesURIMethod added in v1.5.0

func MatchesURIMethod(method, path string) gomock.Matcher

Types

type URIMatcher

type URIMatcher struct {
	// contains filtered or unexported fields
}

URIMatcher for use with gomock for http requests

func (*URIMatcher) Matches

func (u *URIMatcher) Matches(x interface{}) bool

func (*URIMatcher) String

func (u *URIMatcher) String() string

type URIMethodMatcher added in v1.5.0

type URIMethodMatcher struct {
	// contains filtered or unexported fields
}

URIMethodMatcher for use with gomock for http requests matches both the path and the method for and http request

func (*URIMethodMatcher) Matches added in v1.5.0

func (u *URIMethodMatcher) Matches(x interface{}) bool

func (*URIMethodMatcher) String added in v1.5.0

func (u *URIMethodMatcher) String() string

Jump to

Keyboard shortcuts

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