MatchesGoldenFileWithPixelAllowance class
A special version of MatchesGoldenFile that allows a specified number of pixels to be different between golden files before considering the test to be a failure.
Typically, this matcher is expected to be created by calling matchesGoldenFileWithPixelAllowance.
- Inheritance
-
- Object
- Matcher
- MatchesGoldenFile
- MatchesGoldenFileWithPixelAllowance
Constructors
- MatchesGoldenFileWithPixelAllowance(Uri key, int _maxPixelMismatchCount, [int? version])
-
Creates a MatchesGoldenFileWithPixelAllowance that looks for a golden
file at the relative path within the
keyURI. - MatchesGoldenFileWithPixelAllowance.forStringPath(String path, int _maxPixelMismatchCount, [int? version])
-
Creates a MatchesGoldenFileWithPixelAllowance that looks for a golden
file at the relative
path.
Properties
Methods
-
describe(
Description description) → Description -
Builds a textual description of the matcher.
inherited
-
describeMismatch(
dynamic item, Description mismatchDescription, Map matchState, bool verbose) → Description -
Builds a textual description of a specific mismatch.
inherited
-
matchAsync(
dynamic item) → Future< String?> -
Returns
nullif this matchesitem, or a String description of the failure if it doesn't match.override -
matches(
dynamic item, Map matchState) → bool -
Does the matching of the actual vs expected values.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited