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

Function test_inkey_interrupt_is_break

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

Source from the content-addressed store, hash-verified

786
787 #[test]
788 fn test_inkey_interrupt_is_break() {
789 Tester::default()
790 .add_input_keys(&[Key::Interrupt, Key::Char('x')])
791 .run("result = INKEY")
792 .expect_err("Break")
793 .check()
794 .run("result = INKEY")
795 .expect_var("result", "x")
796 .check();
797 }
798
799 #[test]
800 fn test_input_ok() {

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