| 8 | namespace roo_display { |
| 9 | |
| 10 | TEST(BasicShapes, FillRectOutOfBounds) { |
| 11 | FakeOffscreen<Rgb565> test_screen(2, 3); |
| 12 | Display display(test_screen); |
| 13 | { |
| 14 | DrawingContext dc(display); |
| 15 | // Intentionally write out-of-bounds to test that it is caught by |
| 16 | // the shape. |
| 17 | dc.draw(FilledRect(-5, -2, 8, 7, color::Black)); |
| 18 | } |
| 19 | EXPECT_THAT(test_screen, MatchesContent(WhiteOnBlack(), 2, 3, |
| 20 | " " |
| 21 | " " |
| 22 | " ")); |
| 23 | } |
| 24 | |
| 25 | TEST(BasicShapes, FillRectOpaque) { |
| 26 | FakeOffscreen<Rgb565> test_screen(5, 6, color::Black); |
nothing calls this directly
no test coverage detected