pub struct Tester {
pub md_file_path: PathBuf,
pub cargo_bin_alias: Option<String>,
pub cargo_bin_name: Option<String>,
pub envs: Vec<(OsString, OsString)>,
}Fields§
§md_file_path: PathBuf§cargo_bin_alias: Option<String>§cargo_bin_name: Option<String>§envs: Vec<(OsString, OsString)>Implementations§
Source§impl Tester
impl Tester
pub fn new(md_file_path: impl Into<PathBuf>) -> Self
pub fn with_cargo_bin_alias(self, alias: impl Into<String>) -> Self
pub fn with_cargo_bin_name(self, cargo_bin_name: impl Into<String>) -> Self
pub fn with_env( self, key: impl Into<OsString>, val: impl Into<OsString>, ) -> Self
pub fn with_envs( self, vars: impl IntoIterator<Item = (impl Into<OsString>, impl Into<OsString>)>, ) -> Self
pub fn run(self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tester
impl RefUnwindSafe for Tester
impl Send for Tester
impl Sync for Tester
impl Unpin for Tester
impl UnwindSafe for Tester
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