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

Function test_tab_existing_content

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

Source from the content-addressed store, hash-verified

1090
1091 #[test]
1092 fn test_tab_existing_content() {
1093 let mut cb = MockConsole::default();
1094 cb.set_size_chars(yx(10, 40));
1095 let mut ob = OutputBuilder::new(yx(10, 40));
1096 ob = ob.refresh(linecol(0, 0), &["."], yx(0, 0));
1097
1098 cb.add_input_keys(&[Key::Tab]);
1099 ob = ob.set_dirty();
1100 ob = ob.refresh_line(linecol(0, 4), " .", yx(0, 4));
1101
1102 cb.add_input_keys(&[Key::Tab]);
1103 ob = ob.refresh_line(linecol(0, 8), " .", yx(0, 8));
1104
1105 run_editor(".", " .\n", cb, ob);
1106 }
1107
1108 #[test]
1109 fn test_tab_remove_empty_line() {

Callers

nothing calls this directly

Calls 8

yxFunction · 0.85
linecolFunction · 0.85
run_editorFunction · 0.85
refreshMethod · 0.80
add_input_keysMethod · 0.80
set_dirtyMethod · 0.80
refresh_lineMethod · 0.80
set_size_charsMethod · 0.45

Tested by

no test coverage detected