mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
test: add full path ref exclude test case
This commit is contained in:
parent
6181102567
commit
2b71acac4f
1 changed files with 21 additions and 0 deletions
|
@ -329,6 +329,27 @@ fn test() {
|
||||||
FileId(0) 75..84 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]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue