diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2019-08-29 15:04:28 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2019-08-29 15:04:28 +0100 |
commit | 7d72ca80003b7915ed7fc64907b5b6dc5c88dacd (patch) | |
tree | 4aa7826d1b9a7222ad64085f136a1615d7daa7a5 /crates/ra_ide_api/src/completion/complete_path.rs | |
parent | 5a99184967c89992df4544d0c1ca27d79946a1a7 (diff) | |
parent | 0f6c048ce1a621ccd3e2080ec5aafbd053c516f4 (diff) |
Merge #1738
1738: :arrow_up: insta r=matklad a=matklad
Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_path.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs index 5fd41eeb3..d6b5ac9ad 100644 --- a/crates/ra_ide_api/src/completion/complete_path.rs +++ b/crates/ra_ide_api/src/completion/complete_path.rs | |||
@@ -79,7 +79,7 @@ mod tests { | |||
79 | use test_utils::covers; | 79 | use test_utils::covers; |
80 | 80 | ||
81 | use crate::completion::{do_completion, CompletionItem, CompletionKind}; | 81 | use crate::completion::{do_completion, CompletionItem, CompletionKind}; |
82 | use insta::assert_debug_snapshot_matches; | 82 | use insta::assert_debug_snapshot; |
83 | 83 | ||
84 | fn do_reference_completion(code: &str) -> Vec<CompletionItem> { | 84 | fn do_reference_completion(code: &str) -> Vec<CompletionItem> { |
85 | do_completion(code, CompletionKind::Reference) | 85 | do_completion(code, CompletionKind::Reference) |
@@ -120,7 +120,7 @@ mod tests { | |||
120 | 120 | ||
121 | #[test] | 121 | #[test] |
122 | fn completes_mod_with_docs() { | 122 | fn completes_mod_with_docs() { |
123 | assert_debug_snapshot_matches!( | 123 | assert_debug_snapshot!( |
124 | do_reference_completion( | 124 | do_reference_completion( |
125 | r" | 125 | r" |
126 | use self::my<|>; | 126 | use self::my<|>; |
@@ -149,7 +149,7 @@ mod tests { | |||
149 | 149 | ||
150 | #[test] | 150 | #[test] |
151 | fn completes_use_item_starting_with_self() { | 151 | fn completes_use_item_starting_with_self() { |
152 | assert_debug_snapshot_matches!( | 152 | assert_debug_snapshot!( |
153 | do_reference_completion( | 153 | do_reference_completion( |
154 | r" | 154 | r" |
155 | use self::m::<|>; | 155 | use self::m::<|>; |
@@ -173,7 +173,7 @@ mod tests { | |||
173 | 173 | ||
174 | #[test] | 174 | #[test] |
175 | fn completes_use_item_starting_with_crate() { | 175 | fn completes_use_item_starting_with_crate() { |
176 | assert_debug_snapshot_matches!( | 176 | assert_debug_snapshot!( |
177 | do_reference_completion( | 177 | do_reference_completion( |
178 | " | 178 | " |
179 | //- /lib.rs | 179 | //- /lib.rs |
@@ -204,7 +204,7 @@ mod tests { | |||
204 | 204 | ||
205 | #[test] | 205 | #[test] |
206 | fn completes_nested_use_tree() { | 206 | fn completes_nested_use_tree() { |
207 | assert_debug_snapshot_matches!( | 207 | assert_debug_snapshot!( |
208 | do_reference_completion( | 208 | do_reference_completion( |
209 | " | 209 | " |
210 | //- /lib.rs | 210 | //- /lib.rs |
@@ -235,7 +235,7 @@ mod tests { | |||
235 | 235 | ||
236 | #[test] | 236 | #[test] |
237 | fn completes_deeply_nested_use_tree() { | 237 | fn completes_deeply_nested_use_tree() { |
238 | assert_debug_snapshot_matches!( | 238 | assert_debug_snapshot!( |
239 | do_reference_completion( | 239 | do_reference_completion( |
240 | " | 240 | " |
241 | //- /lib.rs | 241 | //- /lib.rs |
@@ -263,7 +263,7 @@ mod tests { | |||
263 | 263 | ||
264 | #[test] | 264 | #[test] |
265 | fn completes_enum_variant() { | 265 | fn completes_enum_variant() { |
266 | assert_debug_snapshot_matches!( | 266 | assert_debug_snapshot!( |
267 | do_reference_completion( | 267 | do_reference_completion( |
268 | " | 268 | " |
269 | //- /lib.rs | 269 | //- /lib.rs |
@@ -306,7 +306,7 @@ mod tests { | |||
306 | 306 | ||
307 | #[test] | 307 | #[test] |
308 | fn completes_enum_variant_with_details() { | 308 | fn completes_enum_variant_with_details() { |
309 | assert_debug_snapshot_matches!( | 309 | assert_debug_snapshot!( |
310 | do_reference_completion( | 310 | do_reference_completion( |
311 | " | 311 | " |
312 | //- /lib.rs | 312 | //- /lib.rs |
@@ -363,7 +363,7 @@ mod tests { | |||
363 | 363 | ||
364 | #[test] | 364 | #[test] |
365 | fn completes_struct_associated_method() { | 365 | fn completes_struct_associated_method() { |
366 | assert_debug_snapshot_matches!( | 366 | assert_debug_snapshot!( |
367 | do_reference_completion( | 367 | do_reference_completion( |
368 | " | 368 | " |
369 | //- /lib.rs | 369 | //- /lib.rs |
@@ -396,7 +396,7 @@ mod tests { | |||
396 | 396 | ||
397 | #[test] | 397 | #[test] |
398 | fn completes_struct_associated_const() { | 398 | fn completes_struct_associated_const() { |
399 | assert_debug_snapshot_matches!( | 399 | assert_debug_snapshot!( |
400 | do_reference_completion( | 400 | do_reference_completion( |
401 | " | 401 | " |
402 | //- /lib.rs | 402 | //- /lib.rs |
@@ -429,7 +429,7 @@ mod tests { | |||
429 | 429 | ||
430 | #[test] | 430 | #[test] |
431 | fn completes_struct_associated_type() { | 431 | fn completes_struct_associated_type() { |
432 | assert_debug_snapshot_matches!( | 432 | assert_debug_snapshot!( |
433 | do_reference_completion( | 433 | do_reference_completion( |
434 | " | 434 | " |
435 | //- /lib.rs | 435 | //- /lib.rs |
@@ -462,7 +462,7 @@ mod tests { | |||
462 | 462 | ||
463 | #[test] | 463 | #[test] |
464 | fn completes_enum_associated_method() { | 464 | fn completes_enum_associated_method() { |
465 | assert_debug_snapshot_matches!( | 465 | assert_debug_snapshot!( |
466 | do_reference_completion( | 466 | do_reference_completion( |
467 | " | 467 | " |
468 | //- /lib.rs | 468 | //- /lib.rs |
@@ -495,7 +495,7 @@ mod tests { | |||
495 | 495 | ||
496 | #[test] | 496 | #[test] |
497 | fn completes_union_associated_method() { | 497 | fn completes_union_associated_method() { |
498 | assert_debug_snapshot_matches!( | 498 | assert_debug_snapshot!( |
499 | do_reference_completion( | 499 | do_reference_completion( |
500 | " | 500 | " |
501 | //- /lib.rs | 501 | //- /lib.rs |
@@ -528,7 +528,7 @@ mod tests { | |||
528 | 528 | ||
529 | #[test] | 529 | #[test] |
530 | fn completes_use_paths_across_crates() { | 530 | fn completes_use_paths_across_crates() { |
531 | assert_debug_snapshot_matches!( | 531 | assert_debug_snapshot!( |
532 | do_reference_completion( | 532 | do_reference_completion( |
533 | " | 533 | " |
534 | //- /main.rs | 534 | //- /main.rs |
@@ -554,7 +554,7 @@ mod tests { | |||
554 | 554 | ||
555 | #[test] | 555 | #[test] |
556 | fn completes_type_alias() { | 556 | fn completes_type_alias() { |
557 | assert_debug_snapshot_matches!( | 557 | assert_debug_snapshot!( |
558 | do_reference_completion( | 558 | do_reference_completion( |
559 | " | 559 | " |
560 | struct S; | 560 | struct S; |