MCPcopy Index your code
hub / github.com/endbasic/endbasic / expect_damage

Method expect_damage

std/src/gfx/lcd/buffered/testutils.rs:137–141  ·  view source on GitHub ↗

Records that the area between `x1y1` and `x2y2` is damaged after all `op`s have been executed.

(mut self, x1y1: LcdXY, x2y2: LcdXY)

Source from the content-addressed store, hash-verified

135 /// Records that the area between `x1y1` and `x2y2` is damaged after all `op`s have been
136 /// executed.
137 pub(super) fn expect_damage(mut self, x1y1: LcdXY, x2y2: LcdXY) -> Self {
138 assert!(self.exp_damage.is_none());
139 self.exp_damage = Some((x1y1, x2y2));
140 self
141 }
142
143 /// Records that the given `op` should have been received by the mock `LcdRecorder` after
144 /// all `op`s have been executed.

Callers 15

test_fill_rect_no_syncFunction · 0.80
test_present_canvasFunction · 0.80
test_read_pixels_no_syncFunction · 0.80
test_put_pixels_no_syncFunction · 0.80
test_write_text_no_syncFunction · 0.80
test_write_text_clipFunction · 0.80
test_draw_circle_no_syncFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected