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

Function TEST

test/streamable_test.cpp:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115TEST(Streamable, DrawingArbitraryStreamable) {
116 auto input = MakeTestStreamable(Rgb565(), Box(0, 0, 1, 2),
117 "1W3 D1R"
118 "LQD TOL"
119 "F9F N_N");
120 FakeOffscreen<Rgb565> test_screen(5, 6, color::Black);
121 Draw(test_screen, 1, 2, input);
122 EXPECT_THAT(test_screen, MatchesContent(Rgb565(), 5, 6,
123 "___ ___ ___ ___ ___"
124 "___ ___ ___ ___ ___"
125 "___ 1W3 D1R ___ ___"
126 "___ LQD TOL ___ ___"
127 "___ F9F N_N ___ ___"
128 "___ ___ ___ ___ ___"));
129}
130
131TEST(Streamable, ClippingFromTop) {
132 auto input = MakeTestStreamable(Rgb565(), Box(0, 0, 1, 2),

Callers

nothing calls this directly

Calls 15

MakeTestStreamableFunction · 0.85
Rgb565Class · 0.85
BoxClass · 0.85
MatchesContentFunction · 0.85
Argb4444Class · 0.85
ColorClass · 0.85
fillReplaceRectFunction · 0.85
ExpectBufferEqualsFunction · 0.85
fillPaintRectOverBgFunction · 0.85
AlphaBlendFunction · 0.85
MakeSubRectangleFunction · 0.85

Tested by

no test coverage detected