image

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package image provides assertions for image comparison.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualFromFile

func EqualFromFile(expected string) func(*http.Response, *http.Request) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL