Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Aug 15, 2021
1 parent e1199da commit be38fce
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
12 changes: 6 additions & 6 deletions tests/fixtures/coverage-reports/merge/merge.full.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
9,
3,
13,
1,
0,
0,
0,
0
Expand All @@ -201,7 +201,7 @@
9,
5,
14,
0,
1,
0,
0,
0
Expand Down Expand Up @@ -229,7 +229,7 @@
[
10,
1,
14,
12,
23,
1,
0,
Expand Down Expand Up @@ -311,7 +311,7 @@
9,
3,
13,
0,
1,
0,
0,
0
Expand All @@ -321,7 +321,7 @@
9,
5,
14,
1,
0,
0,
0,
0
Expand Down Expand Up @@ -349,7 +349,7 @@
[
10,
1,
12,
14,
23,
1,
0,
Expand Down
16 changes: 8 additions & 8 deletions tests/fixtures/coverage-reports/merge/merge.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
| merge::func:
| 1| 1|fn func(x: i32) -> bool {
| 2| 1| if x < 0 {
| 3| 1| true
| 3| 0| true
| 4| | } else {
| 5| 0| false
| 5| 1| false
| 6| | }
| 7| 1|}
------------------
| merge::func:
| 1| 1|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|}
------------------
Expand All @@ -51,15 +51,15 @@
| 10| 1|fn test() {
| 11| 1| #[cfg(feature = "a")]
| 12| 1| assert!(!func(1));
| 13| 1| #[cfg(feature = "b")]
| 14| 1| assert!(func(-1));
| 13| | #[cfg(feature = "b")]
| 14| | assert!(func(-1));
| 15| 1|}
------------------
| merge::test:
| 10| 1|fn test() {
| 11| 1| #[cfg(feature = "a")]
| 12| 1| assert!(!func(1));
| 13| | #[cfg(feature = "b")]
| 14| | assert!(func(-1));
| 13| 1| #[cfg(feature = "b")]
| 14| 1| assert!(func(-1));
| 15| 1|}
------------------
6 changes: 0 additions & 6 deletions tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,6 @@ fn merge() {
let output_dir = auxiliary::FIXTURES_PATH.join("coverage-reports").join(model);
fs::create_dir_all(&output_dir).unwrap();
for (extension, args) in test_set() {
// TODO: On windows, the order of the instantiations in the generated coverage report will be different.
#[cfg(windows)]
if extension == "txt" || extension == "full.json" {
continue;
}

let workspace_root = auxiliary::test_project(model, model).unwrap();
let output_path = &output_dir.join(model).with_extension(extension);
cargo_llvm_cov()
Expand Down

0 comments on commit be38fce

Please sign in to comment.