Crate credibility[][src]

Modules

selftest

Structs and functions to enable testing credibility itself

Macros

aver

Ensure that a boolean expression is true and cause a test block to fail if it is false.

aver_eq

Asserts that two values are equal to each other (using assert_eq), but does not panic.

aver_ne

Asserts that two values are not equal to each other (using assert_ne), but does not panic.

test_block

Create a TestBlock valid for a block of code.

Structs

DefaultTestReporter

The default test status reporter. It delays all panics from aver and aver_eq invocations to the end of the test block's lifetime; if any failures occurred, or if the test block returned with an Err Result, it panics.

TestBlock

A RAII test result accumulator. The TestBlock defines a unit of test functionality, within which assertions using the macro aver! can fail without aborting the test.

Traits

TestReporter

Collects and report test statuses. This trait is used by the test block type to retain the state of a test run.