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

Function test_input_propagates_interrupt_as_break

std/src/console/cmds.rs:897–906  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

895
896 #[test]
897 fn test_input_propagates_interrupt_as_break() {
898 Tester::default()
899 .add_input_keys(&[Key::Interrupt, Key::Char('3'), Key::NewLine])
900 .run("INPUT a")
901 .expect_err("Break")
902 .check()
903 .run("INPUT a")
904 .expect_var("a", 3)
905 .check();
906 }
907
908 #[test]
909 fn test_input_interrupt_cannot_be_caught_during_input() {

Callers

nothing calls this directly

Calls 5

expect_varMethod · 0.80
add_input_keysMethod · 0.80
checkMethod · 0.45
runMethod · 0.45
expect_errMethod · 0.45

Tested by

no test coverage detected