MCPcopy Create free account
hub / github.com/endbasic/endbasic / test_draw_circle_sync

Function test_draw_circle_sync

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

Source from the content-addressed store, hash-verified

546
547#[test]
548fn test_draw_circle_sync() {
549 Tester::new(size(20, 30))
550 .op(|l| l.set_draw_color((50, 51, 52)))
551 .op(|l| l.draw_circle(PixelsXY::new(10, 15), 4).unwrap())
552 .expect_pixel(xy(7, 13), (50, 51, 52))
553 .expect_pixel(xy(7, 14), (50, 51, 52))
554 .expect_pixel(xy(7, 15), (50, 51, 52))
555 .expect_pixel(xy(7, 16), (50, 51, 52))
556 .expect_pixel(xy(7, 17), (50, 51, 52))
557 .expect_pixel(xy(8, 12), (50, 51, 52))
558 .expect_pixel(xy(8, 18), (50, 51, 52))
559 .expect_pixel(xy(9, 12), (50, 51, 52))
560 .expect_pixel(xy(9, 18), (50, 51, 52))
561 .expect_pixel(xy(10, 12), (50, 51, 52))
562 .expect_pixel(xy(10, 18), (50, 51, 52))
563 .expect_pixel(xy(11, 12), (50, 51, 52))
564 .expect_pixel(xy(11, 18), (50, 51, 52))
565 .expect_pixel(xy(12, 12), (50, 51, 52))
566 .expect_pixel(xy(12, 18), (50, 51, 52))
567 .expect_pixel(xy(13, 13), (50, 51, 52))
568 .expect_pixel(xy(13, 14), (50, 51, 52))
569 .expect_pixel(xy(13, 15), (50, 51, 52))
570 .expect_pixel(xy(13, 16), (50, 51, 52))
571 .expect_pixel(xy(13, 17), (50, 51, 52))
572 .expect_op("set_data: from=(7, 12), to=(13, 18), data=[0, 0, 0, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 0, 0, 0, 50, 51, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 51, 52, 50, 51, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 51, 52, 50, 51, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 51, 52, 50, 51, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 51, 52, 50, 51, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 51, 52, 0, 0, 0, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 0, 0, 0]")
573 .check();
574}
575
576#[test]
577fn test_draw_circle_no_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