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

Function TEST

test/raw_streamable_test.cpp:36–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36TEST(Streamable, FilledRect) {
37 FakeOffscreen<Rgb565> test_screen(5, 6, color::Black);
38 RawStreamableFilledRect rect(2, 3, color::White);
39 Draw(test_screen, 1, 2, rect);
40 EXPECT_THAT(test_screen, MatchesContent(WhiteOnBlack(), 5, 6,
41 " "
42 " "
43 " ** "
44 " ** "
45 " ** "
46 " "));
47}
48
49TEST(Streamable, ClippedFilledRect) {
50 FakeOffscreen<Rgb565> test_screen(5, 6, color::Black);

Callers

nothing calls this directly

Calls 10

MatchesContentFunction · 0.85
WhiteOnBlackFunction · 0.85
BoxClass · 0.85
MakeTestStreamableFunction · 0.85
Rgb565Class · 0.85
ClippedFunction · 0.85
Argb4444Class · 0.85
ColorClass · 0.85
DrawFunction · 0.70

Tested by

no test coverage detected