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

Function test_draw_circle_clip

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

Source from the content-addressed store, hash-verified

607
608#[test]
609fn 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]
624fn test_draw_circle_filled_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_circleMethod · 0.45

Tested by

no test coverage detected