Documentation
¶
Index ¶
- func CheckResponseHeaders(t *testing.T, responseHeaders http.Header, expectedHeadersList []TestHeader, ...)
- func CheckResponseStatusCode(t *testing.T, respStatus int, expectedStatus int)
- func CheckResponseStatusRange(t *testing.T, respStatus int, expectedLowerLimit int, expectedUpperLimit int)
- func IsSameAsFile(test *testing.T, expectedFileURL string, responseFileBytes []byte)
- func IsSameInputBytes(test *testing.T, expectedBytes []byte, receivedBytes []byte)
- func KeysAndValuesBodyMatcher(test *testing.T, expectedBody string, responseObject any, ...)
- func KeysBodyMatcher(test *testing.T, expectedBody string, responseObject any, ...)
- func NativeBodyMatcher(test *testing.T, expectedBody string, responseObject any)
- func RawBodyMatcher(test *testing.T, expectedBody string, responseObject any)
- func SliceToCommaSeparatedString(slice interface{}) string
- type TestHeader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponseHeaders ¶
func CheckResponseStatusCode ¶
func IsSameAsFile ¶
func IsSameInputBytes ¶
func KeysBodyMatcher ¶
func NativeBodyMatcher ¶
func SliceToCommaSeparatedString ¶
func SliceToCommaSeparatedString(slice interface{}) string
Types ¶
type TestHeader ¶
type TestHeader struct {
CheckValue bool `json:"CheckValue"`
Name string `json:"Name"`
Value string `json:"Value"`
}
func NewTestHeader ¶
func NewTestHeader(checkValue bool, name, value string) TestHeader
Click to show internal directories.
Click to hide internal directories.