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

Function test_draw_pixel_sync

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

Source from the content-addressed store, hash-verified

802
803#[test]
804fn test_draw_pixel_sync() {
805 Tester::new(size(20, 30))
806 .op(|l| l.set_draw_color((50, 51, 52)))
807 .op(|l| l.draw_pixel(PixelsXY::new(4, 5)).unwrap())
808 .expect_pixel(xy(4, 5), (50, 51, 52))
809 .expect_op("set_data: from=(4, 5), to=(4, 5), data=[50, 51, 52]")
810 .check();
811}
812
813#[test]
814fn test_draw_pixel_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_pixelMethod · 0.45

Tested by

no test coverage detected