Struct doc_assert::Report
source · 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 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