Documentation ¶
Overview ¶
Package http for http matching
Index ¶
- func AbsMatch(tcs1, tcs2 *models.TestCase, noiseConfig map[string]map[string][]string, ...) (bool, bool, bool, *models.AbsResult)
- func CompareCurl(curl1, curl2 string, logger *zap.Logger) bool
- func CompareHTTPReq(tcs1, tcs2 *models.TestCase, _ models.GlobalNoise, ignoreOrdering bool, ...) (bool, models.ReqCompare)
- func CompareHTTPResp(tcs1, tcs2 *models.TestCase, noiseConfig models.GlobalNoise, ...) (bool, models.RespCompare)
- func CompareNoise(noise1, noise2 map[string][]string) bool
- func CompareURLParams(urlParams1, urlParams2 map[string]string, ...) bool
- func FlattenHTTPResponse(h http.Header, body string) (map[string][]string, error)
- func Match(tc *models.TestCase, actualResponse *models.HTTPResp, ...) (bool, *models.Result)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsMatch ¶
func AbsMatch(tcs1, tcs2 *models.TestCase, noiseConfig map[string]map[string][]string, ignoreOrdering bool, logger *zap.Logger) (bool, bool, bool, *models.AbsResult)
AbsMatch (Absolute Match) compares two test cases and returns a boolean value indicating whether they are equal or not. It also returns a AbsResult object which contains the results of the comparison. Parameters: tcs1, tcs2, noiseConfig, ignoreOrdering, logger Returns: bool, *models.AbsResult
func CompareHTTPReq ¶
func CompareHTTPReq(tcs1, tcs2 *models.TestCase, _ models.GlobalNoise, ignoreOrdering bool, logger *zap.Logger) (bool, models.ReqCompare)
CompareHTTPReq compares two http requests and returns a boolean value indicating whether they are equal or not.
func CompareHTTPResp ¶
func CompareHTTPResp(tcs1, tcs2 *models.TestCase, noiseConfig models.GlobalNoise, ignoreOrdering bool, logger *zap.Logger) (bool, models.RespCompare)
CompareHTTPResp compares two http responses and returns a boolean value indicating whether they are equal or not.
func CompareNoise ¶
func CompareURLParams ¶
func CompareURLParams(urlParams1, urlParams2 map[string]string, urlParamsResult *[]models.URLParamsResult) bool
func FlattenHTTPResponse ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.