Public Member Functions |
| WvTest (const char *file, int line, const char *condstr) |
bool | check (bool cond, const char *suffix="") |
unsigned | check_nulerr (unsigned nulerr) |
unsigned | check_novaerr (unsigned novaerr) |
bool | check_eq (const char *a, const char *b, bool expect_equal) |
bool | check_eq (char *a, char *b, bool expect_equal) |
bool | check_eq (const char *a, char *b, bool expect_equal) |
bool | check_eq (char *a, const char *b, bool expect_equal) |
template<typename T > |
bool | check_eq (T a, T b, bool expect_equal) |
template<typename T > |
bool | check_lt (T a, T b) |
template<typename T > |
bool | check_le (T a, T b) |
template<typename T > |
T | check_perf (T val, const char *units) |
const char * | show (const char *val) |
char * | show (char *val) |
template<typename T > |
T | show (T val) |
template<typename T > |
T | show_hex (T val) |
| __attribute__ ((noreturn)) static void exit(const char *msg=0) |
| Custom exit function.
|
| WvTest (const char *file, int line, const char *condstr) |
bool | check (bool cond, const char *suffix="") |
unsigned | check_nulerr (unsigned nulerr) |
unsigned | check_novaerr (unsigned novaerr) |
bool | check_eq (const char *a, const char *b, bool expect_equal) |
bool | check_eq (char *a, char *b, bool expect_equal) |
bool | check_eq (const char *a, char *b, bool expect_equal) |
bool | check_eq (char *a, const char *b, bool expect_equal) |
template<typename T > |
bool | check_eq (T a, T b, bool expect_equal) |
template<typename T > |
bool | check_lt (T a, T b) |
template<typename T > |
bool | check_le (T a, T b) |
template<typename T > |
T | check_perf (T val, const char *units) |
const char * | show (const char *val) |
char * | show (char *val) |
template<typename T > |
T | show (T val) |
template<typename T > |
T | show_hex (T val) |
| __attribute__ ((noreturn)) static void exit(const char *msg=0) |
| Custom exit function.
|
Private Member Functions |
const char * | resultstr (bool result) |
const char * | resultstr (char *result) |
const char * | resultstr (NulErr result) |
const char * | resultstr (NovaErr result) |
void | save_info (const char *_file, int _line, const char *_condstr) |
template<typename T > |
void | print_result (T result, const char *suffix="", const char *sb="", const char *se="") |
const char * | resultstr (bool result) |
const char * | resultstr (char *result) |
const char * | resultstr (NulErr result) |
const char * | resultstr (NovaErr result) |
void | save_info (const char *_file, int _line, const char *_condstr) |
template<typename T > |
void | print_result (T result, const char *suffix="", const char *sb="", const char *se="") |
Static Private Member Functions |
static void | print_failed_cmp (const char *op, const char *a, const char *b) |
static void | print_failed_cmp (const char *op, unsigned a, unsigned b) |
static void | print_failed_cmp (const char *op, unsigned long a, unsigned long b) |
static void | print_failed_cmp (const char *op, unsigned long long a, unsigned long long b) |
static void | print_failed_cmp (const char *op, int a, int b) |
static void | stringify (char *buf, unsigned size, unsigned long long val) |
static void | stringify (char *buf, unsigned size, unsigned long val) |
static void | stringify (char *buf, unsigned size, unsigned val) |
static void | stringify (char *buf, unsigned size, int val) |
static void | stringify (char *buf, unsigned size, Crd crd) |
static void | stringifyx (char *buf, unsigned size, unsigned long long val) |
static void | stringifyx (char *buf, unsigned size, unsigned long val) |
static void | stringifyx (char *buf, unsigned size, unsigned val) |
static void | stringifyx (char *buf, unsigned size, int val) |
static void | stringifyx (char *buf, unsigned size, void *val) |
static void | print_failed_cmp (const char *op, const char *a, const char *b) |
static void | print_failed_cmp (const char *op, unsigned a, unsigned b) |
static void | print_failed_cmp (const char *op, unsigned long a, unsigned long b) |
static void | print_failed_cmp (const char *op, unsigned long long a, unsigned long long b) |
static void | print_failed_cmp (const char *op, int a, int b) |
static void | stringify (char *buf, unsigned size, unsigned long long val) |
static void | stringify (char *buf, unsigned size, unsigned long val) |
static void | stringify (char *buf, unsigned size, unsigned val) |
static void | stringify (char *buf, unsigned size, int val) |
static void | stringify (char *buf, unsigned size, Crd crd) |
static void | stringifyx (char *buf, unsigned size, unsigned long long val) |
static void | stringifyx (char *buf, unsigned size, unsigned long val) |
static void | stringifyx (char *buf, unsigned size, unsigned val) |
static void | stringifyx (char *buf, unsigned size, int val) |
static void | stringifyx (char *buf, unsigned size, void *val) |