pub struct Assert(/* private fields */);
Expand description
A specialized process builder managing a rustdoc
test session.
§Example
The following code will test the crate README with the docmatic
configuration set and a default library path:
extern crate docmatic;
use std::default::Default;
fn test_readme() {
docmatic::Assert::default()
.cfg("docmatic")
.test_file("README.md")
}
Implementations§
Source§impl Assert
impl Assert
Sourcepub fn new() -> Self
pub fn new() -> Self
Construct a new Assert
with no flags set.
Will likely fail if you don’t provide at least one library path
containing the tested crate. Instead, you should probably use
Assert::default
Sourcepub fn library_path<S>(&mut self, path: S) -> &mut Self
pub fn library_path<S>(&mut self, path: S) -> &mut Self
Add a path to the library paths passed to rustdoc
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Assert
impl !RefUnwindSafe for Assert
impl Send for Assert
impl Sync for Assert
impl Unpin for Assert
impl !UnwindSafe for Assert
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