-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
107 additions
and
51 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
8 changes: 4 additions & 4 deletions
8
tests/fixtures/coverage-reports/cargo_config/cargo_config.hide-instantiations.txt
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,15 +1,15 @@ | ||
1| 1|fn func(x: i32) -> bool {fn func(x: i32) -> bool { | ||
2| 1| if x < 0 { | ||
3| 0| true | ||
3| 1| true | ||
4| | } else { | ||
5| 1| false | ||
5| 0| false | ||
6| | } | ||
7| 1|} | ||
8| | | ||
9| 1|#[test] | ||
10| 1|fn test() { | ||
11| 1| #[cfg(a)] | ||
12| 1| assert!(!func(1)); | ||
13| | #[cfg(not(a))] | ||
14| | assert!(func(-1)); | ||
13| 1| #[cfg(not(a))] | ||
14| 1| assert!(func(-1)); | ||
15| 1|} |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ FNF:4 | |
FNH:4 | ||
BRF:0 | ||
BRH:0 | ||
LF:11 | ||
LH:10 | ||
LF:13 | ||
LH:12 | ||
end_of_record |
4 changes: 2 additions & 2 deletions
4
tests/fixtures/coverage-reports/cargo_config/cargo_config.summary.txt
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,5 +1,5 @@ | ||
Filename Regions Missed Regions Cover Functions Missed Functions Executed Lines Missed Lines Cover Branches Missed Branches Cover | ||
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
src/lib.rs 8 1 87.50% 4 0 100.00% 11 1 90.91% 0 0 - | ||
src/lib.rs 8 1 87.50% 4 0 100.00% 13 1 92.31% 0 0 - | ||
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
TOTAL 8 1 87.50% 4 0 100.00% 11 1 90.91% 0 0 - | ||
TOTAL 8 1 87.50% 4 0 100.00% 13 1 92.31% 0 0 - |
8 changes: 4 additions & 4 deletions
8
tests/fixtures/coverage-reports/cargo_config/cargo_config.txt
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,15 +1,15 @@ | ||
1| 1|fn func(x: i32) -> bool {fn func(x: i32) -> bool { | ||
2| 1| if x < 0 { | ||
3| 0| true | ||
3| 1| true | ||
4| | } else { | ||
5| 1| false | ||
5| 0| false | ||
6| | } | ||
7| 1|} | ||
8| | | ||
9| 1|#[test] | ||
10| 1|fn test() { | ||
11| 1| #[cfg(a)] | ||
12| 1| assert!(!func(1)); | ||
13| | #[cfg(not(a))] | ||
14| | assert!(func(-1)); | ||
13| 1| #[cfg(not(a))] | ||
14| 1| assert!(func(-1)); | ||
15| 1|} |
8 changes: 4 additions & 4 deletions
8
tests/fixtures/coverage-reports/cargo_config_toml/cargo_config_toml.hide-instantiations.txt
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,15 +1,15 @@ | ||
1| 1|fn func(x: i32) -> bool {fn func(x: i32) -> bool { | ||
2| 1| if x < 0 { | ||
3| 0| true | ||
3| 1| true | ||
4| | } else { | ||
5| 1| false | ||
5| 0| false | ||
6| | } | ||
7| 1|} | ||
8| | | ||
9| 1|#[test] | ||
10| 1|fn test() { | ||
11| 1| #[cfg(a)] | ||
12| 1| assert!(!func(1)); | ||
13| | #[cfg(not(a))] | ||
14| | assert!(func(-1)); | ||
13| 1| #[cfg(not(a))] | ||
14| 1| assert!(func(-1)); | ||
15| 1|} |
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 |
---|---|---|
|
@@ -3,6 +3,6 @@ FNF:4 | |
FNH:4 | ||
BRF:0 | ||
BRH:0 | ||
LF:11 | ||
LH:10 | ||
LF:13 | ||
LH:12 | ||
end_of_record |
4 changes: 2 additions & 2 deletions
4
tests/fixtures/coverage-reports/cargo_config_toml/cargo_config_toml.summary.txt
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,5 +1,5 @@ | ||
Filename Regions Missed Regions Cover Functions Missed Functions Executed Lines Missed Lines Cover Branches Missed Branches Cover | ||
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
src/lib.rs 8 1 87.50% 4 0 100.00% 11 1 90.91% 0 0 - | ||
src/lib.rs 8 1 87.50% 4 0 100.00% 13 1 92.31% 0 0 - | ||
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ||
TOTAL 8 1 87.50% 4 0 100.00% 11 1 90.91% 0 0 - | ||
TOTAL 8 1 87.50% 4 0 100.00% 13 1 92.31% 0 0 - |
8 changes: 4 additions & 4 deletions
8
tests/fixtures/coverage-reports/cargo_config_toml/cargo_config_toml.txt
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,15 +1,15 @@ | ||
1| 1|fn func(x: i32) -> bool {fn func(x: i32) -> bool { | ||
2| 1| if x < 0 { | ||
3| 0| true | ||
3| 1| true | ||
4| | } else { | ||
5| 1| false | ||
5| 0| false | ||
6| | } | ||
7| 1|} | ||
8| | | ||
9| 1|#[test] | ||
10| 1|fn test() { | ||
11| 1| #[cfg(a)] | ||
12| 1| assert!(!func(1)); | ||
13| | #[cfg(not(a))] | ||
14| | assert!(func(-1)); | ||
13| 1| #[cfg(not(a))] | ||
14| 1| assert!(func(-1)); | ||
15| 1|} |
4 changes: 2 additions & 2 deletions
4
tests/fixtures/coverage-reports/no_test/link_dead_code.hide-instantiations.txt
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
4 changes: 2 additions & 2 deletions
4
tests/fixtures/coverage-reports/no_test/link_dead_code.lcov.info
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