diff options
-rw-r--r-- | crates/ra_analysis/src/completion/complete_scope.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/ra_analysis/src/completion/complete_scope.rs b/crates/ra_analysis/src/completion/complete_scope.rs index 4ffd63016..ddaf13b88 100644 --- a/crates/ra_analysis/src/completion/complete_scope.rs +++ b/crates/ra_analysis/src/completion/complete_scope.rs | |||
@@ -64,7 +64,7 @@ mod tests { | |||
64 | } | 64 | } |
65 | 65 | ||
66 | #[test] | 66 | #[test] |
67 | fn test_completion_let_scope() { | 67 | fn completes_bindings_from_let() { |
68 | check_reference_completion( | 68 | check_reference_completion( |
69 | r" | 69 | r" |
70 | fn quux(x: i32) { | 70 | fn quux(x: i32) { |
@@ -78,7 +78,7 @@ mod tests { | |||
78 | } | 78 | } |
79 | 79 | ||
80 | #[test] | 80 | #[test] |
81 | fn test_completion_if_let_scope() { | 81 | fn completes_bindings_from_if_let() { |
82 | check_reference_completion( | 82 | check_reference_completion( |
83 | r" | 83 | r" |
84 | fn quux() { | 84 | fn quux() { |
@@ -96,7 +96,7 @@ mod tests { | |||
96 | } | 96 | } |
97 | 97 | ||
98 | #[test] | 98 | #[test] |
99 | fn test_completion_for_scope() { | 99 | fn completes_bindings_from_for() { |
100 | check_reference_completion( | 100 | check_reference_completion( |
101 | r" | 101 | r" |
102 | fn quux() { | 102 | fn quux() { |
@@ -110,7 +110,7 @@ mod tests { | |||
110 | } | 110 | } |
111 | 111 | ||
112 | #[test] | 112 | #[test] |
113 | fn test_completion_mod_scope() { | 113 | fn completes_module_items() { |
114 | check_reference_completion( | 114 | check_reference_completion( |
115 | r" | 115 | r" |
116 | struct Foo; | 116 | struct Foo; |
@@ -124,7 +124,7 @@ mod tests { | |||
124 | } | 124 | } |
125 | 125 | ||
126 | #[test] | 126 | #[test] |
127 | fn test_completion_mod_scope_nested() { | 127 | fn completes_module_items_in_nested_modules() { |
128 | check_reference_completion( | 128 | check_reference_completion( |
129 | r" | 129 | r" |
130 | struct Foo; | 130 | struct Foo; |
@@ -138,7 +138,7 @@ mod tests { | |||
138 | } | 138 | } |
139 | 139 | ||
140 | #[test] | 140 | #[test] |
141 | fn test_complete_type() { | 141 | fn completes_return_type() { |
142 | check_reference_completion( | 142 | check_reference_completion( |
143 | r" | 143 | r" |
144 | struct Foo; | 144 | struct Foo; |
@@ -149,7 +149,7 @@ mod tests { | |||
149 | } | 149 | } |
150 | 150 | ||
151 | #[test] | 151 | #[test] |
152 | fn test_complete_shadowing() { | 152 | fn dont_show_to_completions_for_shadowing() { |
153 | check_reference_completion( | 153 | check_reference_completion( |
154 | r" | 154 | r" |
155 | fn foo() -> { | 155 | fn foo() -> { |
@@ -165,7 +165,7 @@ mod tests { | |||
165 | } | 165 | } |
166 | 166 | ||
167 | #[test] | 167 | #[test] |
168 | fn test_complete_self() { | 168 | fn completes_self_in_methods() { |
169 | check_reference_completion(r"impl S { fn foo(&self) { <|> } }", "self") | 169 | check_reference_completion(r"impl S { fn foo(&self) { <|> } }", "self") |
170 | } | 170 | } |
171 | } | 171 | } |