coverage: Instead of splitting, just discard any span that overlaps a hole
This commit is contained in:
parent
577272eede
commit
62a533ce78
10 changed files with 63 additions and 88 deletions
|
|
@ -1,5 +1,5 @@
|
|||
Function name: async_block::main
|
||||
Raw bytes (36): 0x[01, 01, 01, 05, 01, 06, 01, 07, 01, 00, 0b, 02, 01, 09, 00, 0a, 05, 00, 0e, 00, 13, 02, 00, 14, 01, 16, 02, 07, 0a, 02, 06, 01, 03, 01, 00, 02]
|
||||
Raw bytes (36): 0x[01, 01, 01, 05, 01, 06, 01, 07, 01, 00, 0b, 02, 01, 09, 00, 0a, 05, 00, 0e, 00, 13, 02, 01, 0d, 00, 13, 02, 07, 09, 00, 22, 01, 02, 01, 00, 02]
|
||||
Number of files: 1
|
||||
- file 0 => global file 1
|
||||
Number of expressions: 1
|
||||
|
|
@ -9,11 +9,11 @@ Number of file 0 mappings: 6
|
|||
- Code(Expression(0, Sub)) at (prev + 1, 9) to (start + 0, 10)
|
||||
= (c1 - c0)
|
||||
- Code(Counter(1)) at (prev + 0, 14) to (start + 0, 19)
|
||||
- Code(Expression(0, Sub)) at (prev + 0, 20) to (start + 1, 22)
|
||||
- Code(Expression(0, Sub)) at (prev + 1, 13) to (start + 0, 19)
|
||||
= (c1 - c0)
|
||||
- Code(Expression(0, Sub)) at (prev + 7, 10) to (start + 2, 6)
|
||||
- Code(Expression(0, Sub)) at (prev + 7, 9) to (start + 0, 34)
|
||||
= (c1 - c0)
|
||||
- Code(Counter(0)) at (prev + 3, 1) to (start + 0, 2)
|
||||
- Code(Counter(0)) at (prev + 2, 1) to (start + 0, 2)
|
||||
Highest counter ID seen: c1
|
||||
|
||||
Function name: async_block::main::{closure#0}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,6 @@
|
|||
LL| 12| }
|
||||
LL| 16| };
|
||||
LL| 16| executor::block_on(future);
|
||||
LL| 16| }
|
||||
LL| | }
|
||||
LL| 1|}
|
||||
|
||||
|
|
|
|||
|
|
@ -30,21 +30,23 @@ Number of file 0 mappings: 2
|
|||
Highest counter ID seen: c0
|
||||
|
||||
Function name: async_closure::main::{closure#0}
|
||||
Raw bytes (9): 0x[01, 01, 00, 01, 01, 0b, 23, 00, 24]
|
||||
Raw bytes (14): 0x[01, 01, 00, 02, 01, 0b, 22, 00, 23, 01, 00, 23, 00, 24]
|
||||
Number of files: 1
|
||||
- file 0 => global file 1
|
||||
Number of expressions: 0
|
||||
Number of file 0 mappings: 1
|
||||
- Code(Counter(0)) at (prev + 11, 35) to (start + 0, 36)
|
||||
Number of file 0 mappings: 2
|
||||
- Code(Counter(0)) at (prev + 11, 34) to (start + 0, 35)
|
||||
- Code(Counter(0)) at (prev + 0, 35) to (start + 0, 36)
|
||||
Highest counter ID seen: c0
|
||||
|
||||
Function name: async_closure::main::{closure#0}
|
||||
Raw bytes (9): 0x[01, 01, 00, 01, 01, 0b, 23, 00, 24]
|
||||
Raw bytes (14): 0x[01, 01, 00, 02, 01, 0b, 22, 00, 23, 01, 00, 23, 00, 24]
|
||||
Number of files: 1
|
||||
- file 0 => global file 1
|
||||
Number of expressions: 0
|
||||
Number of file 0 mappings: 1
|
||||
- Code(Counter(0)) at (prev + 11, 35) to (start + 0, 36)
|
||||
Number of file 0 mappings: 2
|
||||
- Code(Counter(0)) at (prev + 11, 34) to (start + 0, 35)
|
||||
- Code(Counter(0)) at (prev + 0, 35) to (start + 0, 36)
|
||||
Highest counter ID seen: c0
|
||||
|
||||
Function name: async_closure::main::{closure#0}::{closure#0}::<i16>
|
||||
|
|
|
|||
|
|
@ -9,13 +9,15 @@
|
|||
LL| |
|
||||
LL| 1|pub fn main() {
|
||||
LL| 2| let async_closure = async || {};
|
||||
^1
|
||||
------------------
|
||||
| async_closure::main::{closure#0}:
|
||||
| LL| 1| let async_closure = async || {};
|
||||
------------------
|
||||
| async_closure::main::{closure#0}:
|
||||
| LL| 1| let async_closure = async || {};
|
||||
------------------
|
||||
| async_closure::main::{closure#0}::{closure#0}::<i16>:
|
||||
| LL| 1| let async_closure = async || {};
|
||||
------------------
|
||||
LL| 1| executor::block_on(async_closure());
|
||||
LL| 1| executor::block_on(call_once(async_closure));
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
Function name: closure::main
|
||||
Raw bytes (126): 0x[01, 01, 01, 01, 05, 18, 01, 09, 01, 0f, 0d, 01, 16, 0e, 06, 0a, 01, 10, 05, 13, 0d, 01, 1a, 0e, 06, 0a, 01, 10, 05, 0c, 16, 01, 16, 05, 0d, 18, 01, 19, 09, 01, 1e, 01, 04, 09, 00, 29, 01, 01, 09, 00, 2d, 01, 01, 09, 00, 24, 01, 05, 09, 00, 24, 01, 02, 09, 00, 21, 01, 04, 09, 00, 21, 01, 04, 09, 00, 28, 01, 09, 09, 00, 32, 01, 04, 09, 00, 33, 01, 07, 09, 00, 4b, 01, 08, 09, 00, 48, 01, 0a, 09, 00, 47, 01, 08, 09, 00, 44, 01, 0a, 08, 00, 10, 05, 00, 11, 04, 06, 02, 04, 05, 00, 06, 01, 01, 05, 03, 02]
|
||||
Raw bytes (126): 0x[01, 01, 01, 01, 05, 18, 01, 09, 01, 0d, 1b, 01, 1a, 05, 02, 0a, 01, 0c, 05, 11, 1b, 01, 1e, 05, 02, 0a, 01, 0c, 05, 0c, 16, 01, 16, 05, 0d, 18, 01, 19, 09, 01, 1e, 01, 04, 09, 00, 29, 01, 01, 09, 00, 2d, 01, 01, 09, 00, 24, 01, 05, 09, 00, 24, 01, 02, 09, 00, 21, 01, 04, 09, 00, 21, 01, 04, 09, 00, 28, 01, 09, 09, 00, 32, 01, 04, 09, 00, 33, 01, 07, 09, 00, 4b, 01, 08, 09, 00, 48, 01, 0a, 09, 00, 47, 01, 08, 09, 00, 44, 01, 0a, 08, 00, 10, 05, 00, 11, 04, 06, 02, 04, 05, 00, 06, 01, 01, 05, 03, 02]
|
||||
Number of files: 1
|
||||
- file 0 => global file 1
|
||||
Number of expressions: 1
|
||||
- expression 0 operands: lhs = Counter(0), rhs = Counter(1)
|
||||
Number of file 0 mappings: 24
|
||||
- Code(Counter(0)) at (prev + 9, 1) to (start + 15, 13)
|
||||
- Code(Counter(0)) at (prev + 22, 14) to (start + 6, 10)
|
||||
- Code(Counter(0)) at (prev + 16, 5) to (start + 19, 13)
|
||||
- Code(Counter(0)) at (prev + 26, 14) to (start + 6, 10)
|
||||
- Code(Counter(0)) at (prev + 16, 5) to (start + 12, 22)
|
||||
- Code(Counter(0)) at (prev + 9, 1) to (start + 13, 27)
|
||||
- Code(Counter(0)) at (prev + 26, 5) to (start + 2, 10)
|
||||
- Code(Counter(0)) at (prev + 12, 5) to (start + 17, 27)
|
||||
- Code(Counter(0)) at (prev + 30, 5) to (start + 2, 10)
|
||||
- Code(Counter(0)) at (prev + 12, 5) to (start + 12, 22)
|
||||
- Code(Counter(0)) at (prev + 22, 5) to (start + 13, 24)
|
||||
- Code(Counter(0)) at (prev + 25, 9) to (start + 1, 30)
|
||||
- Code(Counter(0)) at (prev + 4, 9) to (start + 0, 41)
|
||||
|
|
|
|||
|
|
@ -20,18 +20,18 @@
|
|||
LL| 1| some_string
|
||||
LL| 1| .
|
||||
LL| 1| unwrap_or_else
|
||||
LL| 1| (
|
||||
LL| 1| ||
|
||||
LL| | (
|
||||
LL| | ||
|
||||
LL| 0| {
|
||||
LL| 0| let mut countdown = 0;
|
||||
LL| 0| if is_false {
|
||||
LL| 0| countdown = 10;
|
||||
LL| 0| }
|
||||
LL| 0| "alt string 1".to_owned()
|
||||
LL| 1| }
|
||||
LL| 1| )
|
||||
LL| 1| );
|
||||
LL| 1|
|
||||
LL| 0| }
|
||||
LL| | )
|
||||
LL| | );
|
||||
LL| |
|
||||
LL| 1| some_string = Some(String::from("the string content"));
|
||||
LL| 1| let
|
||||
LL| 1| a
|
||||
|
|
@ -62,8 +62,8 @@
|
|||
LL| 1| some_string
|
||||
LL| 1| .
|
||||
LL| 1| unwrap_or_else
|
||||
LL| 1| (
|
||||
LL| 1| ||
|
||||
LL| | (
|
||||
LL| | ||
|
||||
LL| 1| {
|
||||
LL| 1| let mut countdown = 0;
|
||||
LL| 1| if is_false {
|
||||
|
|
@ -71,9 +71,9 @@
|
|||
LL| 1| }
|
||||
LL| 1| "alt string 3".to_owned()
|
||||
LL| 1| }
|
||||
LL| 1| )
|
||||
LL| 1| );
|
||||
LL| 1|
|
||||
LL| | )
|
||||
LL| | );
|
||||
LL| |
|
||||
LL| 1| some_string = None;
|
||||
LL| 1| let
|
||||
LL| 1| a
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Number of file 0 mappings: 1
|
|||
Highest counter ID seen: (none)
|
||||
|
||||
Function name: holes::main
|
||||
Raw bytes (69): 0x[01, 01, 00, 0d, 01, 08, 01, 01, 11, 01, 05, 05, 00, 11, 01, 07, 09, 00, 11, 01, 09, 05, 00, 11, 01, 04, 05, 00, 11, 01, 07, 05, 00, 11, 01, 06, 05, 00, 11, 01, 04, 05, 00, 11, 01, 04, 05, 00, 11, 01, 06, 05, 03, 0f, 01, 0a, 05, 03, 0f, 01, 0a, 05, 0c, 0d, 01, 0f, 0e, 05, 02]
|
||||
Raw bytes (69): 0x[01, 01, 00, 0d, 01, 08, 01, 01, 11, 01, 05, 05, 00, 11, 01, 07, 09, 00, 11, 01, 09, 05, 00, 11, 01, 04, 05, 00, 11, 01, 07, 05, 00, 11, 01, 06, 05, 00, 11, 01, 04, 05, 00, 11, 01, 04, 05, 00, 11, 01, 06, 05, 03, 0f, 01, 0a, 05, 03, 0f, 01, 0a, 05, 06, 27, 01, 13, 05, 01, 02]
|
||||
Number of files: 1
|
||||
- file 0 => global file 1
|
||||
Number of expressions: 0
|
||||
|
|
@ -24,8 +24,8 @@ Number of file 0 mappings: 13
|
|||
- Code(Counter(0)) at (prev + 4, 5) to (start + 0, 17)
|
||||
- Code(Counter(0)) at (prev + 6, 5) to (start + 3, 15)
|
||||
- Code(Counter(0)) at (prev + 10, 5) to (start + 3, 15)
|
||||
- Code(Counter(0)) at (prev + 10, 5) to (start + 12, 13)
|
||||
- Code(Counter(0)) at (prev + 15, 14) to (start + 5, 2)
|
||||
- Code(Counter(0)) at (prev + 10, 5) to (start + 6, 39)
|
||||
- Code(Counter(0)) at (prev + 19, 5) to (start + 1, 2)
|
||||
Highest counter ID seen: c0
|
||||
|
||||
Function name: holes::main::_unused_fn (unused)
|
||||
|
|
|
|||
|
|
@ -84,18 +84,18 @@
|
|||
LL| 1| // `nested_filter::OnlyBodies` or equivalent.
|
||||
LL| 1| #[rustfmt::skip]
|
||||
LL| 1| let _const_block_inside_anon_const =
|
||||
LL| 1| [
|
||||
LL| 1| 0
|
||||
LL| 1| ;
|
||||
LL| 1| 7
|
||||
LL| 1| +
|
||||
LL| 1| const
|
||||
LL| | [
|
||||
LL| | 0
|
||||
LL| | ;
|
||||
LL| | 7
|
||||
LL| | +
|
||||
LL| | const
|
||||
LL| | {
|
||||
LL| | 3
|
||||
LL| 1| }
|
||||
LL| 1| ]
|
||||
LL| 1| ;
|
||||
LL| 1|
|
||||
LL| | }
|
||||
LL| | ]
|
||||
LL| | ;
|
||||
LL| |
|
||||
LL| 1| black_box(());
|
||||
LL| 1|}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue