Skip to content

Commit 4341cb7

Browse files
committed
I'd never even heard of a coverage map
1 parent b611b6b commit 4341cb7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/coverage/closure_macro.cov-map

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ Number of file 0 mappings: 5
2222
- Code(Counter(0)) at (prev + 3, 1) to (start + 0, 2)
2323

2424
Function name: closure_macro::main::{closure#0}
25-
Raw bytes (35): 0x[01, 01, 03, 01, 05, 05, 0b, 09, 00, 05, 01, 10, 1c, 03, 21, 05, 04, 11, 01, 27, 02, 03, 11, 00, 16, 00, 00, 17, 00, 1e, 07, 02, 09, 00, 0a]
25+
Raw bytes (35): 0x[01, 01, 03, 01, 05, 05, 0b, 09, 0d, 05, 01, 10, 1c, 03, 21, 05, 04, 11, 01, 27, 02, 03, 11, 00, 16, 0d, 00, 17, 00, 1e, 07, 02, 09, 00, 0a]
2626
Number of files: 1
2727
- file 0 => global file 1
2828
Number of expressions: 3
2929
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
3030
- expression 1 operands: lhs = Counter(1), rhs = Expression(2, Add)
31-
- expression 2 operands: lhs = Counter(2), rhs = Zero
31+
- expression 2 operands: lhs = Counter(2), rhs = Counter(3)
3232
Number of file 0 mappings: 5
3333
- Code(Counter(0)) at (prev + 16, 28) to (start + 3, 33)
3434
- Code(Counter(1)) at (prev + 4, 17) to (start + 1, 39)
3535
- Code(Expression(0, Sub)) at (prev + 3, 17) to (start + 0, 22)
3636
= (c0 - c1)
37-
- Code(Zero) at (prev + 0, 23) to (start + 0, 30)
37+
- Code(Counter(3)) at (prev + 0, 23) to (start + 0, 30)
3838
- Code(Expression(1, Add)) at (prev + 2, 9) to (start + 0, 10)
39-
= (c1 + (c2 + Zero))
39+
= (c1 + (c2 + c3))
4040

tests/coverage/closure_macro_async.cov-map

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@ Number of file 0 mappings: 5
3030
- Code(Counter(0)) at (prev + 3, 1) to (start + 0, 2)
3131

3232
Function name: closure_macro_async::test::{closure#0}::{closure#0}
33-
Raw bytes (35): 0x[01, 01, 03, 01, 05, 05, 0b, 09, 00, 05, 01, 12, 1c, 03, 21, 05, 04, 11, 01, 27, 02, 03, 11, 00, 16, 00, 00, 17, 00, 1e, 07, 02, 09, 00, 0a]
33+
Raw bytes (35): 0x[01, 01, 03, 01, 05, 05, 0b, 09, 0d, 05, 01, 12, 1c, 03, 21, 05, 04, 11, 01, 27, 02, 03, 11, 00, 16, 0d, 00, 17, 00, 1e, 07, 02, 09, 00, 0a]
3434
Number of files: 1
3535
- file 0 => global file 1
3636
Number of expressions: 3
3737
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
3838
- expression 1 operands: lhs = Counter(1), rhs = Expression(2, Add)
39-
- expression 2 operands: lhs = Counter(2), rhs = Zero
39+
- expression 2 operands: lhs = Counter(2), rhs = Counter(3)
4040
Number of file 0 mappings: 5
4141
- Code(Counter(0)) at (prev + 18, 28) to (start + 3, 33)
4242
- Code(Counter(1)) at (prev + 4, 17) to (start + 1, 39)
4343
- Code(Expression(0, Sub)) at (prev + 3, 17) to (start + 0, 22)
4444
= (c0 - c1)
45-
- Code(Zero) at (prev + 0, 23) to (start + 0, 30)
45+
- Code(Counter(3)) at (prev + 0, 23) to (start + 0, 30)
4646
- Code(Expression(1, Add)) at (prev + 2, 9) to (start + 0, 10)
47-
= (c1 + (c2 + Zero))
47+
= (c1 + (c2 + c3))
4848

0 commit comments

Comments
 (0)