|
KiCad PCB EDA Suite
|
Test suite for the generic render utilities in common (render_utils.h). More...
Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (OpaquePixelIsPreserved) | |
| BOOST_AUTO_TEST_CASE (TransparentPixelHasNoColour) | |
| BOOST_AUTO_TEST_CASE (SemiTransparentPixelRecoversAlphaAndColour) | |
| BOOST_AUTO_TEST_CASE (RoundTripReproducesTheRenders) | |
| BOOST_AUTO_TEST_CASE (InvalidInputsReturnError) | |
| BOOST_AUTO_TEST_CASE (ColourToAlphaMakesBackgroundTransparent) | |
| Colour-to-alpha: converting the background colour makes matching pixels transparent, with pixels in between getting a proportional opacity. | |
Test suite for the generic render utilities in common (render_utils.h).
Definition in file test_render_utils.cpp.
| BOOST_AUTO_TEST_CASE | ( | ColourToAlphaMakesBackgroundTransparent | ) |
Colour-to-alpha: converting the background colour makes matching pixels transparent, with pixels in between getting a proportional opacity.
Definition at line 221 of file test_render_utils.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and ConvertColourToAlphaInPlace().
| BOOST_AUTO_TEST_CASE | ( | InvalidInputsReturnError | ) |
Definition at line 194 of file test_render_utils.cpp.
References CreateAlphaImageFromTwoRenders(), and empty().
| BOOST_AUTO_TEST_CASE | ( | OpaquePixelIsPreserved | ) |
Definition at line 80 of file test_render_utils.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), CreateAlphaImageFromTwoRenders(), image, and result.
| BOOST_AUTO_TEST_CASE | ( | RoundTripReproducesTheRenders | ) |
Definition at line 130 of file test_render_utils.cpp.
References BOOST_REQUIRE(), BOOST_TEST_CONTEXT(), BOOST_TEST_INFO(), CreateAlphaImageFromTwoRenders(), image, and result.
| BOOST_AUTO_TEST_CASE | ( | SemiTransparentPixelRecoversAlphaAndColour | ) |
Definition at line 112 of file test_render_utils.cpp.
References BOOST_REQUIRE(), CreateAlphaImageFromTwoRenders(), image, and result.
| BOOST_AUTO_TEST_CASE | ( | TransparentPixelHasNoColour | ) |
Definition at line 96 of file test_render_utils.cpp.
References BOOST_REQUIRE(), CreateAlphaImageFromTwoRenders(), image, and result.