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

Function test_draw_tri_no_sync

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

Source from the content-addressed store, hash-verified

1006
1007#[test]
1008fn test_draw_tri_no_sync() {
1009 Tester::new(size(20, 30))
1010 .op(|l| {
1011 l.set_sync(false);
1012 l.set_draw_color((50, 51, 52));
1013 l.draw_tri(PixelsXY::new(4, 5), PixelsXY::new(8, 5), PixelsXY::new(6, 9)).unwrap()
1014 })
1015 .expect_damage(xy(4, 5), xy(8, 9))
1016 .ignore_pixels()
1017 .check();
1018}
1019
1020#[test]
1021fn test_draw_tri_filled_no_sync() {

Callers

nothing calls this directly

Calls 9

ignore_pixelsMethod · 0.80
expect_damageMethod · 0.80
opMethod · 0.80
sizeFunction · 0.70
xyFunction · 0.70
checkMethod · 0.45
set_syncMethod · 0.45
set_draw_colorMethod · 0.45
draw_triMethod · 0.45

Tested by

no test coverage detected