Public Member Functions | Static Public Member Functions | Private Types | Static Private Member Functions | Private Attributes | Static Private Attributes

TF_Test Class Reference

#include <tf_test.h>

List of all members.

Public Member Functions

 TF_Test (const char *_descr, const char *_idstr, MainFunc *_main)

Static Public Member Functions

static int run_all (const char *const *prefixes=NULL)
static void start (const char *file, int line, const char *condstr)
static void check (bool cond)
static bool start_check (const char *file, int line, const char *condstr, bool cond)
static bool start_check_eq (const char *file, int line, const char *a, const char *b)
static bool start_check_eq (const char *file, int line, int a, int b)

Private Types

typedef void MainFunc ()

Static Private Member Functions

static void alarm_handler (int sig)

Private Attributes

const char * descr
const char * idstr
MainFuncmain
TF_Testnext

Static Private Attributes

static TF_Testfirst
static TF_Testlast
static int fails
static int runs
static time_t start_time

Member Typedef Documentation

typedef void TF_Test::MainFunc() [private]

Constructor & Destructor Documentation

TF_Test::TF_Test ( const char *  _descr,
const char *  _idstr,
MainFunc _main 
)

References descr, first, idstr, last, main, and next.


Member Function Documentation

void TF_Test::alarm_handler ( int  sig  )  [static, private]

References MAX_TEST_TIME, and printf.

Referenced by run_all().

void TF_Test::check ( bool  cond  )  [static]
int TF_Test::run_all ( const char *const *  prefixes = NULL  )  [static]
void TF_Test::start ( const char *  file,
int  line,
const char *  condstr 
) [static]

References printf.

Referenced by start_check(), and start_check_eq().

static bool TF_Test::start_check ( const char *  file,
int  line,
const char *  condstr,
bool  cond 
) [inline, static]

References check(), and start().

bool TF_Test::start_check_eq ( const char *  file,
int  line,
const char *  a,
const char *  b 
) [static]

References check(), and start().

bool TF_Test::start_check_eq ( const char *  file,
int  line,
int  a,
int  b 
) [static]

References check(), and start().


Member Data Documentation

const char* TF_Test::descr [private]

Referenced by TF_Test().

int TF_Test::fails [static, private]

Referenced by check(), and run_all().

TF_Test * TF_Test::first [static, private]

Referenced by run_all(), and TF_Test().

const char * TF_Test::idstr [private]

Referenced by TF_Test().

TF_Test * TF_Test::last [static, private]

Referenced by TF_Test().

MainFunc* TF_Test::main [private]

Referenced by TF_Test().

TF_Test* TF_Test::next [private]

Referenced by run_all(), and TF_Test().

int TF_Test::runs [static, private]

Referenced by check(), and run_all().

time_t TF_Test::start_time [static, private]

Referenced by check(), and run_all().


The documentation for this class was generated from the following files: