Enum seacan::test::TypeSpec [−][src]
pub enum TypeSpec { Lib, Bin(String), Bins, Integration(String), Integrations, Example(String), Examples, Doc, Unspecified, }
Expand description
Specify the type of test artifact to build
Note: The names can contain globs (eg bin_*
).
Variants
Expand description
Unit tests in the library.
By default this is lib.rs
and any modules defined in it.
Bin(String)
Expand description
Unit tests defined in a binary
Expand description
Unit tests defined in any binary
Integration(String)
Expand description
Integration tests (i.e. cargo test --test <name>
)
Expand description
Every integration test
Example(String)
Expand description
Unit tests defined in an examply
Expand description
Unit tests defined in any example
Expand description
Doctests
Expand description
Whatever cargo test
tests if you specify nothing
Implementations
impl TypeSpec
[src]
impl TypeSpec
[src]#[must_use]pub fn integration(name: impl Into<String>) -> Self
[src]
#[must_use]pub fn integration(name: impl Into<String>) -> Self
[src]Helper for Self::Integration
#[must_use]pub fn example(name: impl Into<String>) -> Self
[src]
#[must_use]pub fn example(name: impl Into<String>) -> Self
[src]Helper for Self::Example
Trait Implementations
impl Eq for TypeSpec
[src]
impl StructuralEq for TypeSpec
[src]
impl StructuralPartialEq for TypeSpec
[src]
Auto Trait Implementations
impl RefUnwindSafe for TypeSpec
impl Send for TypeSpec
impl Sync for TypeSpec
impl Unpin for TypeSpec
impl UnwindSafe for TypeSpec
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more