@@ -7,7 +7,7 @@ use ra_syntax::{
77 SyntaxNode , TextSize ,
88} ;
99use stdx:: format_to;
10- use test_utils:: tested_by ;
10+ use test_utils:: mark ;
1111
1212use crate :: { AssistContext , AssistId , Assists } ;
1313
@@ -33,7 +33,7 @@ pub(crate) fn introduce_variable(acc: &mut Assists, ctx: &AssistContext) -> Opti
3333 }
3434 let node = ctx. covering_element ( ) ;
3535 if node. kind ( ) == COMMENT {
36- tested_by ! ( introduce_var_in_comment_is_not_applicable) ;
36+ mark :: hit !( introduce_var_in_comment_is_not_applicable) ;
3737 return None ;
3838 }
3939 let expr = node. ancestors ( ) . find_map ( valid_target_expr) ?;
@@ -61,7 +61,7 @@ pub(crate) fn introduce_variable(acc: &mut Assists, ctx: &AssistContext) -> Opti
6161 false
6262 } ;
6363 if is_full_stmt {
64- tested_by ! ( test_introduce_var_expr_stmt) ;
64+ mark :: hit !( test_introduce_var_expr_stmt) ;
6565 if full_stmt. unwrap ( ) . semicolon_token ( ) . is_none ( ) {
6666 buf. push_str ( ";" ) ;
6767 }
@@ -113,7 +113,7 @@ fn anchor_stmt(expr: ast::Expr) -> Option<(SyntaxNode, bool)> {
113113 expr. syntax ( ) . ancestors ( ) . find_map ( |node| {
114114 if let Some ( expr) = node. parent ( ) . and_then ( ast:: BlockExpr :: cast) . and_then ( |it| it. expr ( ) ) {
115115 if expr. syntax ( ) == & node {
116- tested_by ! ( test_introduce_var_last_expr) ;
116+ mark :: hit !( test_introduce_var_last_expr) ;
117117 return Some ( ( node, false ) ) ;
118118 }
119119 }
@@ -134,7 +134,7 @@ fn anchor_stmt(expr: ast::Expr) -> Option<(SyntaxNode, bool)> {
134134
135135#[ cfg( test) ]
136136mod tests {
137- use test_utils:: covers ;
137+ use test_utils:: mark ;
138138
139139 use crate :: tests:: { check_assist, check_assist_not_applicable, check_assist_target} ;
140140
@@ -158,13 +158,13 @@ fn foo() {
158158
159159 #[ test]
160160 fn introduce_var_in_comment_is_not_applicable ( ) {
161- covers ! ( introduce_var_in_comment_is_not_applicable) ;
161+ mark :: check !( introduce_var_in_comment_is_not_applicable) ;
162162 check_assist_not_applicable ( introduce_variable, "fn main() { 1 + /* <|>comment<|> */ 1; }" ) ;
163163 }
164164
165165 #[ test]
166166 fn test_introduce_var_expr_stmt ( ) {
167- covers ! ( test_introduce_var_expr_stmt) ;
167+ mark :: check !( test_introduce_var_expr_stmt) ;
168168 check_assist (
169169 introduce_variable,
170170 "
@@ -209,7 +209,7 @@ fn foo() {
209209
210210 #[ test]
211211 fn test_introduce_var_last_expr ( ) {
212- covers ! ( test_introduce_var_last_expr) ;
212+ mark :: check !( test_introduce_var_last_expr) ;
213213 check_assist (
214214 introduce_variable,
215215 "
0 commit comments