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

Function test_draw_rect_filled_clip

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

Source from the content-addressed store, hash-verified

993
994#[test]
995fn test_draw_rect_filled_clip() {
996 Tester::new(size(20, 30))
997 .op(|l| {
998 l.set_draw_color((50, 51, 52));
999 l.draw_rect_filled(PixelsXY::new(-2, 28), SizeInPixels::new(3, 10)).unwrap()
1000 })
1001 .expect_pixel(xy(0, 28), (50, 51, 52))
1002 .expect_pixel(xy(0, 29), (50, 51, 52))
1003 .expect_op("set_data: from=(0, 28), to=(0, 29), data=[50, 51, 52, 50, 51, 52]")
1004 .check();
1005}
1006
1007#[test]
1008fn test_draw_tri_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