Documentation
¶
Overview ¶
Package json provides matches for checking request body.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyMatcher ¶
func BodyMatcher() httpmock.BodyMatcher
BodyMatcher matches a json by checking if it is equal to the expectation.
func RequestMatcher ¶
func RequestMatcher() httpmock.RequestMatcher
RequestMatcher instantiates a httpmock.SequentialRequestMatcher with httpmock.ExactURIMatcher, httpmock.ExactHeaderMatcher and BodyMatcher.
func WithBodyMatcher ¶
func WithBodyMatcher() httpmock.RequestMatcherOption
WithBodyMatcher sets httpmock.BodyMatcher to JSONBodyMatcher.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.