| 113 | } |
| 114 | |
| 115 | TEST(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 | |
| 131 | TEST(Streamable, ClippingFromTop) { |
| 132 | auto input = MakeTestStreamable(Rgb565(), Box(0, 0, 1, 2), |
nothing calls this directly
no test coverage detected