()
| 724 | |
| 725 | #[test] |
| 726 | fn test_read_line_with_prompt_equal_to_screen() { |
| 727 | ReadLineInteractiveTest::default() |
| 728 | .set_size_chars(CharsXY::new(10, 5)) |
| 729 | .set_prompt("0123456789") |
| 730 | .add_output(CapturedOut::Write("01234...".to_string())) |
| 731 | .add_output(CapturedOut::SyncNow) |
| 732 | // - |
| 733 | .add_key_chars("hello") |
| 734 | .add_output_bytes("h") |
| 735 | .add_output(CapturedOut::HideCursor) |
| 736 | .add_output(CapturedOut::MoveWithinLine(-1)) |
| 737 | .add_output(CapturedOut::Write("e".to_string())) |
| 738 | .add_output(CapturedOut::ShowCursor) |
| 739 | .add_output(CapturedOut::HideCursor) |
| 740 | .add_output(CapturedOut::MoveWithinLine(-1)) |
| 741 | .add_output(CapturedOut::Write("l".to_string())) |
| 742 | .add_output(CapturedOut::ShowCursor) |
| 743 | .add_output(CapturedOut::HideCursor) |
| 744 | .add_output(CapturedOut::MoveWithinLine(-1)) |
| 745 | .add_output(CapturedOut::Write("l".to_string())) |
| 746 | .add_output(CapturedOut::ShowCursor) |
| 747 | .add_output(CapturedOut::HideCursor) |
| 748 | .add_output(CapturedOut::MoveWithinLine(-1)) |
| 749 | .add_output(CapturedOut::Write("o".to_string())) |
| 750 | .add_output(CapturedOut::ShowCursor) |
| 751 | // - |
| 752 | .set_line("hello") |
| 753 | .accept(); |
| 754 | } |
| 755 | |
| 756 | #[test] |
| 757 | fn test_read_line_with_prompt_larger_than_tiny_screen() { |
nothing calls this directly
no test coverage detected