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

Function test_draw_circle_corners

std/src/console/drawing.rs:698–706  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

696
697 #[test]
698 fn test_draw_circle_corners() {
699 for corner in
700 [PixelsXY::TOP_LEFT, PixelsXY::TOP_RIGHT, PixelsXY::BOTTOM_LEFT, PixelsXY::BOTTOM_RIGHT]
701 {
702 let mut rasops = RecordingRasops::default();
703 draw_circle(&mut rasops, corner, 1).unwrap();
704 assert_eq!([CapturedRasop::DrawPixel(corner.x, corner.y)], rasops.ops.as_slice());
705 }
706 }
707
708 #[test]
709 fn test_draw_circle_filled_zero() {

Callers

nothing calls this directly

Calls 1

draw_circleFunction · 0.85

Tested by

no test coverage detected