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

Function test_draw_pixel_out_of_bounds

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

Source from the content-addressed store, hash-verified

842
843#[test]
844fn test_draw_pixel_out_of_bounds() {
845 Tester::new(size(20, 30))
846 .op(|l| l.set_draw_color((50, 51, 52)))
847 .op(|l| l.draw_pixel(PixelsXY::new(-5, 10)).unwrap())
848 .check();
849
850 Tester::new(size(20, 30))
851 .op(|l| l.set_draw_color((50, 51, 52)))
852 .op(|l| l.draw_pixel(PixelsXY::new(5, -10)).unwrap())
853 .check();
854
855 Tester::new(size(20, 30))
856 .op(|l| l.set_draw_color((50, 51, 52)))
857 .op(|l| l.draw_pixel(PixelsXY::new(20, 30)).unwrap())
858 .check();
859}
860
861#[test]
862fn test_draw_rect_sync() {

Callers

nothing calls this directly

Calls 5

opMethod · 0.80
sizeFunction · 0.70
checkMethod · 0.45
set_draw_colorMethod · 0.45
draw_pixelMethod · 0.45

Tested by

no test coverage detected