MCPcopy Create free account
hub / github.com/Snapchat/Valdi / expectBitmapIsRed

Function expectBitmapIsRed

valdi/test/svg/SVGRenderer_tests.cpp:25–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23};
24
25void expectBitmapIsRed(const Valdi::Ref<snap::drawing::TestBitmap>& bitmap) {
26 auto info = bitmap->getInfo();
27 for (int y = 0; y < info.height; y++) {
28 for (int x = 0; x < info.width; x++) {
29 EXPECT_EQ(snap::drawing::Color::red(), bitmap->getPixel(x, y)) << "at (" << x << ", " << y << ")";
30 }
31 }
32}
33
34} // namespace
35

Callers 1

TESTFunction · 0.70

Calls 2

getPixelMethod · 0.80
getInfoMethod · 0.65

Tested by

no test coverage detected