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

Function TEST

test/tile_test.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace roo_display {
11
12TEST(TileTest, Trivial) {
13 FakeScreen<Argb8888> screen(5, 3, color::Black);
14 auto interior = SolidRect(0, 0, 2, 1, color::White);
15 Tile tile(&interior, Box(0, 0, 2, 1), kLeft | kTop);
16 screen.Draw(tile, 0, 0);
17 EXPECT_THAT(screen, MatchesContent(WhiteOnBlack(), 5, 3,
18 "*** "
19 "*** "
20 " "));
21}
22
23TEST(TileTest, CenteredBasic) {
24 FakeScreen<Argb4444> screen(10, 10, color::Black);

Callers

nothing calls this directly

Calls 6

SolidRectFunction · 0.85
BoxClass · 0.85
MatchesContentFunction · 0.85
WhiteOnBlackFunction · 0.85
Grayscale4Class · 0.85
DrawMethod · 0.80

Tested by

no test coverage detected