MCPcopy Create free account
hub / github.com/endbasic/endbasic / test_bucket_fill_out_of_bounds_is_noop

Function test_bucket_fill_out_of_bounds_is_noop

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

Source from the content-addressed store, hash-verified

627
628 #[test]
629 fn test_bucket_fill_out_of_bounds_is_noop() {
630 let mut rasops = RecordingRasops::default();
631 rasops.set_draw_color(ansi_color_to_rgb(7));
632 bucket_fill(&mut rasops, PixelsXY::new(10, 20), 7).unwrap();
633 assert!(rasops.ops.is_empty());
634 }
635
636 #[test]
637 fn test_bucket_fill_same_color_is_noop() {

Callers

nothing calls this directly

Calls 3

ansi_color_to_rgbFunction · 0.85
bucket_fillFunction · 0.85
set_draw_colorMethod · 0.45

Tested by

no test coverage detected