pub struct ParserTester { /* private fields */ }Expand description
A concurrent parser testing utility that can run tests against multiple files with timeout support.
The ParserTester provides functionality to test parsers against a directory
of files with specific extensions, comparing actual output against expected
results stored in JSON files, with configurable timeout protection.
Implementations§
Source§impl ParserTester
impl ParserTester
Sourcepub fn new<P: AsRef<Path>>(root: P) -> Self
pub fn new<P: AsRef<Path>>(root: P) -> Self
Creates a new parser tester with the specified root directory and default 10-second timeout.
Sourcepub fn with_extension(self, extension: impl ToString) -> Self
pub fn with_extension(self, extension: impl ToString) -> Self
Adds a file extension to test against.
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Auto Trait Implementations§
impl Freeze for ParserTester
impl RefUnwindSafe for ParserTester
impl Send for ParserTester
impl Sync for ParserTester
impl Unpin for ParserTester
impl UnwindSafe for ParserTester
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