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

Function test_fill_rect_sync

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

Source from the content-addressed store, hash-verified

137
138#[test]
139fn test_fill_rect_sync() {
140 Tester::new(size(8, 4))
141 .op(|l| l.set_draw_color((210, 220, 230)))
142 .op(|l| l.fill(xy(2, 1), xy(5, 3)).unwrap())
143 .expect_pixel(xy(2, 1), (210, 220, 230))
144 .expect_pixel(xy(3, 1), (210, 220, 230))
145 .expect_pixel(xy(4, 1), (210, 220, 230))
146 .expect_pixel(xy(5, 1), (210, 220, 230))
147 .expect_pixel(xy(2, 2), (210, 220, 230))
148 .expect_pixel(xy(3, 2), (210, 220, 230))
149 .expect_pixel(xy(4, 2), (210, 220, 230))
150 .expect_pixel(xy(5, 2), (210, 220, 230))
151 .expect_pixel(xy(2, 3), (210, 220, 230))
152 .expect_pixel(xy(3, 3), (210, 220, 230))
153 .expect_pixel(xy(4, 3), (210, 220, 230))
154 .expect_pixel(xy(5, 3), (210, 220, 230))
155 .expect_op("set_data: from=(2, 1), to=(5, 3), data=[210, 220, 230, 210, 220, 230, 210, 220, 230, 210, 220, 230, 210, 220, 230, 210, 220, 230, 210, 220, 230, 210, 220, 230, 210, 220, 230, 210, 220, 230, 210, 220, 230, 210, 220, 230]")
156 .check();
157}
158
159#[test]
160fn test_fill_rect_no_sync() {

Callers

nothing calls this directly

Calls 8

expect_opMethod · 0.80
expect_pixelMethod · 0.80
opMethod · 0.80
fillMethod · 0.80
sizeFunction · 0.70
xyFunction · 0.70
checkMethod · 0.45
set_draw_colorMethod · 0.45

Tested by

no test coverage detected