()
| 811 | |
| 812 | #[test] |
| 813 | fn test_read_line_interactive_trailing_input() { |
| 814 | ReadLineInteractiveTest::default() |
| 815 | .add_key_chars("hello") |
| 816 | .add_output_bytes("hello") |
| 817 | // - |
| 818 | .set_line("hello") |
| 819 | .accept(); |
| 820 | |
| 821 | ReadLineInteractiveTest::default() |
| 822 | .set_previous("123") |
| 823 | .add_output(CapturedOut::Write("123".to_string())) |
| 824 | .add_output(CapturedOut::SyncNow) |
| 825 | // - |
| 826 | .add_key_chars("hello") |
| 827 | .add_output_bytes("hello") |
| 828 | // - |
| 829 | .set_line("123hello") |
| 830 | .accept(); |
| 831 | } |
| 832 | |
| 833 | #[test] |
| 834 | fn test_read_line_interactive_middle_input() { |
nothing calls this directly
no test coverage detected