()
| 607 | |
| 608 | #[test] |
| 609 | fn test_draw_circle_clip() { |
| 610 | Tester::new(size(20, 30)) |
| 611 | .op(|l| l.set_draw_color((50, 51, 52))) |
| 612 | .op(|l| l.draw_circle(PixelsXY::new(0, 0), 4).unwrap()) |
| 613 | .expect_pixel(xy(0, 3), (50, 51, 52)) |
| 614 | .expect_pixel(xy(1, 3), (50, 51, 52)) |
| 615 | .expect_pixel(xy(2, 3), (50, 51, 52)) |
| 616 | .expect_pixel(xy(3, 0), (50, 51, 52)) |
| 617 | .expect_pixel(xy(3, 1), (50, 51, 52)) |
| 618 | .expect_pixel(xy(3, 2), (50, 51, 52)) |
| 619 | .expect_op("set_data: from=(0, 0), to=(3, 3), data=[0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 51, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 51, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 0, 0, 0]") |
| 620 | .check(); |
| 621 | } |
| 622 | |
| 623 | #[test] |
| 624 | fn test_draw_circle_filled_sync() { |
nothing calls this directly
no test coverage detected