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

Function test_draw_line_clip

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

Source from the content-addressed store, hash-verified

788
789#[test]
790fn test_draw_line_clip() {
791 Tester::new(size(20, 30))
792 .op(|l| l.set_draw_color((50, 51, 52)))
793 .op(|l| {
794 l.set_sync(false);
795 l.draw_line(PixelsXY::new(-2, 10), PixelsXY::new(1, 10)).unwrap()
796 })
797 .expect_damage(xy(0, 10), xy(1, 10))
798 .expect_pixel(xy(0, 10), (50, 51, 52))
799 .expect_pixel(xy(1, 10), (50, 51, 52))
800 .check();
801}
802
803#[test]
804fn test_draw_pixel_sync() {

Callers

nothing calls this directly

Calls 9

expect_pixelMethod · 0.80
expect_damageMethod · 0.80
opMethod · 0.80
sizeFunction · 0.70
xyFunction · 0.70
checkMethod · 0.45
set_draw_colorMethod · 0.45
set_syncMethod · 0.45
draw_lineMethod · 0.45

Tested by

no test coverage detected