pub struct StreamingParser { /* private fields */ }Expand description
A streaming parser for libtest JSON output
Implementations§
Source§impl StreamingParser
impl StreamingParser
Sourcepub fn process_line(
&mut self,
line: &str,
) -> Result<Option<TestResult>, TestsError>
pub fn process_line( &mut self, line: &str, ) -> Result<Option<TestResult>, TestsError>
Sourcepub fn results(&self) -> &[TestResult]
pub fn results(&self) -> &[TestResult]
Get all accumulated results
Sourcepub fn into_summary(self) -> TestRunSummary
pub fn into_summary(self) -> TestRunSummary
Finalize and return summary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamingParser
impl RefUnwindSafe for StreamingParser
impl Send for StreamingParser
impl Sync for StreamingParser
impl Unpin for StreamingParser
impl UnwindSafe for StreamingParser
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