1
1
use std:: collections:: BTreeSet ;
2
2
3
3
use syntax:: { ast, AstNode , TextRange } ;
4
+ use test_utils:: mark;
4
5
5
6
use crate :: {
6
7
assist_context:: { AssistContext , Assists } ,
@@ -89,6 +90,7 @@ fn qualify_path_qualifier_start(
89
90
segment : ast:: PathSegment ,
90
91
qualifier_start : & str ,
91
92
) {
93
+ mark:: hit!( qualify_path_qualifier_start) ;
92
94
let group_label = GroupLabel ( format ! ( "Qualify {}" , qualifier_start) ) ;
93
95
for import in proposed_imports {
94
96
acc. add_group (
@@ -111,6 +113,7 @@ fn qualify_path_unqualified_name(
111
113
range : TextRange ,
112
114
name : & str ,
113
115
) {
116
+ mark:: hit!( qualify_path_unqualified_name) ;
114
117
let group_label = GroupLabel ( format ! ( "Qualify {}" , name) ) ;
115
118
for import in proposed_imports {
116
119
acc. add_group (
@@ -132,6 +135,7 @@ fn qualify_path_trait_assoc_item(
132
135
segment : ast:: PathSegment ,
133
136
trait_assoc_item_name : & str ,
134
137
) {
138
+ mark:: hit!( qualify_path_trait_assoc_item) ;
135
139
let group_label = GroupLabel ( format ! ( "Qualify {}" , trait_assoc_item_name) ) ;
136
140
for import in proposed_imports {
137
141
acc. add_group (
@@ -156,6 +160,7 @@ fn qualify_path_trait_method(
156
160
name_ref : ast:: NameRef ,
157
161
trait_method_name : & str ,
158
162
) {
163
+ mark:: hit!( qualify_path_trait_method) ;
159
164
let group_label = GroupLabel ( format ! ( "Qualify {}" , trait_method_name) ) ;
160
165
for import in proposed_imports {
161
166
acc. add_group (
@@ -178,6 +183,7 @@ mod tests {
178
183
use crate :: tests:: { check_assist, check_assist_not_applicable, check_assist_target} ;
179
184
#[ test]
180
185
fn applicable_when_found_an_import_partial ( ) {
186
+ mark:: check!( qualify_path_unqualified_name) ;
181
187
check_assist (
182
188
qualify_path,
183
189
r"
@@ -469,6 +475,7 @@ fn main() {
469
475
470
476
#[ test]
471
477
fn associated_struct_const ( ) {
478
+ mark:: check!( qualify_path_qualifier_start) ;
472
479
check_assist (
473
480
qualify_path,
474
481
r"
@@ -569,6 +576,7 @@ fn main() {
569
576
570
577
#[ test]
571
578
fn associated_trait_const ( ) {
579
+ mark:: check!( qualify_path_trait_assoc_item) ;
572
580
check_assist (
573
581
qualify_path,
574
582
r"
@@ -638,6 +646,7 @@ fn main() {
638
646
639
647
#[ test]
640
648
fn trait_method ( ) {
649
+ mark:: check!( qualify_path_trait_method) ;
641
650
check_assist (
642
651
qualify_path,
643
652
r"
0 commit comments