Skip to content

Commit 7f985c4

Browse files
committed
Bless coverage tests
1 parent ffafc9e commit 7f985c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1219
-299
lines changed

tests/coverage-map/if.cov-map

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
Function name: if::main
2-
Raw bytes (28): 0x[01, 01, 02, 01, 05, 05, 02, 04, 01, 03, 01, 02, 0c, 05, 02, 0d, 02, 06, 02, 02, 06, 00, 07, 07, 01, 05, 01, 02]
2+
Raw bytes (35): 0x[01, 01, 02, 01, 05, 05, 02, 05, 01, 03, 01, 02, 0c, 20, 05, 02, 02, 08, 00, 0c, 05, 00, 0d, 02, 06, 02, 02, 06, 00, 07, 07, 01, 05, 01, 02]
33
Number of files: 1
44
- file 0 => global file 1
55
Number of expressions: 2
66
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
77
- expression 1 operands: lhs = Counter(1), rhs = Expression(0, Sub)
8-
Number of file 0 mappings: 4
8+
Number of file 0 mappings: 5
99
- Code(Counter(0)) at (prev + 3, 1) to (start + 2, 12)
10-
- Code(Counter(1)) at (prev + 2, 13) to (start + 2, 6)
10+
- Branch at (prev + 2, 8) to (start + 0, 12)
11+
true = c1
12+
false = (c0 - c1)
13+
- Code(Counter(1)) at (prev + 0, 13) to (start + 2, 6)
1114
- Code(Expression(0, Sub)) at (prev + 2, 6) to (start + 0, 7)
1215
= (c0 - c1)
1316
- Code(Expression(1, Add)) at (prev + 1, 5) to (start + 1, 2)

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

+28-15
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@ Number of file 0 mappings: 1
77
- Code(Counter(0)) at (prev + 20, 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, 14, 17, 03, 09, 05, 03, 0a, 02, 06, 02, 02, 06, 00, 07, 07, 01, 01, 00, 02]
10+
Raw bytes (35): 0x[01, 01, 02, 01, 05, 05, 02, 05, 01, 14, 17, 03, 09, 20, 05, 02, 03, 08, 00, 09, 05, 00, 0a, 02, 06, 02, 02, 06, 00, 07, 07, 01, 01, 00, 02]
1111
Number of files: 1
1212
- file 0 => global file 1
1313
Number of expressions: 2
1414
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
1515
- expression 1 operands: lhs = Counter(1), rhs = Expression(0, Sub)
16-
Number of file 0 mappings: 4
16+
Number of file 0 mappings: 5
1717
- Code(Counter(0)) at (prev + 20, 23) to (start + 3, 9)
18-
- Code(Counter(1)) at (prev + 3, 10) to (start + 2, 6)
18+
- Branch at (prev + 3, 8) to (start + 0, 9)
19+
true = c1
20+
false = (c0 - c1)
21+
- Code(Counter(1)) at (prev + 0, 10) to (start + 2, 6)
1922
- Code(Expression(0, Sub)) at (prev + 2, 6) to (start + 0, 7)
2023
= (c0 - c1)
2124
- Code(Expression(1, Add)) at (prev + 1, 1) to (start + 0, 2)
@@ -38,7 +41,7 @@ Number of file 0 mappings: 1
3841
- Code(Counter(0)) at (prev + 31, 36) to (start + 2, 2)
3942

4043
Function name: async2::executor::block_on::<async2::async_func::{closure#0}>
41-
Raw bytes (44): 0x[01, 01, 05, 0b, 05, 01, 05, 01, 05, 02, 00, 02, 00, 06, 01, 33, 05, 0a, 36, 02, 0d, 20, 00, 23, 0b, 00, 27, 00, 49, 0f, 01, 17, 00, 1a, 05, 01, 0e, 00, 0f, 13, 02, 05, 00, 06]
44+
Raw bytes (51): 0x[01, 01, 05, 0b, 05, 01, 05, 01, 05, 02, 00, 02, 00, 07, 01, 33, 05, 0a, 36, 20, 05, 02, 0d, 14, 00, 24, 02, 00, 20, 00, 23, 0b, 00, 27, 00, 49, 0f, 01, 17, 00, 1a, 05, 01, 0e, 00, 0f, 13, 02, 05, 00, 06]
4245
Number of files: 1
4346
- file 0 => global file 1
4447
Number of expressions: 5
@@ -47,9 +50,12 @@ Number of expressions: 5
4750
- expression 2 operands: lhs = Counter(0), rhs = Counter(1)
4851
- expression 3 operands: lhs = Expression(0, Sub), rhs = Zero
4952
- expression 4 operands: lhs = Expression(0, Sub), rhs = Zero
50-
Number of file 0 mappings: 6
53+
Number of file 0 mappings: 7
5154
- Code(Counter(0)) at (prev + 51, 5) to (start + 10, 54)
52-
- Code(Expression(0, Sub)) at (prev + 13, 32) to (start + 0, 35)
55+
- Branch at (prev + 13, 20) to (start + 0, 36)
56+
true = c1
57+
false = ((c0 + c1) - c1)
58+
- Code(Expression(0, Sub)) at (prev + 0, 32) to (start + 0, 35)
5359
= ((c0 + c1) - c1)
5460
- Code(Expression(2, Add)) at (prev + 0, 39) to (start + 0, 73)
5561
= (c0 + c1)
@@ -60,7 +66,7 @@ Number of file 0 mappings: 6
6066
= (((c0 + c1) - c1) + Zero)
6167

6268
Function name: async2::executor::block_on::<async2::async_func_just_println::{closure#0}>
63-
Raw bytes (44): 0x[01, 01, 05, 0b, 05, 01, 05, 01, 05, 02, 00, 02, 00, 06, 01, 33, 05, 0a, 36, 02, 0d, 20, 00, 23, 0b, 00, 27, 00, 49, 0f, 01, 17, 00, 1a, 05, 01, 0e, 00, 0f, 13, 02, 05, 00, 06]
69+
Raw bytes (51): 0x[01, 01, 05, 0b, 05, 01, 05, 01, 05, 02, 00, 02, 00, 07, 01, 33, 05, 0a, 36, 20, 05, 02, 0d, 14, 00, 24, 02, 00, 20, 00, 23, 0b, 00, 27, 00, 49, 0f, 01, 17, 00, 1a, 05, 01, 0e, 00, 0f, 13, 02, 05, 00, 06]
6470
Number of files: 1
6571
- file 0 => global file 1
6672
Number of expressions: 5
@@ -69,9 +75,12 @@ Number of expressions: 5
6975
- expression 2 operands: lhs = Counter(0), rhs = Counter(1)
7076
- expression 3 operands: lhs = Expression(0, Sub), rhs = Zero
7177
- expression 4 operands: lhs = Expression(0, Sub), rhs = Zero
72-
Number of file 0 mappings: 6
78+
Number of file 0 mappings: 7
7379
- Code(Counter(0)) at (prev + 51, 5) to (start + 10, 54)
74-
- Code(Expression(0, Sub)) at (prev + 13, 32) to (start + 0, 35)
80+
- Branch at (prev + 13, 20) to (start + 0, 36)
81+
true = c1
82+
false = ((c0 + c1) - c1)
83+
- Code(Expression(0, Sub)) at (prev + 0, 32) to (start + 0, 35)
7584
= ((c0 + c1) - c1)
7685
- Code(Expression(2, Add)) at (prev + 0, 39) to (start + 0, 73)
7786
= (c0 + c1)
@@ -122,15 +131,19 @@ Number of file 0 mappings: 1
122131
- Code(Counter(0)) at (prev + 35, 1) to (start + 7, 2)
123132

124133
Function name: async2::non_async_func
125-
Raw bytes (26): 0x[01, 01, 01, 05, 00, 04, 01, 09, 01, 03, 09, 05, 03, 0a, 02, 06, 00, 02, 06, 00, 07, 03, 01, 01, 00, 02]
134+
Raw bytes (35): 0x[01, 01, 02, 00, 00, 05, 00, 05, 01, 09, 01, 03, 09, 20, 05, 02, 03, 08, 00, 09, 05, 00, 0a, 02, 06, 00, 02, 06, 00, 07, 07, 01, 01, 00, 02]
126135
Number of files: 1
127136
- file 0 => global file 1
128-
Number of expressions: 1
129-
- expression 0 operands: lhs = Counter(1), rhs = Zero
130-
Number of file 0 mappings: 4
137+
Number of expressions: 2
138+
- expression 0 operands: lhs = Zero, rhs = Zero
139+
- expression 1 operands: lhs = Counter(1), rhs = Zero
140+
Number of file 0 mappings: 5
131141
- Code(Counter(0)) at (prev + 9, 1) to (start + 3, 9)
132-
- Code(Counter(1)) at (prev + 3, 10) to (start + 2, 6)
142+
- Branch at (prev + 3, 8) to (start + 0, 9)
143+
true = c1
144+
false = (Zero - Zero)
145+
- Code(Counter(1)) at (prev + 0, 10) to (start + 2, 6)
133146
- Code(Zero) at (prev + 2, 6) to (start + 0, 7)
134-
- Code(Expression(0, Add)) at (prev + 1, 1) to (start + 0, 2)
147+
- Code(Expression(1, Add)) at (prev + 1, 1) to (start + 0, 2)
135148
= (c1 + Zero)
136149

0 commit comments

Comments
 (0)