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

Function test_sdl_console_peek_pixel_exact_match

sdl/src/console.rs:977–985  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

975
976 #[test]
977 fn test_sdl_console_peek_pixel_exact_match() {
978 let mut test = SdlTest::default();
979
980 test.console().hide_cursor().unwrap();
981 test.console().set_color(Some(15), None).unwrap();
982 test.console().draw_pixel(PixelsXY::new(3, 4)).unwrap();
983
984 assert_eq!(Some(15), test.console().peek_pixel(PixelsXY::new(3, 4)).unwrap());
985 }
986
987 #[test]
988 fn test_sdl_console_peek_pixel_out_of_bounds() {

Callers

nothing calls this directly

Calls 4

consoleMethod · 0.80
hide_cursorMethod · 0.45
set_colorMethod · 0.45
draw_pixelMethod · 0.45

Tested by

no test coverage detected