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§type Output = ()
type Output = ()
PathBuf
when directories are created or to return a Compiler
once
it’s been assembled.source§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
make_run
is called
directly.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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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