pub struct TestRunner { /* private fields */ }Expand description
Test Runner for Perl tests
Implementations§
Source§impl TestRunner
impl TestRunner
Sourcepub fn new(source: String, uri: String) -> TestRunner
pub fn new(source: String, uri: String) -> TestRunner
Creates a new test runner for the given source code and file URI.
Sourcepub fn discover_tests(&self, ast: &Node) -> Vec<TestItem>
pub fn discover_tests(&self, ast: &Node) -> Vec<TestItem>
Discover tests in the AST
Sourcepub fn run_test(&self, test_id: &str) -> Vec<TestResult>
pub fn run_test(&self, test_id: &str) -> Vec<TestResult>
Run a test and return results
Auto Trait Implementations§
impl Freeze for TestRunner
impl RefUnwindSafe for TestRunner
impl Send for TestRunner
impl Sync for TestRunner
impl Unpin for TestRunner
impl UnsafeUnpin for TestRunner
impl UnwindSafe for TestRunner
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