pub enum RustTestKind {
Library(Field<QuotedString>),
Integration {
test_name: Field<QuotedString>,
srcs: Field<List<QuotedString>>,
},
}Variants§
Library(Field<QuotedString>)
Integration
Fields
§
test_name: Field<QuotedString>Name we’ll give the built Rust binary.
Some test harnesses (e.g. insta) use the crate name to generate files. We provide the crate name for integration tests for parity with cargo test.
§
srcs: Field<List<QuotedString>>Source files for the integration test.
Implementations§
Source§impl RustTestKind
impl RustTestKind
pub fn library(crate_name: impl Into<String>) -> Self
pub fn integration( test_name: impl Into<String>, srcs: impl IntoIterator<Item = String>, ) -> Self
Trait Implementations§
Source§impl Debug for RustTestKind
impl Debug for RustTestKind
Source§impl ToBazelDefinition for RustTestKind
impl ToBazelDefinition for RustTestKind
Auto Trait Implementations§
impl Freeze for RustTestKind
impl !RefUnwindSafe for RustTestKind
impl !Send for RustTestKind
impl !Sync for RustTestKind
impl Unpin for RustTestKind
impl !UnwindSafe for RustTestKind
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more