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
|
@ -45,6 +45,7 @@ pub fn test_font() -> Font {
|
|||
}
|
||||
|
||||
// Returns a snapshot from text containing '|' character markers with the markers removed, and DisplayPoints for each one.
|
||||
#[track_caller]
|
||||
pub fn marked_display_snapshot(
|
||||
text: &str,
|
||||
cx: &mut gpui::App,
|
||||
|
@ -83,6 +84,7 @@ pub fn marked_display_snapshot(
|
|||
(snapshot, markers)
|
||||
}
|
||||
|
||||
#[track_caller]
|
||||
pub fn select_ranges(
|
||||
editor: &mut Editor,
|
||||
marked_text: &str,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue