Struct test_tools::SmokeModuleTest
source · pub struct SmokeModuleTest<'a> {
pub dependency_name: &'a str,
pub version: &'a str,
pub local_path_clause: &'a str,
pub code: String,
pub test_path: PathBuf,
pub test_postfix: &'a str,
}Expand description
Context for smoke testing of a module.
Fields§
§dependency_name: &'a strName of module.
version: &'a strVersion of module.
local_path_clause: &'a strLocal path to the module.
code: StringCode to run during smoke testing.
test_path: PathBufPath to temp directory to put all files.
test_postfix: &'a strPostfix to add to name.
Implementations§
source§impl<'a> SmokeModuleTest<'a>
impl<'a> SmokeModuleTest<'a>
sourcepub fn new(dependency_name: &'a str) -> SmokeModuleTest<'a>
pub fn new(dependency_name: &'a str) -> SmokeModuleTest<'a>
Constructor of a context for smoke testing.
sourcepub fn version(&mut self, version: &'a str) -> &mut SmokeModuleTest<'a>
pub fn version(&mut self, version: &'a str) -> &mut SmokeModuleTest<'a>
Set version.
sourcepub fn local_path_clause(
&mut self,
local_path_clause: &'a str
) -> &mut SmokeModuleTest<'a>
pub fn local_path_clause( &mut self, local_path_clause: &'a str ) -> &mut SmokeModuleTest<'a>
Set local path.
sourcepub fn test_postfix(
&mut self,
test_postfix: &'a str
) -> &mut SmokeModuleTest<'a>
pub fn test_postfix( &mut self, test_postfix: &'a str ) -> &mut SmokeModuleTest<'a>
Set postfix to add to name of test.
sourcepub fn code(&mut self, code: String) -> &mut SmokeModuleTest<'a>
pub fn code(&mut self, code: String) -> &mut SmokeModuleTest<'a>
Get code.
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for SmokeModuleTest<'a>
impl<'a> Send for SmokeModuleTest<'a>
impl<'a> Sync for SmokeModuleTest<'a>
impl<'a> Unpin for SmokeModuleTest<'a>
impl<'a> UnwindSafe for SmokeModuleTest<'a>
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<Target, Original> VectorizedInto<Target> for Originalwhere
Target: VectorizedFrom<Original>,
impl<Target, Original> VectorizedInto<Target> for Originalwhere Target: VectorizedFrom<Original>,
source§fn vectorized_into(self) -> Target
fn vectorized_into(self) -> Target
Performs the conversion.