[][src]Enum test::TestType

pub enum TestType {
    UnitTest,
    IntegrationTest,
    DocTest,
    Unknown,
}
🔬 This is a nightly-only experimental API. (test)

Type of the test according to the rust book conventions.

Variants

UnitTest
🔬 This is a nightly-only experimental API. (test)

Unit-tests are expected to be in the src folder of the crate.

IntegrationTest
🔬 This is a nightly-only experimental API. (test)

Integration-style tests are expected to be in the tests folder of the crate.

DocTest
🔬 This is a nightly-only experimental API. (test)

Doctests are created by the librustdoc manually, so it's a different type of test.

Unknown
🔬 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

impl Clone for TestType[src]

impl Copy for TestType[src]

impl Debug for TestType[src]

impl Eq for TestType[src]

impl Hash for TestType[src]

impl PartialEq<TestType> for TestType[src]

impl StructuralEq for TestType[src]

impl StructuralPartialEq for TestType[src]

Auto Trait Implementations

impl RefUnwindSafe for TestType[src]

impl Send for TestType[src]

impl Sync for TestType[src]

impl Unpin for TestType[src]

impl UnwindSafe for TestType[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.