[][src]Enum test::TestType

pub enum TestType {
    UnitTest,
    IntegrationTest,
    DocTest,
    Unknown,
}

Type of the test according to the rust book conventions.

Variants

UnitTest

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

IntegrationTest

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

DocTest

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

Unknown

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

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.