Skip to content

Commit 1c4fa24

Browse files
committed
Bless coverage maps.
1 parent 3ecd4f6 commit 1c4fa24

File tree

5 files changed

+209
-365
lines changed

5 files changed

+209
-365
lines changed

tests/coverage-map/status-quo/async2.cov-map

+6-8
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@ Number of file 0 mappings: 1
77
- Code(Counter(0)) at (prev + 11, 1) to (start + 0, 23)
88

99
Function name: async2::async_func::{closure#0}
10-
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 0b, 17, 03, 09, 05, 03, 0a, 02, 06, 02, 02, 06, 00, 07, 07, 01, 01, 00, 02]
10+
Raw bytes (26): 0x[01, 01, 01, 05, 00, 04, 01, 0b, 17, 03, 09, 05, 03, 0a, 02, 06, 00, 02, 06, 00, 07, 03, 01, 01, 00, 02]
1111
Number of files: 1
1212
- file 0 => global file 1
13-
Number of expressions: 2
14-
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
15-
- expression 1 operands: lhs = Counter(1), rhs = Expression(0, Sub)
13+
Number of expressions: 1
14+
- expression 0 operands: lhs = Counter(1), rhs = Zero
1615
Number of file 0 mappings: 4
1716
- Code(Counter(0)) at (prev + 11, 23) to (start + 3, 9)
1817
- Code(Counter(1)) at (prev + 3, 10) to (start + 2, 6)
19-
- Code(Expression(0, Sub)) at (prev + 2, 6) to (start + 0, 7)
20-
= (c0 - c1)
21-
- Code(Expression(1, Add)) at (prev + 1, 1) to (start + 0, 2)
22-
= (c1 + (c0 - c1))
18+
- Code(Zero) at (prev + 2, 6) to (start + 0, 7)
19+
- Code(Expression(0, Add)) at (prev + 1, 1) to (start + 0, 2)
20+
= (c1 + Zero)
2321

2422
Function name: async2::async_func_just_println
2523
Raw bytes (9): 0x[01, 01, 00, 01, 01, 13, 01, 00, 24]

tests/coverage-map/status-quo/closure.cov-map

+12-20
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,16 @@ Number of file 0 mappings: 24
7474
- Code(Expression(21, Add)) at (prev + 1, 5) to (start + 3, 2)
7575
= (c1 + (c0 - c1))
7676

77-
Function name: closure::main::{closure#0}
78-
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 27, 05, 02, 14, 05, 02, 15, 02, 0a, 02, 02, 0a, 00, 0b, 07, 01, 09, 01, 06]
77+
Function name: closure::main::{closure#0} (unused)
78+
Raw bytes (24): 0x[01, 01, 00, 04, 01, 27, 05, 02, 14, 00, 02, 15, 02, 0a, 00, 02, 0a, 00, 0b, 00, 01, 09, 01, 06]
7979
Number of files: 1
8080
- file 0 => global file 1
81-
Number of expressions: 2
82-
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
83-
- expression 1 operands: lhs = Counter(1), rhs = Expression(0, Sub)
81+
Number of expressions: 0
8482
Number of file 0 mappings: 4
8583
- Code(Counter(0)) at (prev + 39, 5) to (start + 2, 20)
86-
- Code(Counter(1)) at (prev + 2, 21) to (start + 2, 10)
87-
- Code(Expression(0, Sub)) at (prev + 2, 10) to (start + 0, 11)
88-
= (c0 - c1)
89-
- Code(Expression(1, Add)) at (prev + 1, 9) to (start + 1, 6)
90-
= (c1 + (c0 - c1))
84+
- Code(Zero) at (prev + 2, 21) to (start + 2, 10)
85+
- Code(Zero) at (prev + 2, 10) to (start + 0, 11)
86+
- Code(Zero) at (prev + 1, 9) to (start + 1, 6)
9187

9288
Function name: closure::main::{closure#10} (unused)
9389
Raw bytes (10): 0x[01, 01, 00, 01, 01, 9a, 01, 07, 00, 21]
@@ -203,20 +199,16 @@ Number of file 0 mappings: 6
203199
- Code(Expression(4, Add)) at (prev + 2, 9) to (start + 0, 10)
204200
= ((c1 + (c0 - c1)) + Zero)
205201

206-
Function name: closure::main::{closure#18}
207-
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 18, 0d, 02, 1c, 05, 02, 1d, 02, 12, 02, 02, 12, 00, 13, 07, 01, 11, 01, 0e]
202+
Function name: closure::main::{closure#18} (unused)
203+
Raw bytes (24): 0x[01, 01, 00, 04, 01, 18, 0d, 02, 1c, 00, 02, 1d, 02, 12, 00, 02, 12, 00, 13, 00, 01, 11, 01, 0e]
208204
Number of files: 1
209205
- file 0 => global file 1
210-
Number of expressions: 2
211-
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
212-
- expression 1 operands: lhs = Counter(1), rhs = Expression(0, Sub)
206+
Number of expressions: 0
213207
Number of file 0 mappings: 4
214208
- Code(Counter(0)) at (prev + 24, 13) to (start + 2, 28)
215-
- Code(Counter(1)) at (prev + 2, 29) to (start + 2, 18)
216-
- Code(Expression(0, Sub)) at (prev + 2, 18) to (start + 0, 19)
217-
= (c0 - c1)
218-
- Code(Expression(1, Add)) at (prev + 1, 17) to (start + 1, 14)
219-
= (c1 + (c0 - c1))
209+
- Code(Zero) at (prev + 2, 29) to (start + 2, 18)
210+
- Code(Zero) at (prev + 2, 18) to (start + 0, 19)
211+
- Code(Zero) at (prev + 1, 17) to (start + 1, 14)
220212

221213
Function name: closure::main::{closure#19}
222214
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 42, 0d, 02, 1c, 05, 02, 1d, 02, 12, 02, 02, 12, 00, 13, 07, 01, 11, 01, 0e]

0 commit comments

Comments
 (0)