pub struct TapWriter {
    pub name: String,
}
Expand description

A named TAP stream writer. This will print directly to STDOUT as you call methods. No waiting. See examples/stream.rs for usage.

Fields

name: String

TAP stream name

Implementations

Make me a new one from a name. Don’t leave the name blank as it improves clarity.

Print out the plan like “1..5”. If you don’t know the plan ahead of time, it can come at the very end.

Print the suite name as a diagnostic line. Surrounded by blank diagnostic lines because pretty.

Emit a passing test line.

Emit a failing test line.

Emit a diagnostic message. Prefaced with a #.

Emergency stop! This should be the last thing in the TAP stream. Nothing may come after it.

In case you want to bail out with a message. Please use this instead of plain bail_out.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.