aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/tests.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-17 14:44:38 +0100
committerGitHub <[email protected]>2021-06-17 14:44:38 +0100
commit3ae0c5911ab50ee209179ee4329b0551abe6fc48 (patch)
tree8c8fb1436a64a6bfd56558f41b734a966aa5725e /crates/ide_completion/src/tests.rs
parentc82a9141abe6b6cbf5b55710dc8a315a3839081b (diff)
parent2a48b532208de413e4e5d39e81c33a4644ecaa22 (diff)
Merge #9312
9312: internal: Move out item specific completion tests r=Veykril a=Veykril bors r+ Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/ide_completion/src/tests.rs')
-rw-r--r--crates/ide_completion/src/tests.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/ide_completion/src/tests.rs b/crates/ide_completion/src/tests.rs
index 89c7fb524..1ea6017ce 100644
--- a/crates/ide_completion/src/tests.rs
+++ b/crates/ide_completion/src/tests.rs
@@ -1,5 +1,12 @@
1//! Tests and test utilities for completions.
2//!
3//! Most tests live in this module or its submodules unless for very specific completions like
4//! `attributes` or `lifetimes` where the completed concept is a distinct thing.
5//! Notable examples for completions that are being tested in this module's submodule are paths.
6
1mod item_list; 7mod item_list;
2mod use_tree; 8mod use_tree;
9mod items;
3 10
4use hir::{PrefixKind, Semantics}; 11use hir::{PrefixKind, Semantics};
5use ide_db::{ 12use ide_db::{
@@ -32,7 +39,7 @@ pub(crate) const TEST_CONFIG: CompletionConfig = CompletionConfig {
32 }, 39 },
33}; 40};
34 41
35fn completion_list(code: &str) -> String { 42pub(crate) fn completion_list(code: &str) -> String {
36 completion_list_with_config(TEST_CONFIG, code) 43 completion_list_with_config(TEST_CONFIG, code)
37} 44}
38 45