json

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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