pub struct Coverage {
pub compiler: Compiler,
pub target: TargetSelection,
}
Expand description
Coverage tests are a bit more complicated than other test suites, because we want to run the same set of test files in multiple different modes, in a way that’s convenient and flexible when invoked manually.
This combined step runs the specified tests (or all of tests/coverage
)
in both “coverage-map” and “coverage-run” modes.
Used by:
x test coverage
x test tests/coverage
x test tests/coverage/trivial.rs
(etc)
(Each individual mode also has its own step that will run the tests in just that mode.)
Fields§
§compiler: Compiler
§target: TargetSelection
Implementations§
Source§impl Coverage
impl Coverage
const PATH: &'static str = "tests/coverage"
const SUITE: &'static str = "coverage"
Sourcefn run_coverage_tests(
builder: &Builder<'_>,
compiler: Compiler,
target: TargetSelection,
mode: &'static str,
)
fn run_coverage_tests( builder: &Builder<'_>, compiler: Compiler, target: TargetSelection, mode: &'static str, )
Runs the coverage test suite (or a user-specified subset) in one mode.
This same function is used by the multi-mode step (Coverage
) and by
the single-mode steps (CoverageMap
and CoverageRun
), to help
ensure that they all behave consistently with each other, regardless of
how the coverage tests have been invoked.
Trait Implementations§
Source§impl Step for Coverage
impl Step for Coverage
Source§const DEFAULT: bool = false
const DEFAULT: bool = false
We rely on the individual CoverageMap/CoverageRun steps to run themselves.
Source§const ONLY_HOSTS: bool = false
const ONLY_HOSTS: bool = false
When manually invoked, try to run as much as possible. Compiletest will automatically skip the “coverage-run” tests if necessary.
Source§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
Step
should be run when given specific paths (e.g., x build $path
).Source§fn make_run(run: RunConfig<'_>)
fn make_run(run: RunConfig<'_>)
Step
handler when not triggered indirectly by other Step
s using Builder::ensure
.
For example, ./x.py test bootstrap
runs this for test::Bootstrap
. Similarly, ./x.py test
runs it for every step
that is listed by the describe
macro in Builder::get_step_descriptions
.impl Eq for Coverage
impl StructuralPartialEq for Coverage
Auto Trait Implementations§
impl Freeze for Coverage
impl RefUnwindSafe for Coverage
impl Send for Coverage
impl Sync for Coverage
impl Unpin for Coverage
impl UnwindSafe for Coverage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes