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

Function test_move_end

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

Source from the content-addressed store, hash-verified

941
942 #[test]
943 fn test_move_end() {
944 let mut cb = MockConsole::default();
945 cb.set_size_chars(yx(10, 40));
946 let mut ob = OutputBuilder::new(yx(10, 40));
947 ob = ob.refresh(linecol(0, 0), &["text"], yx(0, 0));
948
949 cb.add_input_keys(&[Key::End]);
950 ob = ob.quick_refresh(linecol(0, 4), yx(0, 4));
951
952 cb.add_input_chars(".");
953 ob = ob.set_dirty();
954 ob = ob.add(CapturedOut::Write(".".to_string()));
955 ob = ob.quick_refresh(linecol(0, 5), yx(0, 5));
956
957 run_editor("text", "text.\n", cb, ob);
958 }
959
960 #[test]
961 fn test_move_home_no_indent() {

Callers

nothing calls this directly

Calls 10

yxFunction · 0.85
linecolFunction · 0.85
run_editorFunction · 0.85
refreshMethod · 0.80
add_input_keysMethod · 0.80
quick_refreshMethod · 0.80
set_dirtyMethod · 0.80
addMethod · 0.80
set_size_charsMethod · 0.45
add_input_charsMethod · 0.45

Tested by

no test coverage detected