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