11use std:: collections:: BTreeSet ;
22
33use syntax:: { ast, AstNode , TextRange } ;
4+ use test_utils:: mark;
45
56use crate :: {
67 assist_context:: { AssistContext , Assists } ,
@@ -89,6 +90,7 @@ fn qualify_path_qualifier_start(
8990 segment : ast:: PathSegment ,
9091 qualifier_start : & str ,
9192) {
93+ mark:: hit!( qualify_path_qualifier_start) ;
9294 let group_label = GroupLabel ( format ! ( "Qualify {}" , qualifier_start) ) ;
9395 for import in proposed_imports {
9496 acc. add_group (
@@ -111,6 +113,7 @@ fn qualify_path_unqualified_name(
111113 range : TextRange ,
112114 name : & str ,
113115) {
116+ mark:: hit!( qualify_path_unqualified_name) ;
114117 let group_label = GroupLabel ( format ! ( "Qualify {}" , name) ) ;
115118 for import in proposed_imports {
116119 acc. add_group (
@@ -132,6 +135,7 @@ fn qualify_path_trait_assoc_item(
132135 segment : ast:: PathSegment ,
133136 trait_assoc_item_name : & str ,
134137) {
138+ mark:: hit!( qualify_path_trait_assoc_item) ;
135139 let group_label = GroupLabel ( format ! ( "Qualify {}" , trait_assoc_item_name) ) ;
136140 for import in proposed_imports {
137141 acc. add_group (
@@ -156,6 +160,7 @@ fn qualify_path_trait_method(
156160 name_ref : ast:: NameRef ,
157161 trait_method_name : & str ,
158162) {
163+ mark:: hit!( qualify_path_trait_method) ;
159164 let group_label = GroupLabel ( format ! ( "Qualify {}" , trait_method_name) ) ;
160165 for import in proposed_imports {
161166 acc. add_group (
@@ -178,6 +183,7 @@ mod tests {
178183 use crate :: tests:: { check_assist, check_assist_not_applicable, check_assist_target} ;
179184 #[ test]
180185 fn applicable_when_found_an_import_partial ( ) {
186+ mark:: check!( qualify_path_unqualified_name) ;
181187 check_assist (
182188 qualify_path,
183189 r"
@@ -469,6 +475,7 @@ fn main() {
469475
470476 #[ test]
471477 fn associated_struct_const ( ) {
478+ mark:: check!( qualify_path_qualifier_start) ;
472479 check_assist (
473480 qualify_path,
474481 r"
@@ -569,6 +576,7 @@ fn main() {
569576
570577 #[ test]
571578 fn associated_trait_const ( ) {
579+ mark:: check!( qualify_path_trait_assoc_item) ;
572580 check_assist (
573581 qualify_path,
574582 r"
@@ -638,6 +646,7 @@ fn main() {
638646
639647 #[ test]
640648 fn trait_method ( ) {
649+ mark:: check!( qualify_path_trait_method) ;
641650 check_assist (
642651 qualify_path,
643652 r"
0 commit comments