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

Function test_move_in_empty_file

repl/src/editor.rs:921–940  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

919
920 #[test]
921 fn test_move_in_empty_file() {
922 let mut cb = MockConsole::default();
923 cb.set_size_chars(yx(10, 40));
924 let mut ob = OutputBuilder::new(yx(10, 40));
925 ob = ob.refresh(linecol(0, 0), &[""], yx(0, 0));
926
927 for k in &[
928 Key::ArrowUp,
929 Key::ArrowDown,
930 Key::ArrowLeft,
931 Key::ArrowRight,
932 Key::PageUp,
933 Key::PageDown,
934 ] {
935 cb.add_input_keys(&[*k]);
936 ob = ob.quick_refresh(linecol(0, 0), yx(0, 0));
937 }
938
939 run_editor("", "\n", cb, ob);
940 }
941
942 #[test]
943 fn test_move_end() {

Callers

nothing calls this directly

Calls 7

yxFunction · 0.85
linecolFunction · 0.85
run_editorFunction · 0.85
refreshMethod · 0.80
add_input_keysMethod · 0.80
quick_refreshMethod · 0.80
set_size_charsMethod · 0.45

Tested by

no test coverage detected