YAZ
5.34.0
|
Unit Test for YAZ. More...
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <yaz/test.h>
#include <yaz/log.h>
Go to the source code of this file.
Functions | |
static FILE * | get_file (void) |
static const char * | progname (const char *argv0) |
void | yaz_check_init1 (int *argc_p, char ***argv_p) |
used by macro. Should not be called directly More... | |
void | yaz_check_init_log (const char *argv0) |
Initialize the log system. More... | |
void | yaz_check_inc_todo (void) |
used by macro. Should not be called directly More... | |
void | yaz_check_term1 (void) |
used by macro. Should not be called directly More... | |
void | yaz_check_eq1 (int type, const char *file, int line, const char *left, const char *right, int lval, int rval) |
used by macro. Should not be called directly More... | |
void | yaz_check_print1 (int type, const char *file, int line, const char *expr) |
used by macro. Should not be called directly More... | |
int | yaz_test_get_verbosity () |
Get the verbosity level. More... | |
Variables | |
static FILE * | test_fout = 0 |
static int | test_total = 0 |
static int | test_failed = 0 |
static int | test_todo = 0 |
static int | test_verbose = 1 |
static const char * | test_prog = 0 |
static int | log_tests = 0 |
static int | test_stop = 0 |
Unit Test for YAZ.
Definition in file test.c.
|
static |
Definition at line 33 of file test.c.
References test_fout.
Referenced by yaz_check_print1(), and yaz_check_term1().
|
static |
Definition at line 40 of file test.c.
Referenced by yaz_check_init1(), and yaz_check_init_log().
void yaz_check_eq1 | ( | int | type, |
const char * | file, | ||
int | line, | ||
const char * | left, | ||
const char * | right, | ||
int | lval, | ||
int | rval | ||
) |
used by macro. Should not be called directly
Definition at line 167 of file test.c.
References type, yaz_check_print1(), and YAZ_TEST_TYPE_OK.
void yaz_check_inc_todo | ( | void | ) |
void yaz_check_init1 | ( | int * | argc_p, |
char *** | argv_p | ||
) |
used by macro. Should not be called directly
Definition at line 51 of file test.c.
References progname(), test_fout, test_prog, test_stop, and test_verbose.
void yaz_check_init_log | ( | const char * | argv0 | ) |
Initialize the log system.
used by macro. Should not be called directly
Definition at line 117 of file test.c.
References log_tests, progname(), yaz_log_init_file(), and yaz_log_trunc().
void yaz_check_print1 | ( | int | type, |
const char * | file, | ||
int | line, | ||
const char * | expr | ||
) |
used by macro. Should not be called directly
Definition at line 179 of file test.c.
References get_file(), log_tests, test_failed, test_stop, test_total, test_verbose, type, yaz_log(), YAZ_TEST_TYPE_FAIL, YAZ_TEST_TYPE_OK, and YLOG_LOG.
Referenced by yaz_check_eq1().
void yaz_check_term1 | ( | void | ) |
used by macro. Should not be called directly
Definition at line 132 of file test.c.
References get_file(), test_failed, test_fout, test_prog, test_todo, test_total, test_verbose, and yaz_deinit_globals().
int yaz_test_get_verbosity | ( | void | ) |
|
static |
Definition at line 30 of file test.c.
Referenced by yaz_check_init_log(), and yaz_check_print1().
|
static |
Definition at line 26 of file test.c.
Referenced by yaz_check_print1(), and yaz_check_term1().
|
static |
Definition at line 24 of file test.c.
Referenced by get_file(), yaz_check_init1(), and yaz_check_term1().
|
static |
Definition at line 29 of file test.c.
Referenced by yaz_check_init1(), and yaz_check_term1().
|
static |
Definition at line 31 of file test.c.
Referenced by yaz_check_init1(), and yaz_check_print1().
|
static |
Definition at line 27 of file test.c.
Referenced by yaz_check_inc_todo(), and yaz_check_term1().
|
static |
Definition at line 25 of file test.c.
Referenced by yaz_check_print1(), and yaz_check_term1().
|
static |
Definition at line 28 of file test.c.
Referenced by yaz_check_init1(), yaz_check_print1(), yaz_check_term1(), and yaz_test_get_verbosity().