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

Function test_draw_rect_no_sync

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

Source from the content-addressed store, hash-verified

881
882#[test]
883fn test_draw_rect_no_sync() {
884 Tester::new(size(20, 30))
885 .op(|l| {
886 l.set_sync(false);
887 l.set_draw_color((50, 51, 52));
888 l.draw_rect(PixelsXY::new(4, 5), SizeInPixels::new(2, 3)).unwrap()
889 })
890 .expect_pixel(xy(4, 5), (50, 51, 52))
891 .expect_pixel(xy(4, 6), (50, 51, 52))
892 .expect_pixel(xy(4, 7), (50, 51, 52))
893 .expect_pixel(xy(5, 5), (50, 51, 52))
894 .expect_pixel(xy(5, 6), (50, 51, 52))
895 .expect_pixel(xy(5, 7), (50, 51, 52))
896 .expect_damage(xy(4, 5), xy(5, 7))
897 .check();
898}
899
900#[test]
901fn test_draw_rect_limits() {

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected