mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +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
|
||||
"#]],
|
||||
);
|
||||
|
||||
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]
|
||||
|
|
Loading…
Reference in a new issue