Configuration for screenshot comparison. More...
#include <screenshot_assertion.h>
Public Types | |
| enum class | Algorithm { kPixelExact , kPerceptualHash , kStructuralSim } |
Public Attributes | |
| float | tolerance = 0.95f |
| int | color_threshold = 10 |
| std::vector< ScreenRegion > | ignore_regions |
| bool | generate_diff_image = true |
| std::string | diff_output_dir = "/tmp/yaze_test_diffs" |
| Algorithm | algorithm = Algorithm::kPixelExact |
Configuration for screenshot comparison.
Definition at line 53 of file screenshot_assertion.h.
|
strong |
| Enumerator | |
|---|---|
| kPixelExact | |
| kPerceptualHash | |
| kStructuralSim | |
Definition at line 67 of file screenshot_assertion.h.
| float yaze::test::ComparisonConfig::tolerance = 0.95f |
Definition at line 54 of file screenshot_assertion.h.
Referenced by yaze::test::ScreenshotAssertion::AssertChanged(), yaze::test::ScreenshotAssertion::AssertMatchesReference(), yaze::test::ScreenshotAssertion::AssertMatchesScreenshot(), yaze::test::ScreenshotAssertion::AssertRegionMatches(), and yaze::test::ScreenshotAssertion::AssertUnchanged().
| int yaze::test::ComparisonConfig::color_threshold = 10 |
Definition at line 57 of file screenshot_assertion.h.
Referenced by yaze::test::ScreenshotAssertion::AssertRegionContainsColor(), yaze::test::ScreenshotAssertion::ComparePixelExact(), and yaze::test::ScreenshotAssertion::GenerateDiffImage().
| std::vector<ScreenRegion> yaze::test::ComparisonConfig::ignore_regions |
Definition at line 60 of file screenshot_assertion.h.
Referenced by yaze::test::ScreenshotAssertion::ComparePixelExact().
| bool yaze::test::ComparisonConfig::generate_diff_image = true |
Definition at line 63 of file screenshot_assertion.h.
Referenced by yaze::test::ScreenshotAssertion::CompareRegion().
| std::string yaze::test::ComparisonConfig::diff_output_dir = "/tmp/yaze_test_diffs" |
Definition at line 64 of file screenshot_assertion.h.
Referenced by yaze::test::ScreenshotAssertion::CompareRegion().
| Algorithm yaze::test::ComparisonConfig::algorithm = Algorithm::kPixelExact |
Definition at line 72 of file screenshot_assertion.h.
Referenced by yaze::test::ScreenshotAssertion::CompareRegion().