mockutils

package
v0.0.0-...-6659799 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPRequestMatcher

type HTTPRequestMatcher struct {
	ExpectedRequest *http.Request
}

HTTPRequestMatcher is the object implementing the gomock Matcher interface to verify an http request

func (*HTTPRequestMatcher) Matches

func (m *HTTPRequestMatcher) Matches(x interface{}) bool

Matches returns true if the expected req matches the current http request

func (*HTTPRequestMatcher) String

func (m *HTTPRequestMatcher) String() string

String returns the expected http response from this matcher

Jump to

Keyboard shortcuts

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