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

Function test_draw_circle_filled_clip

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

Source from the content-addressed store, hash-verified

733
734#[test]
735fn test_draw_circle_filled_clip() {
736 Tester::new(size(20, 30))
737 .op(|l| l.set_draw_color((50, 51, 52)))
738 .op(|l| l.draw_circle_filled(PixelsXY::new(0, 0), 4).unwrap())
739 .expect_pixel(xy(0, 0), (50, 51, 52))
740 .expect_pixel(xy(0, 1), (50, 51, 52))
741 .expect_pixel(xy(0, 2), (50, 51, 52))
742 .expect_pixel(xy(0, 3), (50, 51, 52))
743 .expect_pixel(xy(1, 0), (50, 51, 52))
744 .expect_pixel(xy(1, 1), (50, 51, 52))
745 .expect_pixel(xy(1, 2), (50, 51, 52))
746 .expect_pixel(xy(1, 3), (50, 51, 52))
747 .expect_pixel(xy(2, 0), (50, 51, 52))
748 .expect_pixel(xy(2, 1), (50, 51, 52))
749 .expect_pixel(xy(2, 2), (50, 51, 52))
750 .expect_pixel(xy(2, 3), (50, 51, 52))
751 .expect_pixel(xy(3, 0), (50, 51, 52))
752 .expect_pixel(xy(3, 1), (50, 51, 52))
753 .expect_pixel(xy(3, 2), (50, 51, 52))
754 .expect_op("set_data: from=(0, 0), to=(3, 3), data=[50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 0, 0, 0]")
755 .check();
756}
757
758#[test]
759fn test_draw_line_sync() {

Callers

nothing calls this directly

Calls 8

expect_opMethod · 0.80
expect_pixelMethod · 0.80
opMethod · 0.80
sizeFunction · 0.70
xyFunction · 0.70
checkMethod · 0.45
set_draw_colorMethod · 0.45
draw_circle_filledMethod · 0.45

Tested by

no test coverage detected