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

Function test_put_pixels_no_sync

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

Source from the content-addressed store, hash-verified

356
357#[test]
358fn test_put_pixels_no_sync() {
359 Tester::new(size(10, 12))
360 .op(|l| l.set_sync(false))
361 .op(|l| {
362 let pixels = vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 80, 70, 0, 0, 0, 90, 80, 70];
363 let size = SizeInPixels::new(2, 3);
364 l.put_pixels(PixelsXY { x: 3, y: 1 }, &(pixels, size)).unwrap();
365 })
366 .expect_damage(xy(3, 1), xy(4, 3))
367 .expect_pixel(xy(4, 2), (90, 80, 70))
368 .expect_pixel(xy(4, 3), (90, 80, 70))
369 .check();
370}
371
372#[test]
373fn test_write_text_sync() {

Callers

nothing calls this directly

Calls 8

expect_pixelMethod · 0.80
expect_damageMethod · 0.80
opMethod · 0.80
sizeFunction · 0.70
xyFunction · 0.70
checkMethod · 0.45
set_syncMethod · 0.45
put_pixelsMethod · 0.45

Tested by

no test coverage detected