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

Method expect_pixel

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

Records that the pixel `xy` should be `rgb` after all `op`s have been executed.

(mut self, xy: LcdXY, rgb: RGB)

Source from the content-addressed store, hash-verified

125
126 /// Records that the pixel `xy` should be `rgb` after all `op`s have been executed.
127 pub(super) fn expect_pixel(mut self, xy: LcdXY, rgb: RGB) -> Self {
128 let offset = ((xy.y * self.size.width) + xy.x) * 3;
129 self.exp_fb[offset] = rgb.0;
130 self.exp_fb[offset + 1] = rgb.1;
131 self.exp_fb[offset + 2] = rgb.2;
132 self
133 }
134
135 /// Records that the area between `x1y1` and `x2y2` is damaged after all `op`s have been
136 /// executed.

Callers 15

test_fill_one_pixel_syncFunction · 0.80
test_fill_rect_syncFunction · 0.80
test_fill_rect_no_syncFunction · 0.80
test_present_canvasFunction · 0.80
test_put_pixels_syncFunction · 0.80
test_put_pixels_no_syncFunction · 0.80
test_write_text_syncFunction · 0.80
test_write_text_no_syncFunction · 0.80
test_write_text_clipFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected