()
| 671 | |
| 672 | #[test] |
| 673 | fn test_read_line_with_prompt() { |
| 674 | ReadLineInteractiveTest::default() |
| 675 | .set_prompt("Ready> ") |
| 676 | .add_output(CapturedOut::Write("Ready> ".to_string())) |
| 677 | .add_output(CapturedOut::SyncNow) |
| 678 | // - |
| 679 | .add_key_chars("hello") |
| 680 | .add_output_bytes("hello") |
| 681 | // - |
| 682 | .set_line("hello") |
| 683 | .accept(); |
| 684 | |
| 685 | ReadLineInteractiveTest::default() |
| 686 | .set_prompt("Cannot delete") |
| 687 | .add_output(CapturedOut::Write("Cannot delete".to_string())) |
| 688 | .add_output(CapturedOut::SyncNow) |
| 689 | // - |
| 690 | .add_key(Key::Backspace) |
| 691 | .accept(); |
| 692 | } |
| 693 | |
| 694 | #[test] |
| 695 | fn test_read_line_with_prompt_larger_than_screen() { |
nothing calls this directly
no test coverage detected