-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coverage: Treat each match arm as a "branch" for branch coverage
- Loading branch information
Showing
7 changed files
with
199 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,47 @@ | ||
Function name: guard::branch_match_guard | ||
Raw bytes (85): 0x[01, 01, 06, 19, 0d, 05, 09, 0f, 15, 13, 11, 17, 0d, 05, 09, 0d, 01, 0c, 01, 01, 10, 1d, 03, 0b, 00, 0c, 15, 01, 14, 02, 0a, 0d, 03, 0e, 00, 0f, 19, 00, 14, 00, 19, 20, 0d, 02, 00, 14, 00, 1e, 0d, 00, 1d, 02, 0a, 11, 03, 0e, 00, 0f, 1d, 00, 14, 00, 19, 20, 11, 09, 00, 14, 00, 1e, 11, 00, 1d, 02, 0a, 17, 03, 0e, 02, 0a, 0b, 04, 01, 00, 02] | ||
Raw bytes (118): 0x[01, 01, 0c, 19, 0f, 1d, 2f, 05, 09, 1d, 2f, 05, 09, 19, 0d, 05, 09, 05, 09, 27, 15, 2b, 11, 2f, 0d, 05, 09, 10, 01, 0c, 01, 01, 10, 1d, 03, 0b, 00, 0c, 20, 15, 03, 01, 09, 00, 10, 15, 00, 14, 02, 0a, 20, 19, 0f, 03, 09, 00, 10, 0d, 00, 0e, 00, 0f, 19, 00, 14, 00, 19, 20, 0d, 16, 00, 14, 00, 1e, 0d, 00, 1d, 02, 0a, 20, 1d, 2f, 03, 09, 00, 10, 11, 00, 0e, 00, 0f, 1d, 00, 14, 00, 19, 20, 11, 09, 00, 14, 00, 1e, 11, 00, 1d, 02, 0a, 2f, 03, 0e, 02, 0a, 23, 04, 01, 00, 02] | ||
Number of files: 1 | ||
- file 0 => global file 1 | ||
Number of expressions: 6 | ||
- expression 0 operands: lhs = Counter(6), rhs = Counter(3) | ||
- expression 1 operands: lhs = Counter(1), rhs = Counter(2) | ||
- expression 2 operands: lhs = Expression(3, Add), rhs = Counter(5) | ||
- expression 3 operands: lhs = Expression(4, Add), rhs = Counter(4) | ||
- expression 4 operands: lhs = Expression(5, Add), rhs = Counter(3) | ||
- expression 5 operands: lhs = Counter(1), rhs = Counter(2) | ||
Number of file 0 mappings: 13 | ||
Number of expressions: 12 | ||
- expression 0 operands: lhs = Counter(6), rhs = Expression(3, Add) | ||
- expression 1 operands: lhs = Counter(7), rhs = Expression(11, Add) | ||
- expression 2 operands: lhs = Counter(1), rhs = Counter(2) | ||
- expression 3 operands: lhs = Counter(7), rhs = Expression(11, Add) | ||
- expression 4 operands: lhs = Counter(1), rhs = Counter(2) | ||
- expression 5 operands: lhs = Counter(6), rhs = Counter(3) | ||
- expression 6 operands: lhs = Counter(1), rhs = Counter(2) | ||
- expression 7 operands: lhs = Counter(1), rhs = Counter(2) | ||
- expression 8 operands: lhs = Expression(9, Add), rhs = Counter(5) | ||
- expression 9 operands: lhs = Expression(10, Add), rhs = Counter(4) | ||
- expression 10 operands: lhs = Expression(11, Add), rhs = Counter(3) | ||
- expression 11 operands: lhs = Counter(1), rhs = Counter(2) | ||
Number of file 0 mappings: 16 | ||
- Code(Counter(0)) at (prev + 12, 1) to (start + 1, 16) | ||
- Code(Counter(7)) at (prev + 3, 11) to (start + 0, 12) | ||
- Code(Counter(5)) at (prev + 1, 20) to (start + 2, 10) | ||
- Code(Counter(3)) at (prev + 3, 14) to (start + 0, 15) | ||
- Branch { true: Counter(5), false: Expression(0, Add) } at (prev + 1, 9) to (start + 0, 16) | ||
true = c5 | ||
false = (c6 + (c7 + (c1 + c2))) | ||
- Code(Counter(5)) at (prev + 0, 20) to (start + 2, 10) | ||
- Branch { true: Counter(6), false: Expression(3, Add) } at (prev + 3, 9) to (start + 0, 16) | ||
true = c6 | ||
false = (c7 + (c1 + c2)) | ||
- Code(Counter(3)) at (prev + 0, 14) to (start + 0, 15) | ||
- Code(Counter(6)) at (prev + 0, 20) to (start + 0, 25) | ||
- Branch { true: Counter(3), false: Expression(0, Sub) } at (prev + 0, 20) to (start + 0, 30) | ||
- Branch { true: Counter(3), false: Expression(5, Sub) } at (prev + 0, 20) to (start + 0, 30) | ||
true = c3 | ||
false = (c6 - c3) | ||
- Code(Counter(3)) at (prev + 0, 29) to (start + 2, 10) | ||
- Code(Counter(4)) at (prev + 3, 14) to (start + 0, 15) | ||
- Branch { true: Counter(7), false: Expression(11, Add) } at (prev + 3, 9) to (start + 0, 16) | ||
true = c7 | ||
false = (c1 + c2) | ||
- Code(Counter(4)) at (prev + 0, 14) to (start + 0, 15) | ||
- Code(Counter(7)) at (prev + 0, 20) to (start + 0, 25) | ||
- Branch { true: Counter(4), false: Counter(2) } at (prev + 0, 20) to (start + 0, 30) | ||
true = c4 | ||
false = c2 | ||
- Code(Counter(4)) at (prev + 0, 29) to (start + 2, 10) | ||
- Code(Expression(5, Add)) at (prev + 3, 14) to (start + 2, 10) | ||
- Code(Expression(11, Add)) at (prev + 3, 14) to (start + 2, 10) | ||
= (c1 + c2) | ||
- Code(Expression(2, Add)) at (prev + 4, 1) to (start + 0, 2) | ||
- Code(Expression(8, Add)) at (prev + 4, 1) to (start + 0, 2) | ||
= ((((c1 + c2) + c3) + c4) + c5) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.