()
| 788 | |
| 789 | #[test] |
| 790 | fn test_draw_line_clip() { |
| 791 | Tester::new(size(20, 30)) |
| 792 | .op(|l| l.set_draw_color((50, 51, 52))) |
| 793 | .op(|l| { |
| 794 | l.set_sync(false); |
| 795 | l.draw_line(PixelsXY::new(-2, 10), PixelsXY::new(1, 10)).unwrap() |
| 796 | }) |
| 797 | .expect_damage(xy(0, 10), xy(1, 10)) |
| 798 | .expect_pixel(xy(0, 10), (50, 51, 52)) |
| 799 | .expect_pixel(xy(1, 10), (50, 51, 52)) |
| 800 | .check(); |
| 801 | } |
| 802 | |
| 803 | #[test] |
| 804 | fn test_draw_pixel_sync() { |
nothing calls this directly
no test coverage detected