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

Function TEST

test/rasterizable_test.cpp:46–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46TEST(Rasterizable, SimpleFilledCircle) {
47 auto input = MakeRasterizable(Box(0, 0, 6, 7), circle(2, 2, 3),
48 TransparencyMode::kNone);
49
50 FakeOffscreen<Rgb565> test_screen(9, 10, color::Black);
51 Draw(test_screen, 1, 2, input);
52 EXPECT_THAT(test_screen, MatchesContent(WhiteOnBlack(), 9, 10,
53 " "
54 " "
55 " *** "
56 " ***** "
57 " ***** "
58 " ***** "
59 " *** "
60 " "
61 " "
62 " "));
63}
64
65TEST(Rasterizable, SimpleFilledCircleClipped) {
66 auto input = MakeRasterizable(Box(0, 0, 6, 7), circle(2, 2, 3),

Callers

nothing calls this directly

Calls 9

MakeRasterizableFunction · 0.85
BoxClass · 0.85
circleFunction · 0.85
MatchesContentFunction · 0.85
WhiteOnBlackFunction · 0.85
ForcedStreamableClass · 0.85
DrawFunction · 0.70
createStreamMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected