Enum test::TestType [−][src]
pub enum TestType {
UnitTest,
IntegrationTest,
DocTest,
Unknown,
}
🔬 This is a nightly-only experimental API. (
test
)Expand description
Type of the test according to the rust book conventions.
Variants
🔬 This is a nightly-only experimental API. (
test
)Unit-tests are expected to be in the src
folder of the crate.
🔬 This is a nightly-only experimental API. (
test
)Integration-style tests are expected to be in the tests
folder of the crate.
🔬 This is a nightly-only experimental API. (
test
)Doctests are created by the librustdoc
manually, so it’s a different type of test.
🔬 This is a nightly-only experimental API. (
test
)Tests for the sources that don’t follow the project layout convention
(e.g. tests in raw main.rs
compiled by calling rustc --test
directly).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TestType
impl UnwindSafe for TestType
Blanket Implementations
Mutably borrows from an owned value. Read more