test: add full path ref exclude test case

This commit is contained in:
Young-Flash 2024-01-29 18:47:58 +08:00
parent 6181102567
commit 2b71acac4f

View file

@ -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]