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

Function test_draw_circle_no_sync

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

Source from the content-addressed store, hash-verified

575
576#[test]
577fn test_draw_circle_no_sync() {
578 Tester::new(size(20, 30))
579 .op(|l| l.set_draw_color((50, 51, 52)))
580 .op(|l| {
581 l.set_sync(false);
582 l.draw_circle(PixelsXY::new(10, 15), 4).unwrap()
583 })
584 .expect_damage(xy(7, 12), xy(13, 18))
585 .expect_pixel(xy(7, 13), (50, 51, 52))
586 .expect_pixel(xy(7, 14), (50, 51, 52))
587 .expect_pixel(xy(7, 15), (50, 51, 52))
588 .expect_pixel(xy(7, 16), (50, 51, 52))
589 .expect_pixel(xy(7, 17), (50, 51, 52))
590 .expect_pixel(xy(8, 12), (50, 51, 52))
591 .expect_pixel(xy(8, 18), (50, 51, 52))
592 .expect_pixel(xy(9, 12), (50, 51, 52))
593 .expect_pixel(xy(9, 18), (50, 51, 52))
594 .expect_pixel(xy(10, 12), (50, 51, 52))
595 .expect_pixel(xy(10, 18), (50, 51, 52))
596 .expect_pixel(xy(11, 12), (50, 51, 52))
597 .expect_pixel(xy(11, 18), (50, 51, 52))
598 .expect_pixel(xy(12, 12), (50, 51, 52))
599 .expect_pixel(xy(12, 18), (50, 51, 52))
600 .expect_pixel(xy(13, 13), (50, 51, 52))
601 .expect_pixel(xy(13, 14), (50, 51, 52))
602 .expect_pixel(xy(13, 15), (50, 51, 52))
603 .expect_pixel(xy(13, 16), (50, 51, 52))
604 .expect_pixel(xy(13, 17), (50, 51, 52))
605 .check();
606}
607
608#[test]
609fn test_draw_circle_clip() {

Callers

nothing calls this directly

Calls 9

expect_pixelMethod · 0.80
expect_damageMethod · 0.80
opMethod · 0.80
sizeFunction · 0.70
xyFunction · 0.70
checkMethod · 0.45
set_draw_colorMethod · 0.45
set_syncMethod · 0.45
draw_circleMethod · 0.45

Tested by

no test coverage detected