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

Function test_fill_rect_no_sync

std/src/gfx/lcd/buffered/tests.rs:160–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158
159#[test]
160fn test_fill_rect_no_sync() {
161 Tester::new(size(8, 4))
162 .op(|l| l.set_sync(false))
163 .op(|l| l.set_draw_color((210, 220, 230)))
164 .op(|l| l.fill(xy(2, 1), xy(5, 3)).unwrap())
165 .expect_pixel(xy(2, 1), (210, 220, 230))
166 .expect_pixel(xy(3, 1), (210, 220, 230))
167 .expect_pixel(xy(4, 1), (210, 220, 230))
168 .expect_pixel(xy(5, 1), (210, 220, 230))
169 .expect_pixel(xy(2, 2), (210, 220, 230))
170 .expect_pixel(xy(3, 2), (210, 220, 230))
171 .expect_pixel(xy(4, 2), (210, 220, 230))
172 .expect_pixel(xy(5, 2), (210, 220, 230))
173 .expect_pixel(xy(2, 3), (210, 220, 230))
174 .expect_pixel(xy(3, 3), (210, 220, 230))
175 .expect_pixel(xy(4, 3), (210, 220, 230))
176 .expect_pixel(xy(5, 3), (210, 220, 230))
177 .expect_damage(xy(2, 1), xy(5, 3))
178 .check();
179}
180
181#[test]
182fn test_force_present_canvas_no_damage() {

Callers

nothing calls this directly

Calls 9

expect_damageMethod · 0.80
expect_pixelMethod · 0.80
opMethod · 0.80
fillMethod · 0.80
sizeFunction · 0.70
xyFunction · 0.70
checkMethod · 0.45
set_syncMethod · 0.45
set_draw_colorMethod · 0.45

Tested by

no test coverage detected