Documentation ¶
Overview ¶
Package mockserver ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a mockserver for mockserver.
func (*Client) CreateExpectation ¶
func (c *Client) CreateExpectation(expectation create.Expectation) error
CreateExpectation creates a new expectation (request/response) in the mockserver. If the expectation is received successfully, the response will be a 201 HTTP status code.
func (*Client) VerifyRequest ¶
func (c *Client) VerifyRequest(expectation verify.Expectation) error
VerifyRequest to verify a specific request was made to the mockserver. If the matching request was received the specified number of times, the response will be a 202 HTTP status code. If the request was not received the designated times, a 406 HTTP status code is issued.
Click to show internal directories.
Click to hide internal directories.