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

Function test_draw_rect_filled_no_sync

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

Source from the content-addressed store, hash-verified

954
955#[test]
956fn test_draw_rect_filled_no_sync() {
957 Tester::new(size(20, 30))
958 .op(|l| {
959 l.set_draw_color((50, 51, 52));
960 l.set_sync(false);
961 l.draw_rect_filled(PixelsXY::new(4, 5), SizeInPixels::new(2, 3)).unwrap()
962 })
963 .expect_pixel(xy(4, 5), (50, 51, 52))
964 .expect_pixel(xy(4, 6), (50, 51, 52))
965 .expect_pixel(xy(4, 7), (50, 51, 52))
966 .expect_pixel(xy(5, 5), (50, 51, 52))
967 .expect_pixel(xy(5, 6), (50, 51, 52))
968 .expect_pixel(xy(5, 7), (50, 51, 52))
969 .expect_damage(xy(4, 5), xy(5, 7))
970 .check();
971}
972
973#[test]
974fn test_draw_rect_filled_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_draw_colorMethod · 0.45
set_syncMethod · 0.45
draw_rect_filledMethod · 0.45

Tested by

no test coverage detected