diff options
Diffstat (limited to 'crates/ide_completion/src/tests.rs')
-rw-r--r-- | crates/ide_completion/src/tests.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/ide_completion/src/tests.rs b/crates/ide_completion/src/tests.rs index 89c7fb524..4b7e19cc0 100644 --- a/crates/ide_completion/src/tests.rs +++ b/crates/ide_completion/src/tests.rs | |||
@@ -1,3 +1,9 @@ | |||
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 | |||
1 | mod item_list; | 7 | mod item_list; |
2 | mod use_tree; | 8 | mod use_tree; |
3 | 9 | ||
@@ -32,7 +38,7 @@ pub(crate) const TEST_CONFIG: CompletionConfig = CompletionConfig { | |||
32 | }, | 38 | }, |
33 | }; | 39 | }; |
34 | 40 | ||
35 | fn completion_list(code: &str) -> String { | 41 | pub(crate) fn completion_list(code: &str) -> String { |
36 | completion_list_with_config(TEST_CONFIG, code) | 42 | completion_list_with_config(TEST_CONFIG, code) |
37 | } | 43 | } |
38 | 44 | ||