Unit Testing API

C Unit Testing API

All of the functions that take a msg parameter use a C char * that is the message to be dislayed. There currently is no support for variable length arguments.

Pass Function

This prints a message for a successful test completion.

pass(msg);

Fail Function

This prints a message for an unsuccessful test completion.

fail(msg);

Untested Function

This prints a message for an test case that isn't run for some technical reason.

untested(msg);

Unresolved Function

This prints a message for an test case that is run, but there is no clear result. These output states require a human to look over the results to determine what happened.

unresolved(msg);

Totals Function

This prints out the total numbers of all the test state outputs.

totals();

C++ Unit Testing API

All of the methods that take a msg parameter use a C char * or STL string, that is the message to be dislayed. There currently is no support for variable length arguments.

Pass Method

This prints a message for a successful test completion.

TestState::pass(msg);

Fail Method

This prints a message for an unsuccessful test completion.

TestState::fail(msg);

Untested Method

This prints a message for an test case that isn't run for some technical reason.

TestState::untested(msg);

Unresolved Method

This prints a message for an test case that is run, but there is no clear result. These output states require a human to look over the results to determine what happened.

TestState::unresolved(msg);

Totals Method

This prints out the total numbers of all the test state outputs.

TestState::totals();