Unnamed repository; edit this file 'description' to name the repository.
test: add full path ref exclude test case
Young-Flash 2024-01-29
parent 6181102 · commit 2b71aca
-rw-r--r--crates/ide/src/references.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs
index 4b695612a6..9a58e0b406 100644
--- a/crates/ide/src/references.rs
+++ b/crates/ide/src/references.rs
@@ -329,6 +329,27 @@ fn test() {
FileId(0) 75..84 Test
"#]],
);
+
+ check(
+ r#"
+fn test_func() {}
+
+fn func() {
+ test_func$0();
+}
+
+#[::core::prelude::v1::test]
+fn test() {
+ test_func();
+}
+"#,
+ expect![[r#"
+ test_func Function FileId(0) 0..17 3..12
+
+ FileId(0) 35..44
+ FileId(0) 96..105 Test
+ "#]],
+ );
}
#[test]