pub enum TestKind {
UnitTest,
IntegrationTest,
DocTest,
Unknown,
}Expand description
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 Copy for TestKind
impl Eq for TestKind
impl StructuralPartialEq for TestKind
Auto Trait Implementations§
impl Freeze for TestKind
impl RefUnwindSafe for TestKind
impl Send for TestKind
impl Sync for TestKind
impl Unpin for TestKind
impl UnwindSafe for TestKind
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
Mutably borrows from an owned value. Read more