Skip to content

Commit 2b71aca

Browse files
committed
test: add full path ref exclude test case
1 parent 6181102 commit 2b71aca

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

crates/ide/src/references.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,27 @@ fn test() {
329329
FileId(0) 75..84 Test
330330
"#]],
331331
);
332+
333+
check(
334+
r#"
335+
fn test_func() {}
336+
337+
fn func() {
338+
test_func$0();
339+
}
340+
341+
#[::core::prelude::v1::test]
342+
fn test() {
343+
test_func();
344+
}
345+
"#,
346+
expect![[r#"
347+
test_func Function FileId(0) 0..17 3..12
348+
349+
FileId(0) 35..44
350+
FileId(0) 96..105 Test
351+
"#]],
352+
);
332353
}
333354

334355
#[test]

0 commit comments

Comments
 (0)