Documentation
¶
Overview ¶
Package image provides assertions for image comparison.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualFromFile ¶
EqualFromFile verifies that the image file in expect is the same as the image in the response body.
func EqualFromFileWithThreshold ¶ added in v0.0.12
func EqualFromFileWithThreshold(expected string, threshold float64) func(*http.Response, *http.Request) error
EqualFromFileWithThreshold verifies that the image file in expect is the same as the image in the response body. The threshold is the maximum difference between the images. The value is between 0 and 1. Less more precise.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.