pub struct TestGenerator { /* private fields */ }Expand description
Test generator for creating unit tests from code
Automatically generates comprehensive test suites with support for multiple test frameworks and TDD workflow patterns.
Implementations§
Source§impl TestGenerator
impl TestGenerator
Sourcepub fn new(framework: TestFramework) -> TestGenerator
pub fn new(framework: TestFramework) -> TestGenerator
Create a new test generator for Perl parsing workflow test automation
§Arguments
framework- Test framework to use for generating test code
§Returns
A configured test generator ready for Perl script test generation
§Examples
ⓘ
use perl_parser::{TestGenerator, TestFramework};
let generator = TestGenerator::new(TestFramework::TestMore);
// Generator ready for Perl parsing workflow test generationSourcepub fn with_options(
framework: TestFramework,
options: TestGeneratorOptions,
) -> TestGenerator
pub fn with_options( framework: TestFramework, options: TestGeneratorOptions, ) -> TestGenerator
Create a new test generator with custom options
§Arguments
framework- Test framework to use for generating test codeoptions- Custom configuration options for test generation
Auto Trait Implementations§
impl Freeze for TestGenerator
impl RefUnwindSafe for TestGenerator
impl Send for TestGenerator
impl Sync for TestGenerator
impl Unpin for TestGenerator
impl UnsafeUnpin for TestGenerator
impl UnwindSafe for TestGenerator
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