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 str
Name of module.
version: &'a str
Version of module.
local_path_clause: &'a str
Local path to the module.
code: String
Code to run during smoke testing.
test_path: PathBuf
Path to temp directory to put all files.
test_postfix: &'a str
Postfix 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> Freeze for SmokeModuleTest<'a>
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