pub struct Report { /* private fields */ }
Expand description
Report of the assertions
The report contains the total number of tests, the number of failed tests, a summary of passed and failed tests, and detailed information about the failed assertions.
§Examples
use doc_assert::DocAssert;
use doc_assert::Variables;
async fn test() {
let mut doc_assert = DocAssert::new()
.with_url("http://localhost:8080")
.with_doc_path("path/to/README.md");
match doc_assert.assert().await {
Ok(report) => {
println!("{}", report);
}
Err(err) => {
// handle error
}
};
}
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnwindSafe for Report
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