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

Function test_force_present_canvas_damage

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

Source from the content-addressed store, hash-verified

185
186#[test]
187fn test_force_present_canvas_damage() {
188 Tester::new(size(10, 12))
189 .op(|l| l.set_sync(false))
190 .op(|l| l.set_draw_color((120, 40, 180)))
191 .op(|l| l.fill(xy(2, 3), xy(2, 3)).unwrap())
192 .op(|l| l.force_present_canvas().unwrap())
193 .expect_pixel(xy(2, 3), (120, 40, 180))
194 .expect_op("set_data: from=(2, 3), to=(2, 3), data=[120, 40, 180]")
195 .check();
196}
197
198#[test]
199fn test_get_info() {

Callers

nothing calls this directly

Calls 10

expect_opMethod · 0.80
expect_pixelMethod · 0.80
opMethod · 0.80
fillMethod · 0.80
force_present_canvasMethod · 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