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

Function test_put_pixels_sync

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

Source from the content-addressed store, hash-verified

340
341#[test]
342fn test_put_pixels_sync() {
343 Tester::new(size(10, 12))
344 .op(|l| {
345 let pixels = vec![0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 80, 70, 0, 0, 0, 90, 80, 70];
346 let size = SizeInPixels::new(2, 3);
347 l.put_pixels(PixelsXY { x: 3, y: 1 }, &(pixels, size)).unwrap();
348 })
349 .expect_pixel(xy(4, 2), (90, 80, 70))
350 .expect_pixel(xy(4, 3), (90, 80, 70))
351 .expect_op(
352 "set_data: from=(3, 1), to=(4, 3), data=[0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 80, 70, 0, 0, 0, 90, 80, 70]",
353 )
354 .check();
355}
356
357#[test]
358fn test_put_pixels_no_sync() {

Callers

nothing calls this directly

Calls 7

expect_opMethod · 0.80
expect_pixelMethod · 0.80
opMethod · 0.80
sizeFunction · 0.70
xyFunction · 0.70
checkMethod · 0.45
put_pixelsMethod · 0.45

Tested by

no test coverage detected