Add #[track_caller] to test utilities that involve marked text (#32043)

Release Notes:

- N/A
This commit is contained in:
Michael Sloan 2025-06-03 20:37:27 -06:00 committed by GitHub
parent 030d4d2631
commit 48eacf3f2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 12 additions and 0 deletions

View file

@ -3701,6 +3701,7 @@ fn get_tree_sexp(buffer: &Entity<Buffer>, cx: &mut gpui::TestAppContext) -> Stri
}
// Assert that the enclosing bracket ranges around the selection match the pairs indicated by the marked text in `range_markers`
#[track_caller]
fn assert_bracket_pairs(
selection_text: &'static str,
bracket_pair_texts: Vec<&'static str>,

View file

@ -1317,6 +1317,7 @@ fn assert_layers_for_range(
}
}
#[track_caller]
fn assert_capture_ranges(
syntax_map: &SyntaxMap,
buffer: &BufferSnapshot,