mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Add functions to base items completion test fixture
This commit is contained in:
parent
b744e3369d
commit
ea72a5136c
7 changed files with 46 additions and 106 deletions
|
@ -38,7 +38,7 @@ use test_utils::assert_eq_text;
|
|||
use crate::{item::CompletionKind, CompletionConfig, CompletionItem};
|
||||
|
||||
/// Lots of basic item definitions
|
||||
const BASE_FIXTURE: &str = r#"
|
||||
const BASE_ITEMS_FIXTURE: &str = r#"
|
||||
enum Enum { TupleV(u32), RecordV { field: u32 }, UnitV }
|
||||
use self::Enum::TupleV;
|
||||
mod module {}
|
||||
|
@ -53,6 +53,7 @@ struct Unit;
|
|||
macro_rules! makro {}
|
||||
#[rustc_builtin_macro]
|
||||
pub macro Clone {}
|
||||
fn function() {}
|
||||
"#;
|
||||
|
||||
pub(crate) const TEST_CONFIG: CompletionConfig = CompletionConfig {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue