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

Function TEST

test/raster_test.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46TEST(Raster, MonochromeMsbFirst) {
47 unsigned char data[] = {0xC1, 0x26, 0xE7};
48 ConstDramRaster<Monochrome> raster(4, 6, (const roo::byte*)data,
49 WhiteOnBlack());
50 EXPECT_THAT(raster, MatchesContent(WhiteOnBlack(), 4, 6,
51 "** "
52 " *"
53 " * "
54 " ** "
55 "*** "
56 " ***"));
57}
58
59TEST(Raster, MonochromeLsbFirst) {
60 unsigned char data[] = {0xC1, 0x26, 0xE7};

Callers

nothing calls this directly

Calls 15

WhiteOnBlackFunction · 0.85
MatchesContentFunction · 0.85
Grayscale4Class · 0.85
Alpha4Class · 0.85
Argb4444Class · 0.85
Grayscale8Class · 0.85
Alpha8Class · 0.85
Argb8888Class · 0.85
Argb6666Class · 0.85
Rgb565Class · 0.85
ForcedStreamableClass · 0.85

Tested by

no test coverage detected