File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -80,12 +80,12 @@ public static Report Parse(string coverage) {
80
80
} ) ;
81
81
break ;
82
82
83
- case Token . BranchesFound : if ( sourceFile . Branches is not null ) sourceFile . Branches . Found = int . Parse ( data [ 0 ] ) ; break ;
84
- case Token . BranchesHit : if ( sourceFile . Branches is not null ) sourceFile . Branches . Hit = int . Parse ( data [ 0 ] ) ; break ;
85
- case Token . FunctionsFound : if ( sourceFile . Functions is not null ) sourceFile . Functions . Found = int . Parse ( data [ 0 ] ) ; break ;
86
- case Token . FunctionsHit : if ( sourceFile . Functions is not null ) sourceFile . Functions . Hit = int . Parse ( data [ 0 ] ) ; break ;
87
- case Token . LinesFound : if ( sourceFile . Lines is not null ) sourceFile . Lines . Found = int . Parse ( data [ 0 ] ) ; break ;
88
- case Token . LinesHit : if ( sourceFile . Lines is not null ) sourceFile . Lines . Hit = int . Parse ( data [ 0 ] ) ; break ;
83
+ case Token . BranchesFound when sourceFile . Branches is not null : sourceFile . Branches . Found = int . Parse ( data [ 0 ] ) ; break ;
84
+ case Token . BranchesHit when sourceFile . Branches is not null : sourceFile . Branches . Hit = int . Parse ( data [ 0 ] ) ; break ;
85
+ case Token . FunctionsFound when sourceFile . Functions is not null : sourceFile . Functions . Found = int . Parse ( data [ 0 ] ) ; break ;
86
+ case Token . FunctionsHit when sourceFile . Functions is not null : sourceFile . Functions . Hit = int . Parse ( data [ 0 ] ) ; break ;
87
+ case Token . LinesFound when sourceFile . Lines is not null : sourceFile . Lines . Found = int . Parse ( data [ 0 ] ) ; break ;
88
+ case Token . LinesHit when sourceFile . Lines is not null : sourceFile . Lines . Hit = int . Parse ( data [ 0 ] ) ; break ;
89
89
default : throw new FormatException ( $ "Unknown token at line { offset } .") ;
90
90
}
91
91
}
You can’t perform that action at this time.
0 commit comments