MyTAP Internals

Internal functions and data structures for the MyTAP implementation. More...

Data Structures

struct  TEST_DATA
 Data about test plan. More...

Defines

#define tapout   stdout
 Output stream for test report message.

Functions

static void vemit_tap (int pass, char const *fmt, va_list ap)
 Emit the beginning of a test line, that is: "(not) ok", test number, and description.
static void emit_dir (const char *dir, const char *why)
 Emit a TAP directive.
static void emit_endl ()
 Emit a newline to the TAP output stream.

Variables

static TEST_DATA g_test = { 0, 0, 0, "" }
 Test data structure.

Detailed Description

Internal functions and data structures for the MyTAP implementation.


Define Documentation

#define tapout   stdout
 

Output stream for test report message.

The macro is just a temporary solution.


Function Documentation

static void emit_dir const char *  dir,
const char *  why
[static]
 

Emit a TAP directive.

TAP directives are comments after a have the form

   ok 1 # skip reason for skipping
   not ok 2 # todo some text explaining what remains

Parameters:
dir Directive as a string
why Explanation string

static void emit_endl  )  [static]
 

Emit a newline to the TAP output stream.

static void vemit_tap int  pass,
char const *  fmt,
va_list  ap
[static]
 

Emit the beginning of a test line, that is: "(not) ok", test number, and description.

To emit the directive, use the emit_dir() function

See also:
emit_dir
Parameters:
pass 'true' if test passed, 'false' otherwise
fmt Description of test in printf() format.
ap Vararg list for the description string above.


Variable Documentation

TEST_DATA g_test = { 0, 0, 0, "" } [static]
 

Test data structure.

Data structure containing all information about the test suite.


Generated on Fri Oct 20 21:13:28 2006 by  doxygen 1.4.6