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

Function test_read_line_interactive_trailing_input

std/src/console/readline.rs:813–831  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 6

acceptMethod · 0.80
set_lineMethod · 0.80
add_output_bytesMethod · 0.80
add_key_charsMethod · 0.80
add_outputMethod · 0.80
set_previousMethod · 0.80

Tested by

no test coverage detected