Introduce completion test utils

This commit is contained in:
Aleksey Kladov 2020-03-11 10:46:43 +01:00
parent 9b0b59c5d2
commit dad8f1e064
16 changed files with 49 additions and 48 deletions

View file

@ -217,7 +217,7 @@ fn make_const_compl_syntax(const_: &ast::ConstDef) -> String {
#[cfg(test)]
mod tests {
use crate::completion::{do_completion, CompletionItem, CompletionKind};
use crate::completion::{test_utils::do_completion, CompletionItem, CompletionKind};
use insta::assert_debug_snapshot;
fn complete(code: &str) -> Vec<CompletionItem> {