aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_completion/src/completions/keyword.rs
diff options
context:
space:
mode:
authorLukas Wirth <[email protected]>2021-06-17 14:32:34 +0100
committerLukas Wirth <[email protected]>2021-06-17 14:32:34 +0100
commita9a77671f2405e0cb65160c17268beec5114e259 (patch)
tree24b2c740f849b17ccab5d1bfa2575c9fea840897 /crates/ide_completion/src/completions/keyword.rs
parent9df848c58079a710869dcde2692466cc4b0ac78e (diff)
Move item specific completion tests
Diffstat (limited to 'crates/ide_completion/src/completions/keyword.rs')
-rw-r--r--crates/ide_completion/src/completions/keyword.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/crates/ide_completion/src/completions/keyword.rs b/crates/ide_completion/src/completions/keyword.rs
index af67f9315..c5cd3c2f7 100644
--- a/crates/ide_completion/src/completions/keyword.rs
+++ b/crates/ide_completion/src/completions/keyword.rs
@@ -388,22 +388,6 @@ fn quux() -> i32 {
388 } 388 }
389 389
390 #[test] 390 #[test]
391 fn test_where_keyword() {
392 check(
393 r"trait A $0",
394 expect![[r#"
395 kw where
396 "#]],
397 );
398 check(
399 r"impl A $0",
400 expect![[r#"
401 kw where
402 "#]],
403 );
404 }
405
406 #[test]
407 fn no_keyword_completion_in_comments() { 391 fn no_keyword_completion_in_comments() {
408 cov_mark::check!(no_keyword_completion_in_comments); 392 cov_mark::check!(no_keyword_completion_in_comments);
409 check( 393 check(
@@ -480,22 +464,6 @@ fn foo() {
480 } 464 }
481 465
482 #[test] 466 #[test]
483 fn before_field() {
484 check(
485 r#"
486struct Foo {
487 $0
488 pub f: i32,
489}
490"#,
491 expect![[r#"
492 kw pub(crate)
493 kw pub
494 "#]],
495 )
496 }
497
498 #[test]
499 fn skip_struct_initializer() { 467 fn skip_struct_initializer() {
500 cov_mark::check!(no_keyword_completion_in_record_lit); 468 cov_mark::check!(no_keyword_completion_in_record_lit);
501 check( 469 check(