added a bunch of tests

This commit is contained in:
2026-02-18 23:54:25 -05:00
parent d77c2f39b8
commit 8354ad400d
14 changed files with 2595 additions and 53 deletions

View File

@@ -53,7 +53,7 @@ impl Completer {
(before_cursor, after_cursor)
}
fn get_completion_context(&self, line: &str, cursor_pos: usize) -> (bool, usize) {
pub fn get_completion_context(&self, line: &str, cursor_pos: usize) -> (bool, usize) {
let annotated = annotate_input_recursive(line);
log::debug!("Annotated input for completion context: {:?}", annotated);
let mut in_cmd = false;