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

Function createTestBitmap

snap_drawing/test/utils/TestBitmap.cpp:151–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151Valdi::Ref<TestBitmap> createTestBitmap() {
152 const int height = 6;
153 BitmapBuilder builder(8, height);
154 for (int i = 0; i < height; i++) {
155 builder.row({Color(0xFF000000),
156 Color(0x00FF0000),
157 Color(0x0000FF00),
158 Color(0x000000FF),
159 Color(0xFF000000),
160 Color(0x00FF0000),
161 Color(0x0000FF00),
162 Color(0x000000FF)});
163 }
164 return builder.build();
165}
166
167} // namespace snap::drawing

Callers 4

SetUpMethod · 0.85
SetUpBaseMethod · 0.85
TEST_FFunction · 0.85
TESTFunction · 0.85

Calls 2

ColorClass · 0.50
buildMethod · 0.45

Tested by

no test coverage detected