Struct testanything::tap_writer::TapWriter[][src]

pub struct TapWriter {
    pub name: String,
}

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

Fields

TAP stream name

Methods

impl TapWriter
[src]

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

impl Debug for TapWriter
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for TapWriter

impl Sync for TapWriter