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

Function TEST

test/nibble_rect_test.cpp:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace internal {
16
17TEST(NibbleRect, Basics) {
18 roo::byte buffer[40];
19 memset(buffer, 0, 40);
20 ConstDramRaster<Grayscale4> raster(10, 8, buffer);
21 NibbleRect nibble_rect(buffer, 5, 8);
22 EXPECT_EQ(5, nibble_rect.width_bytes());
23 EXPECT_EQ(10, nibble_rect.width());
24 EXPECT_EQ(8, nibble_rect.height());
25}
26
27TEST(NibbleRect, SetGet) {
28 roo::byte buffer[40];

Callers

nothing calls this directly

Calls 11

MatchesContentFunction · 0.85
Grayscale4Class · 0.85
BoxClass · 0.85
initNibbleRectFunction · 0.85
width_bytesMethod · 0.80
setMethod · 0.80
widthMethod · 0.45
heightMethod · 0.45
getMethod · 0.45
fillRectMethod · 0.45

Tested by

no test coverage detected