Struct docmatic::Assert [] [src]

pub struct Assert(_);

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")
}

Methods

impl Assert
[src]

[src]

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

[src]

Add a path to the library paths passed to rustdoc.

[src]

Add a cfg to the configuration passed to rustdoc.

[src]

Test the given file, and panics on failure.

Trait Implementations

impl Default for Assert
[src]

[src]

Create an Assert instance with the following default parameters:

  • --library-path set to the current deps directory (target/debug/deps or target/release/deps depending on the test compilation mode).

Auto Trait Implementations

impl Send for Assert

impl !Sync for Assert