mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Less filtering in completion tests
This commit is contained in:
parent
c82a9141ab
commit
9df848c580
7 changed files with 96 additions and 98 deletions
|
@ -1,3 +1,9 @@
|
|||
//! Tests and test utilities for completions.
|
||||
//!
|
||||
//! Most tests live in this module or its submodules unless for very specific completions like
|
||||
//! `attributes` or `lifetimes` where the completed concept is a distinct thing.
|
||||
//! Notable examples for completions that are being tested in this module's submodule are paths.
|
||||
|
||||
mod item_list;
|
||||
mod use_tree;
|
||||
|
||||
|
@ -32,7 +38,7 @@ pub(crate) const TEST_CONFIG: CompletionConfig = CompletionConfig {
|
|||
},
|
||||
};
|
||||
|
||||
fn completion_list(code: &str) -> String {
|
||||
pub(crate) fn completion_list(code: &str) -> String {
|
||||
completion_list_with_config(TEST_CONFIG, code)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue