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

Function test_sdl_console_move_cursor

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

Source from the content-addressed store, hash-verified

635
636 #[test]
637 fn test_sdl_console_move_cursor() {
638 let mut test = SdlTest::default();
639
640 test.console().write("Move cursor over parts of this text").unwrap();
641 for _ in 0..15 {
642 test.console().move_within_line(-1).unwrap();
643 }
644 for _ in 0..5 {
645 test.console().move_within_line(1).unwrap();
646 }
647
648 test.verify("sdl/src", "sdl-move-cursor");
649 }
650
651 #[test]
652 fn test_sdl_console_hide_cursor() {

Callers

nothing calls this directly

Calls 4

consoleMethod · 0.80
verifyMethod · 0.80
writeMethod · 0.45
move_within_lineMethod · 0.45

Tested by

no test coverage detected