Add #[track_caller]
to test utilities that involve marked text (#32043)
Release Notes: - N/A
This commit is contained in:
parent
030d4d2631
commit
48eacf3f2a
7 changed files with 12 additions and 0 deletions
|
@ -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>,
|
||||
|
|
|
@ -1317,6 +1317,7 @@ fn assert_layers_for_range(
|
|||
}
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
fn assert_capture_ranges(
|
||||
syntax_map: &SyntaxMap,
|
||||
buffer: &BufferSnapshot,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue