| 11 | namespace roo_display { |
| 12 | |
| 13 | TEST(StreamableStack, Empty) { |
| 14 | StreamableStack stack(Box(3, 4, 5, 7)); |
| 15 | EXPECT_EQ(stack.naturalExtents(), Box(0, 0, -1, -1)); |
| 16 | FakeOffscreen<Rgb565> test_screen(10, 11, color::Black); |
| 17 | Display display(test_screen); |
| 18 | { |
| 19 | DrawingContext dc(display); |
| 20 | dc.draw(stack); |
| 21 | } |
| 22 | EXPECT_THAT(test_screen, MatchesContent(WhiteOnBlack(), 10, 11, |
| 23 | " " |
| 24 | " " |
| 25 | " " |
| 26 | " " |
| 27 | " " |
| 28 | " " |
| 29 | " " |
| 30 | " " |
| 31 | " " |
| 32 | " " |
| 33 | " ")); |
| 34 | } |
| 35 | |
| 36 | TEST(StreamableStack, SingleUnclipped) { |
| 37 | auto input = MakeTestStreamable(Grayscale4(), Box(0, 0, 3, 3), |
nothing calls this directly
no test coverage detected