mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add missing test for use completions
This commit is contained in:
parent
136dadac9a
commit
a3ad99649f
1 changed files with 19 additions and 0 deletions
|
@ -31,6 +31,25 @@ mod foo {}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn use_tree_start_abs() {
|
||||||
|
cov_mark::check!(use_tree_crate_roots_only);
|
||||||
|
check(
|
||||||
|
r#"
|
||||||
|
//- /lib.rs crate:main deps:other_crate
|
||||||
|
use ::f$0
|
||||||
|
|
||||||
|
struct Foo;
|
||||||
|
mod foo {}
|
||||||
|
//- /other_crate/lib.rs crate:other_crate
|
||||||
|
// nothing here
|
||||||
|
"#,
|
||||||
|
expect![[r#"
|
||||||
|
md other_crate
|
||||||
|
"#]],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn dont_complete_current_use() {
|
fn dont_complete_current_use() {
|
||||||
cov_mark::check!(dont_complete_current_use);
|
cov_mark::check!(dont_complete_current_use);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue