- add_result
void add_result(bool success, string message)
Undocumented in source. Be warned that the author may not have intended to support it.
- diag
void diag(string message)
Print a diagnostic message and add it to the test data.
- disable_consumer
void disable_consumer()
Undocumented in source. Be warned that the author may not have intended to support it.
- disable_debugging
void disable_debugging()
Undocumented in source. Be warned that the author may not have intended to support it.
- do_debug
void do_debug(string message)
write a debugging message to STDERR if debug_enabled is true
- done_testing
bool done_testing()
Finish testing, do the accounting, print the number of tests ran. Does not take any argument.
After this you can run report().
- enable_consumer
void enable_consumer()
Undocumented in source. Be warned that the author may not have intended to support it.
- enable_debugging
void enable_debugging()
Undocumented in source. Be warned that the author may not have intended to support it.
- note
void note(string message)
Print a note if verbose is set to true.
- ok
bool ok(bool delegate() test, string message)
prints "ok" or "not ok" depending if the test succeeds or fails
- ok
bool ok(bool is_true, string message)
prints "ok" or "not ok" depending if the test succeeds or fails
- plan
void plan(int plan)
set the number of planned tests
- plan
int plan()
get the number of planned tests
- report
void report()
prints the detailed info about the test results.
- results
TapData[] results()
get the data for the tests ran
- resume
void resume(string message)
Sets skipping to false: as long as it is false the result of the tests will be recorded or the test callbacks will be executed;
- set_consumer
void set_consumer(ProcessPipes consumer)
Undocumented in source. Be warned that the author may not have intended to support it.
- skip
void skip(string message)
Sets skipping to true which will cause tests to be skipped; until you run resume no tests will be executed
- verbose
void verbose(bool verbose)
Undocumented in source. Be warned that the author may not have intended to support it.
- verbose
bool verbose()
Undocumented in source. Be warned that the author may not have intended to support it.
- warn
void warn(string[] message)
Undocumented in source. Be warned that the author may not have intended to support it.
- write
void write(string[] message)
Undocumented in source. Be warned that the author may not have intended to support it.
struct Tap keeps the test data and gives access to the test methods