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

Function test_draw_rect_filled_sync

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

Source from the content-addressed store, hash-verified

933
934#[test]
935fn test_draw_rect_filled_sync() {
936 Tester::new(size(20, 30))
937 .op(|l| {
938 l.set_draw_color((50, 51, 52));
939 l.draw_rect_filled(
940 PixelsXY::new(4, 5),
941 SizeInPixels::new(2, 3),
942 )
943 .unwrap()
944 })
945 .expect_pixel(xy(4, 5), (50, 51, 52))
946 .expect_pixel(xy(4, 6), (50, 51, 52))
947 .expect_pixel(xy(4, 7), (50, 51, 52))
948 .expect_pixel(xy(5, 5), (50, 51, 52))
949 .expect_pixel(xy(5, 6), (50, 51, 52))
950 .expect_pixel(xy(5, 7), (50, 51, 52))
951 .expect_op("set_data: from=(4, 5), to=(5, 7), data=[50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52]")
952 .check();
953}
954
955#[test]
956fn test_draw_rect_filled_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_rect_filledMethod · 0.45

Tested by

no test coverage detected