-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
coverage: Replace boolean options with a
CoverageLevel
enum
- Loading branch information
Showing
8 changed files
with
53 additions
and
39 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
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
error: incorrect value `bad` for unstable option `coverage-options` - either `no-branch`, `branch` or `mcdc` was expected | ||
error: incorrect value `bad` for unstable option `coverage-options` - `block` | `branch` | `mcdc` was expected | ||
|
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,20 +1,17 @@ | ||
//@ needs-profiler-support | ||
//@ revisions: branch no-branch bad | ||
//@ revisions: block branch bad | ||
//@ compile-flags -Cinstrument-coverage | ||
|
||
//@ [block] check-pass | ||
//@ [block] compile-flags: -Zcoverage-options=block | ||
|
||
//@ [branch] check-pass | ||
//@ [branch] compile-flags: -Zcoverage-options=branch | ||
|
||
//@ [no-branch] check-pass | ||
//@ [no-branch] compile-flags: -Zcoverage-options=no-branch | ||
|
||
//@ [mcdc] check-pass | ||
//@ [mcdc] compile-flags: -Zcoverage-options=mcdc | ||
|
||
//@ [bad] check-fail | ||
//@ [bad] compile-flags: -Zcoverage-options=bad | ||
|
||
//@ [conflict] check-fail | ||
//@ [conflict] compile-flags: -Zcoverage-options=no-branch,mcdc | ||
|
||
fn main() {} |