MCPcopy Create free account
hub / github.com/dejwk/roo_display / TEST

Function TEST

test/image_test.cpp:14–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12namespace roo_display {
13
14TEST(Image, XBitmap) {
15 unsigned char test_bits[] = {0x00, 0x00, 0xfe, 0x03, 0xfe, 0x03, 0x1e, 0x00,
16 0x3e, 0x00, 0x76, 0x00, 0x66, 0x00, 0x06, 0x00,
17 0x06, 0x00, 0x06, 0x00, 0x00, 0x00};
18
19 XBitmap<ConstDramPtr> bmp(12, 11, test_bits, color::White, color::Black);
20 EXPECT_THAT(bmp, MatchesContent(WhiteOnBlack(), 12, 11,
21 " "
22 " ********* "
23 " ********* "
24 " **** "
25 " ***** "
26 " ** *** "
27 " ** ** "
28 " ** "
29 " ** "
30 " ** "
31 " "));
32}
33
34namespace internal {
35

Callers

nothing calls this directly

Calls 9

MatchesContentFunction · 0.85
WhiteOnBlackFunction · 0.85
aMethod · 0.80
nextMethod · 0.45
okMethod · 0.45
toArgbColorMethod · 0.45
readMethod · 0.45
skipMethod · 0.45
transparencyMethod · 0.45

Tested by

no test coverage detected