()
| 340 | |
| 341 | #[test] |
| 342 | fn 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] |
| 358 | fn test_put_pixels_no_sync() { |
nothing calls this directly
no test coverage detected