Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeJSON ¶
EncodeJSON encodes json data in bytes
func EncodeString ¶ added in v1.2.0
EncodeString encodes string data in bytes
func GetMockArgumentsWithType ¶ added in v1.2.0
Types ¶
type ExpectedResponse ¶
type ExpectedResponse struct {
StatusCode int
}
ExpectedResponse stores expected response basic data
type HTTPTest ¶
HTTPTest encapsulates data for testing needs
func (*HTTPTest) CompareHTTPResponse ¶
func (test *HTTPTest) CompareHTTPResponse(rr *httptest.ResponseRecorder, expected ExpectedResponse)
CompareHTTPResponse compares expected response with actual response
Click to show internal directories.
Click to hide internal directories.