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

Function test_draw_rect_filled_limits

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

Source from the content-addressed store, hash-verified

972
973#[test]
974fn test_draw_rect_filled_limits() {
975 Tester::new(size(2, 3))
976 .op(|l| {
977 l.set_draw_color((50, 51, 52));
978 l.draw_rect_filled(
979 PixelsXY::new(0, 0),
980 SizeInPixels::new(2, 3),
981 )
982 .unwrap()
983 })
984 .expect_pixel(xy(0, 0), (50, 51, 52))
985 .expect_pixel(xy(0, 1), (50, 51, 52))
986 .expect_pixel(xy(0, 2), (50, 51, 52))
987 .expect_pixel(xy(1, 0), (50, 51, 52))
988 .expect_pixel(xy(1, 1), (50, 51, 52))
989 .expect_pixel(xy(1, 2), (50, 51, 52))
990 .expect_op("set_data: from=(0, 0), to=(1, 2), data=[50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52]")
991 .check();
992}
993
994#[test]
995fn test_draw_rect_filled_clip() {

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_rect_filledMethod · 0.45

Tested by

no test coverage detected