pub struct UnitTestGenerator;Expand description
Generates unit tests for bash functions
Implementations§
Source§impl UnitTestGenerator
impl UnitTestGenerator
pub fn new() -> Self
Sourcepub fn generate_tests(&self, ast: &BashAst) -> TestGenResult<Vec<UnitTest>>
pub fn generate_tests(&self, ast: &BashAst) -> TestGenResult<Vec<UnitTest>>
Generate unit tests for all functions in AST
Sourcepub fn generate_targeted_tests(
&self,
uncovered: &[UncoveredPath],
) -> TestGenResult<Vec<UnitTest>>
pub fn generate_targeted_tests( &self, uncovered: &[UncoveredPath], ) -> TestGenResult<Vec<UnitTest>>
Generate targeted tests for specific uncovered paths
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnitTestGenerator
impl RefUnwindSafe for UnitTestGenerator
impl Send for UnitTestGenerator
impl Sync for UnitTestGenerator
impl Unpin for UnitTestGenerator
impl UnwindSafe for UnitTestGenerator
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