RTS API Documentation
1.10.11
|
#include <switch_platform.h>
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <float.h>
#include <math.h>
#include <ctype.h>
#include <unistd.h>
Go to the source code of this file.
Data Structures | |
struct | _fct_timer_t |
struct | _fct_nlist_t |
struct | _fctchk_t |
struct | _fct_test_t |
struct | _fct_ts_t |
struct | _fctcl_init_t |
struct | _fctcl_t |
struct | _fct_clp_t |
struct | _fct_namespace_t |
struct | _fctkern_t |
struct | _fct_logger_types_t |
struct | _fct_logger_evt_t |
struct | _fct_logger_i_vtable_t |
struct | _fct_logger_i |
struct | _fct_minimal_logger_t |
struct | _fct_standard_logger_t |
struct | _fct_junit_logger_t |
Macros | |
#define | FCT_DEFAULT_LOGGER "standard" |
#define | FCT_VERSION_MAJOR 1 |
#define | FCT_VERSION_MINOR 6 |
#define | FCT_VERSION_MICRO 1 |
#define | _FCT_QUOTEME(x) #x |
#define | FCT_QUOTEME(x) _FCT_QUOTEME(x) |
#define | FCT_VERSION_STR |
#define | FCT_MAX_NAME 256 |
#define | FCT_MAX_LOG_LINE 2048 |
#define | nbool_t int |
#define | FCT_TRUE 1 |
#define | FCT_FALSE 0 |
#define | FCTMIN(x, y) ( x < y) ? (x) : (y) |
#define | FCT_ASSERT(expr) switch_assert(expr) |
#define | FCT_EXTERN_C |
#define | fct_pass() |
#define | fct_unused(x) (void)(x) |
#define | _fct_cmt(string) |
#define | FCT_PIPE_RESERVE_BYTES_DEFAULT 512 |
#define | _fct_pipe pipe |
#define | _fct_dup dup |
#define | _fct_dup2 dup2 |
#define | _fct_close close |
#define | _fct_read read |
#define | FCT_SWITCH_STDOUT_TO_BUFFER() fct_switch_std_to_buffer(fct_stdout_pipe, stdout, STDOUT_FILENO, &fct_saved_stdout) |
#define | FCT_SWITCH_STDOUT_TO_STDOUT() fct_switch_std_to_std(stdout, STDOUT_FILENO, fct_saved_stdout) |
#define | FCT_SWITCH_STDERR_TO_BUFFER() fct_switch_std_to_buffer(fct_stderr_pipe, stderr, STDERR_FILENO, &fct_saved_stderr) |
#define | FCT_SWITCH_STDERR_TO_STDERR() fct_switch_std_to_std(stderr, STDERR_FILENO, fct_saved_stderr) |
#define | FCT_DOTTED_MAX_LEN 256 |
#define | FCT_LIST_GROWTH_FACTOR 2 |
#define | FCT_LIST_DEFAULT_START_SZ 8 |
#define | FCT_NLIST_FOREACH_BGN(Type, Var, List) |
#define | FCT_NLIST_FOREACH_END() }}} |
#define | fct_nlist__init(_LIST_PTR_) (fct_nlist__init2((_LIST_PTR_), FCT_LIST_DEFAULT_START_SZ)) |
#define | fctchk__is_pass(_CHK_) ((_CHK_)->is_pass) |
#define | fctchk__file(_CHK_) ((_CHK_)->file) |
#define | fctchk__lineno(_CHK_) ((_CHK_)->lineno) |
#define | fctchk__cndtn(_CHK_) ((_CHK_)->cndtn) |
#define | fctchk__msg(_CHK_) ((_CHK_)->msg) |
#define | fctchk__name(_CHK_) ((_CHK_)->name) |
#define | fct_test__name(_TEST_) ((_TEST_)->name) |
#define | fct_test__clear_failed(test) fct_nlist__clear(test->failed_chks, (fct_nlist_on_del_t)fctchk__del);\ |
#define | fct_ts__is_setup_mode(ts) ((ts)->mode == ts_mode_setup) |
#define | fct_ts__is_teardown_mode(ts) ((ts)->mode == ts_mode_teardown) |
#define | fct_ts__is_test_mode(ts) ((ts)->mode == ts_mode_test) |
#define | fct_ts__is_ending_mode(ts) ((ts)->mode == ts_mode_ending) |
#define | fct_ts__is_end(ts) ((ts)->mode == ts_mode_end) |
#define | fct_ts__is_cnt_mode(ts) ((ts)->mode == ts_mode_cnt) |
#define | fct_ts__is_abort_mode(ts) ((ts)->mode == ts_mode_abort) |
#define | fct_ts__ending(ts) ((ts)->mode = ts_mode_ending) |
#define | fct_ts__end(ts) ((ts)->mode = ts_mode_end) |
#define | fct_ts__name(ts) ((ts)->name) |
#define | FCTCL_INIT_NULL {NULL, NULL, FCTCL_STORE_UNDEFINED, NULL} |
#define | FCTCL_TRUE_STR "1" |
#define | fctcl_new() ((fctcl_t*)calloc(1, sizeof(fctcl_t))) |
#define | fctcl__set_value(_CLO_, _VAL_) (_CLO_)->value = fctstr_clone((_VAL_)); |
#define | FCT_CLP_MAX_ERR_MSG_LEN 256 |
#define | fct_clp__optval(_CLP_, _OPTION_) fct_clp__optval2((_CLP_), (_OPTION_), NULL) |
#define | fct_clp__is_error(_CLP_) ((_CLP_)->is_error) |
#define | fct_clp__get_error(_CLP_) ((_CLP_)->error_msg); |
#define | fct_clp__num_clo(_CLP_) (fct_nlist__size(&((_CLP_)->clo_list))) |
#define | fct_clp__param_cnt(_CLP_) (fct_nlist__size(&((_CLP_)->param_list))) |
#define | fct_clp__param_at(_CLP_, _IDX_) ((char const*)fct_nlist__at(&((_CLP_)->param_list), (_IDX_))) |
#define | fct_clp__is(_CLP_, _OPTION_) (fct_clp__optval((_CLP_), (_OPTION_)) != NULL) |
#define | FCT_OPT_VERSION "--version" |
#define | FCT_OPT_VERSION_SHORT "-v" |
#define | FCT_OPT_HELP "--help" |
#define | FCT_OPT_HELP_SHORT "-h" |
#define | FCT_OPT_LOGGER "--logger" |
#define | FCT_OPT_LOGGER_SHORT "-l" |
#define | fctkern__filter_cnt(_NK_) (fct_nlist__size(&((_NK_)->prefix_list))) |
#define | fctkern__cl_is_parsed(_NK_) ((_NK_)->cl_is_parsed) |
#define | fctkern__tst_cnt_failed(nk) (fctkern__tst_cnt(nk) - fctkern__tst_cnt_passed(nk)) |
#define | fctkern__end(nk) /* unused */ |
#define | fctkern__log_start(_NK_) |
#define | fctkern__log_end(_NK_) |
#define | _fct_logger_head |
#define | fct_logger__on_fctx_start(LOGGER, KERN) |
#define | fct_logger__on_fctx_end(LOGGER, KERN) |
#define | FCT_STANDARD_LOGGER_MAX_LINE 68 |
#define | FCT_REFERENCE_FUNCS() |
#define | FCT_INIT(_ARGC_, _ARGV_) |
#define | FCT_FINAL() |
#define | FCT_NUM_FAILED() fctkern_ptr__->ns.num_total_failed \ |
#define | FCT_EXPECTED_FAILURES(_NUM_FAILS_) ((fctkern_ptr__->num_expected_failures = (_NUM_FAILS_))) |
#define | FCT_BGN_FN(_FNNAME_) |
#define | FCT_END_FN() FCT_END() |
#define | FCT_BGN() FCT_BGN_FN(main) |
#define | FCT_END_WARNINGFIX_BGN |
#define | FCT_END_WARNINGFIX_END |
#define | FCT_END() |
#define | fctlog_install(_CUST_LOGGER_LIST_) fctkern_ptr__->lt_usr = (_CUST_LOGGER_LIST_) |
#define | fctcl_install(_CLO_INIT_) |
#define | fctcl_is(_OPT_STR_) (fctkern__cl_is(fctkern_ptr__, (_OPT_STR_))) |
#define | fctcl_val(_OPT_STR_) (fctcl_val2((_OPT_STR_), NULL)) |
#define | fctcl_val2(_OPT_STR_, _DEF_STR_) (fctkern__cl_val2(fctkern_ptr__, (_OPT_STR_), (_DEF_STR_))) |
#define | FCT_FIXTURE_SUITE_BGN(_NAME_) |
#define | FCT_FIXTURE_SUITE_END() |
#define | FCT_FIXTURE_SUITE_BGN_IF(_CONDITION_, _NAME_) |
#define | FCT_FIXTURE_SUITE_END_IF() |
#define | FCT_SETUP_BGN() if ( fct_ts__is_setup_mode(fctkern_ptr__->ns.ts_curr) ) { |
#define | FCT_SETUP_END() fct_ts__setup_end(fctkern_ptr__->ns.ts_curr); } |
#define | FCT_TEARDOWN_BGN() if ( fct_ts__is_teardown_mode(fctkern_ptr__->ns.ts_curr) ) {\ |
#define | FCT_TEARDOWN_END() |
#define | FCT_SUITE_BGN(Name) |
#define | FCT_SUITE_END() } FCT_FIXTURE_SUITE_END() |
#define | FCT_SUITE_BGN_IF(_CONDITION_, _NAME_) |
#define | FCT_SUITE_END_IF() } FCT_FIXTURE_SUITE_END_IF() |
#define | FCT_TEST_BGN_IF(_CONDITION_, _NAME_) |
#define | FCT_TEST_END_IF() |
#define | FCT_TEST_BGN(_NAME_) |
#define | FCT_TEST_END() |
#define | fct_xchk |
#define | fct_xchk2 |
#define | fct_chk(_CNDTN_) (fct_xchk((_CNDTN_) ? 1 : 0, #_CNDTN_)) |
#define | _fct_req(_CNDTN_) if ( !(fct_xchk((_CNDTN_) ? 1 : 0, #_CNDTN_)) ) { break; } |
#define | fct_req(_CNDTN_) |
#define | fct_chk_eq_dbl(V1, V2) |
#define | fct_chk_neq_dbl(V1, V2) |
#define | fct_chk_eq_str(V1, V2) |
#define | fct_chk_neq_str(V1, V2) |
#define | fct_chk_empty_str(V) |
#define | fct_chk_full_str(V) |
#define | fct_chk_eq_istr(V1, V2) |
#define | fct_chk_neq_istr(V1, V2) |
#define | fct_chk_endswith_str(STR, CHECK) |
#define | fct_chk_iendswith_str(STR, CHECK) |
#define | fct_chk_excl_str(STR, CHECK_EXCLUDE) |
#define | fct_chk_excl_istr(ISTR, ICHECK_EXCLUDE) |
#define | fct_chk_incl_str(STR, CHECK_INCLUDE) |
#define | fct_chk_incl_istr(ISTR, ICHECK_INCLUDE) |
#define | fct_chk_startswith_str(STR, CHECK) |
#define | fct_chk_startswith_istr(STR, CHECK) |
#define | fct_chk_eq_int(V1, V2) |
#define | fct_chk_neq_int(V1, V2) |
#define | fct_chk_ex(EXCEPTION, CODE) |
#define | _FCT_GUTCHK(_CNDTN_) |
#define | FCTMF_FIXTURE_SUITE_BGN(NAME) |
#define | FCTMF_FIXTURE_SUITE_END() |
#define | FCTMF_SUITE_BGN(NAME) |
#define | FCTMF_SUITE_END() |
#define | FCTMF_SUITE_DEF(NAME) |
#define | FCTMF_SUITE_CALL(NAME) |
#define | FCT_QTEST_BGN(NAME) |
#define | FCT_QTEST_END() |
#define | FCT_QTEST_BGN_IF(_CONDITION_, _NAME_) |
#define | FCT_QTEST_END_IF() |
Typedefs | |
typedef struct _fct_logger_evt_t | fct_logger_evt_t |
typedef struct _fct_logger_i | fct_logger_i |
typedef struct _fct_logger_types_t | fct_logger_types_t |
typedef struct _fct_standard_logger_t | fct_standard_logger_t |
typedef struct _fct_junit_logger_t | fct_junit_logger_t |
typedef struct _fct_minimal_logger_t | fct_minimal_logger_t |
typedef struct _fctchk_t | fctchk_t |
typedef struct _fct_test_t | fct_test_t |
typedef struct _fct_ts_t | fct_ts_t |
typedef struct _fctkern_t | fctkern_t |
typedef struct _fct_timer_t | fct_timer_t |
typedef struct _fct_nlist_t | fct_nlist_t |
typedef void(* | fct_nlist_on_del_t) (void *) |
typedef struct _fctcl_init_t | fctcl_init_t |
typedef struct _fctcl_t | fctcl_t |
typedef struct _fct_clp_t | fct_clp_t |
typedef struct _fct_namespace_t | fct_namespace_t |
typedef fct_logger_i *(* | fct_logger_new_fn) (void) |
typedef struct _fct_logger_i_vtable_t | fct_logger_i_vtable_t |
Enumerations | |
enum | ts_mode { ts_mode_cnt, ts_mode_setup, ts_mode_teardown, ts_mode_test, ts_mode_ending, ts_mode_end, ts_mode_abort } |
enum | fct_test_status { fct_test_status_SUCCESS, fct_test_status_FAILURE } |
enum | fctcl_store_t { FCTCL_STORE_UNDEFINED, FCTCL_STORE_TRUE, FCTCL_STORE_VALUE } |
enum | FCT_TEST_END_FLAG { FCT_TEST_END_FLAG_Default = 0x0000, FCT_TEST_END_FLAG_ClearFail = 0x0001 } |
Functions | |
static fct_logger_i * | fct_standard_logger_new (void) |
static fct_logger_i * | fct_minimal_logger_new (void) |
static fct_junit_logger_t * | fct_junit_logger_new (void) |
static void | fct_logger__del (fct_logger_i *logger) |
static void | fct_logger__on_chk (fct_logger_i *self, fctchk_t const *chk) |
static void | fct_logger__on_test_start (fct_logger_i *logger, fct_test_t const *test) |
static void | fct_logger__on_test_end (fct_logger_i *logger, fct_test_t *test) |
static void | fct_logger__on_test_suite_start (fct_logger_i *logger, fct_ts_t const *ts) |
static void | fct_logger__on_test_suite_end (fct_logger_i *logger, fct_ts_t const *ts) |
static void | fct_logger__on_test_suite_skip (fct_logger_i *logger, char const *condition, char const *name) |
static void | fct_logger__on_test_skip (fct_logger_i *logger, char const *condition, char const *name) |
static void | fct_logger__on_warn (fct_logger_i *logger, char const *warn) |
static void | fct_switch_std_to_buffer (int std_pipe[2], FILE *out, int fileno_, int *save_handle) |
static void | fct_switch_std_to_std (FILE *out, int fileno_, int save_handle) |
static void | fctstr_safe_cpy (char *dst, char const *src, size_t num) |
static int | fct_vsnprintf (char *buffer, size_t buffer_len, char const *format, va_list args) |
static int | fct_snprintf (char *buffer, size_t buffer_len, char const *format,...) |
static char * | fctstr_clone (char const *s) |
static char * | fctstr_clone_lower (char const *s) |
static nbool_t | fct_filter_pass (char const *prefix, char const *test_str) |
static int | fctstr_eq (char const *s1, char const *s2) |
static int | fctstr_ieq (char const *s1, char const *s2) |
static int | fctstr_incl (char const *str, char const *check_incl) |
static int | fctstr_iincl (char const *str, char const *check_incl) |
static int | fctstr_startswith (char const *str, char const *check) |
static int | fctstr_istartswith (char const *str, char const *check) |
static int | fctstr_endswith (char const *str, char const *check) |
static int | fctstr_iendswith (char const *str, char const *check) |
static void | fct_dotted_line_start (size_t maxwidth, char const *startwith) |
static void | fct_dotted_line_end (char const *endswith) |
static void | fct_timer__init (fct_timer_t *timer) |
static void | fct_timer__start (fct_timer_t *timer) |
static void | fct_timer__stop (fct_timer_t *timer) |
static double | fct_timer__duration (fct_timer_t const *timer) |
static void | fct_nlist__clear (fct_nlist_t *list, fct_nlist_on_del_t on_del) |
static void | fct_nlist__final (fct_nlist_t *list, fct_nlist_on_del_t on_del) |
static int | fct_nlist__init2 (fct_nlist_t *list, size_t start_sz) |
static size_t | fct_nlist__size (fct_nlist_t const *list) |
static void * | fct_nlist__at (fct_nlist_t const *list, size_t idx) |
static void | fct_nlist__append (fct_nlist_t *list, void *itm) |
static fctchk_t * | fctchk_new (int is_pass, char const *cndtn, char const *name, char const *file, int lineno, char const *format, va_list args) |
static void | fctchk__del (fctchk_t *chk) |
static void | fct_test__del (fct_test_t *test) |
static fct_test_t * | fct_test_new (char const *name) |
static void | fct_test__start_timer (fct_test_t *test) |
static void | fct_test__stop_timer (fct_test_t *test) |
static double | fct_test__duration (fct_test_t const *test) |
static nbool_t | fct_test__is_pass (fct_test_t const *test) |
static void | fct_test__add (fct_test_t *test, fctchk_t *chk) |
static size_t | fct_test__chk_cnt (fct_test_t const *test) |
static void | fct_ts__del (fct_ts_t *ts) |
static fct_ts_t * | fct_ts_new (char const *name) |
static nbool_t | fct_ts__is_more_tests (fct_ts_t const *ts) |
static void | fct_ts__test_begin (fct_ts_t *ts) |
static void | fct_ts__add_test (fct_ts_t *ts, fct_test_t *test) |
static void | fct_ts__test_end (fct_ts_t *ts) |
static void | fct_ts__inc_total_test_num (fct_ts_t *ts) |
static void | fct_ts__setup_end (fct_ts_t *ts) |
static fct_test_t * | fct_ts__make_abort_test (fct_ts_t *ts) |
static void | fct_ts__setup_abort (fct_ts_t *ts) |
static void | fct_ts__teardown_end (fct_ts_t *ts) |
static void | fct_ts__cnt_end (fct_ts_t *ts) |
static nbool_t | fct_ts__is_test_cnt (fct_ts_t const *ts, int test_num) |
static size_t | fct_ts__tst_cnt (fct_ts_t const *ts) |
static size_t | fct_ts__tst_cnt_passed (fct_ts_t const *ts) |
static size_t | fct_ts__chk_cnt (fct_ts_t const *ts) |
static double | fct_ts__duration (fct_ts_t const *ts) |
static void | fctcl__del (fctcl_t *clo) |
static fctcl_t * | fctcl_new2 (fctcl_init_t const *clo_init) |
static int | fctcl__is_option (fctcl_t const *clo, char const *option) |
static void | fct_clp__final (fct_clp_t *clp) |
static int | fct_clp__add_options (fct_clp_t *clp, fctcl_init_t const *options) |
static int | fct_clp__init (fct_clp_t *clp, fctcl_init_t const *options) |
static void | fct_clp__parse (fct_clp_t *clp, int argc, char const *argv[]) |
static fctcl_t const * | fct_clp__get_clo (fct_clp_t const *clp, char const *option) |
static char const * | fct_clp__optval2 (fct_clp_t *clp, char const *option, char const *default_val) |
static int | fct_clp__is_param (fct_clp_t *clp, char const *param) |
static void | fct_namespace_init (fct_namespace_t *ns) |
static void | fctkern__add_logger (fctkern_t *nk, fct_logger_i *logger_owns) |
static void | fctkern__write_help (fctkern_t *nk, FILE *out) |
static void | fctkern__add_prefix_filter (fctkern_t *nk, char const *prefix_filter) |
static void | fctkern__final (fctkern_t *nk) |
static int | fctkern__cl_is (fctkern_t *nk, char const *opt_str) |
static char const * | fctkern__cl_val2 (fctkern_t *nk, char const *opt_str, char const *def_str) |
static fct_logger_i * | fckern_sel_log (fct_logger_types_t *search, char const *sel_logger) |
static int | fctkern__cl_parse_config_logger (fctkern_t *nk) |
static int | fctkern__cl_parse (fctkern_t *nk) |
static int | fctkern__init (fctkern_t *nk, int argc, const char *argv[]) |
static void | fctkern__add_ts (fctkern_t *nk, fct_ts_t *ts) |
static nbool_t | fctkern__pass_filter (fctkern_t *nk, char const *test_name) |
static size_t | fctkern__tst_cnt (fctkern_t const *nk) |
static size_t | fctkern__tst_cnt_passed (fctkern_t const *nk) |
static void | fctkern__log_suite_start (fctkern_t *nk, fct_ts_t const *ts) |
static void | fctkern__log_suite_end (fctkern_t *nk, fct_ts_t const *ts) |
static void | fctkern__log_suite_skip (fctkern_t *nk, char const *condition, char const *name) |
static void | fctkern__log_test_skip (fctkern_t *nk, char const *condition, char const *name) |
static void | fctkern__log_chk (fctkern_t *nk, fctchk_t const *chk) |
static void | fctkern__log_warn (fctkern_t *nk, char const *warn) |
static void | fctkern__log_test_start (fctkern_t *nk, fct_test_t const *test) |
static void | fctkern__log_test_end (fctkern_t *nk, fct_test_t *test) |
static void | fct_logger__stub (fct_logger_i *l, fct_logger_evt_t const *e) |
static void | fct_logger__init (fct_logger_i *logger) |
static void | fct_logger_record_failure (fctchk_t const *chk, fct_nlist_t *fail_list) |
static void | fct_logger_print_failures (fct_nlist_t const *fail_list) |
static void | fct_minimal_logger__on_chk (fct_logger_i *self_, fct_logger_evt_t const *e) |
static void | fct_minimal_logger__on_fctx_end (fct_logger_i *self_, fct_logger_evt_t const *e) |
static void | fct_minimal_logger__on_delete (fct_logger_i *self_, fct_logger_evt_t const *e) |
static void | fct_standard_logger__on_chk (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_standard_logger__on_test_skip (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_standard_logger__on_test_start (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_standard_logger__on_test_end (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_standard_logger__on_fctx_start (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_standard_logger__on_fctx_end (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_standard_logger__on_delete (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_standard_logger__on_warn (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_junit_logger__on_test_suite_start (fct_logger_i *l, fct_logger_evt_t const *e) |
static void | fct_junit_logger__on_test_suite_end (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_junit_logger__on_fct_start (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_junit_logger__on_fctx_end (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static void | fct_junit_logger__on_delete (fct_logger_i *logger_, fct_logger_evt_t const *e) |
static int | _fct_xchk_fn_varg (char const *condition, int is_pass, char const *format, va_list args) |
static int | fct_xchk2_fn (const char *condition, int is_pass, char const *format,...) |
static int | fct_xchk_fn (int is_pass, char const *format,...) |
static int | _fct_chk_empty_str (char const *s) |
static int | _fct_chk_full_str (char const *s) |
Variables | |
static int | fct_stdout_pipe [2] |
static int | fct_stderr_pipe [2] |
static int | fct_saved_stdout |
static int | fct_saved_stderr |
static fctcl_init_t | FCT_CLP_OPTIONS [] |
static fct_logger_types_t | FCT_LOGGER_TYPES [] |
static fct_logger_i_vtable_t | fct_logger_default_vtable |
static int | fct_xchk_lineno =0 |
static char const * | fct_xchk_file = NULL |
static fct_test_t * | fct_xchk_test = NULL |
static fctkern_t * | fct_xchk_kern =NULL |
#define _fct_close close |
Definition at line 208 of file switch_fct.h.
Referenced by fct_switch_std_to_buffer().
#define _fct_cmt | ( | string | ) |
Definition at line 172 of file switch_fct.h.
#define _fct_dup dup |
Definition at line 206 of file switch_fct.h.
Referenced by fct_switch_std_to_buffer().
#define _fct_dup2 dup2 |
Definition at line 207 of file switch_fct.h.
Referenced by fct_switch_std_to_buffer(), and fct_switch_std_to_std().
#define _FCT_GUTCHK | ( | _CNDTN_ | ) |
Definition at line 3883 of file switch_fct.h.
#define _fct_logger_head |
Definition at line 2557 of file switch_fct.h.
#define _fct_pipe pipe |
Definition at line 205 of file switch_fct.h.
Referenced by fct_switch_std_to_buffer().
#define _FCT_QUOTEME | ( | x | ) | #x |
Definition at line 66 of file switch_fct.h.
#define _fct_read read |
Definition at line 209 of file switch_fct.h.
Referenced by fct_junit_logger__on_test_suite_end().
Definition at line 3660 of file switch_fct.h.
#define FCT_ASSERT | ( | expr | ) | switch_assert(expr) |
Definition at line 91 of file switch_fct.h.
Referenced by fckern_sel_log(), fct_clp__init(), fct_clp__optval2(), fct_clp__parse(), fct_filter_pass(), fct_logger__init(), fct_logger_record_failure(), fct_namespace_init(), fct_nlist__append(), fct_nlist__at(), fct_nlist__clear(), fct_nlist__final(), fct_nlist__init2(), fct_nlist__size(), fct_test__add(), fct_test__chk_cnt(), fct_test__duration(), fct_test__is_pass(), fct_test__start_timer(), fct_test__stop_timer(), fct_timer__duration(), fct_timer__init(), fct_timer__start(), fct_timer__stop(), fct_ts__add_test(), fct_ts__chk_cnt(), fct_ts__cnt_end(), fct_ts__duration(), fct_ts__inc_total_test_num(), fct_ts__is_more_tests(), fct_ts__is_test_cnt(), fct_ts__setup_abort(), fct_ts__test_begin(), fct_ts__test_end(), fct_ts__tst_cnt(), fct_ts__tst_cnt_passed(), fct_ts_new(), fctchk_new(), fctcl__is_option(), fctkern__add_logger(), fctkern__add_prefix_filter(), fctkern__add_ts(), fctkern__cl_is(), fctkern__cl_parse_config_logger(), fctkern__cl_val2(), fctkern__log_chk(), fctkern__log_suite_end(), fctkern__log_suite_start(), fctkern__log_test_end(), fctkern__log_test_start(), fctkern__log_warn(), fctkern__pass_filter(), fctkern__tst_cnt(), fctkern__tst_cnt_passed(), fctstr_clone(), fctstr_clone_lower(), and fctstr_safe_cpy().
#define FCT_BGN | ( | ) | FCT_BGN_FN(main) |
Definition at line 3318 of file switch_fct.h.
#define FCT_BGN_FN | ( | _FNNAME_ | ) |
Definition at line 3308 of file switch_fct.h.
#define fct_chk | ( | _CNDTN_ | ) | (fct_xchk((_CNDTN_) ? 1 : 0, #_CNDTN_)) |
Definition at line 3658 of file switch_fct.h.
#define fct_chk_empty_str | ( | V | ) |
Definition at line 3746 of file switch_fct.h.
#define fct_chk_endswith_str | ( | STR, | |
CHECK | |||
) |
Definition at line 3775 of file switch_fct.h.
#define fct_chk_eq_dbl | ( | V1, | |
V2 | |||
) |
Definition at line 3690 of file switch_fct.h.
#define fct_chk_eq_int | ( | V1, | |
V2 | |||
) |
Definition at line 3837 of file switch_fct.h.
#define fct_chk_eq_istr | ( | V1, | |
V2 | |||
) |
Definition at line 3759 of file switch_fct.h.
#define fct_chk_eq_str | ( | V1, | |
V2 | |||
) |
Definition at line 3708 of file switch_fct.h.
#define fct_chk_ex | ( | EXCEPTION, | |
CODE | |||
) |
Definition at line 3854 of file switch_fct.h.
#define fct_chk_excl_istr | ( | ISTR, | |
ICHECK_EXCLUDE | |||
) |
Definition at line 3797 of file switch_fct.h.
#define fct_chk_excl_str | ( | STR, | |
CHECK_EXCLUDE | |||
) |
Definition at line 3790 of file switch_fct.h.
#define fct_chk_full_str | ( | V | ) |
Definition at line 3752 of file switch_fct.h.
#define fct_chk_iendswith_str | ( | STR, | |
CHECK | |||
) |
Definition at line 3783 of file switch_fct.h.
#define fct_chk_incl_istr | ( | ISTR, | |
ICHECK_INCLUDE | |||
) |
Definition at line 3813 of file switch_fct.h.
#define fct_chk_incl_str | ( | STR, | |
CHECK_INCLUDE | |||
) |
Definition at line 3805 of file switch_fct.h.
#define fct_chk_neq_dbl | ( | V1, | |
V2 | |||
) |
Definition at line 3699 of file switch_fct.h.
#define fct_chk_neq_int | ( | V1, | |
V2 | |||
) |
Definition at line 3846 of file switch_fct.h.
#define fct_chk_neq_istr | ( | V1, | |
V2 | |||
) |
Definition at line 3767 of file switch_fct.h.
#define fct_chk_neq_str | ( | V1, | |
V2 | |||
) |
Definition at line 3716 of file switch_fct.h.
#define fct_chk_startswith_istr | ( | STR, | |
CHECK | |||
) |
Definition at line 3830 of file switch_fct.h.
#define fct_chk_startswith_str | ( | STR, | |
CHECK | |||
) |
Definition at line 3822 of file switch_fct.h.
#define fct_clp__get_error | ( | _CLP_ | ) | ((_CLP_)->error_msg); |
Definition at line 1790 of file switch_fct.h.
Referenced by fctkern__cl_parse().
#define fct_clp__is | ( | _CLP_, | |
_OPTION_ | |||
) | (fct_clp__optval((_CLP_), (_OPTION_)) != NULL) |
Definition at line 1806 of file switch_fct.h.
Referenced by fctkern__cl_is().
#define fct_clp__is_error | ( | _CLP_ | ) | ((_CLP_)->is_error) |
Definition at line 1789 of file switch_fct.h.
Referenced by fctkern__cl_parse().
#define fct_clp__num_clo | ( | _CLP_ | ) | (fct_nlist__size(&((_CLP_)->clo_list))) |
Definition at line 1792 of file switch_fct.h.
#define fct_clp__optval | ( | _CLP_, | |
_OPTION_ | |||
) | fct_clp__optval2((_CLP_), (_OPTION_), NULL) |
Definition at line 1747 of file switch_fct.h.
#define fct_clp__param_at | ( | _CLP_, | |
_IDX_ | |||
) | ((char const*)fct_nlist__at(&((_CLP_)->param_list), (_IDX_))) |
Definition at line 1800 of file switch_fct.h.
Referenced by fctkern__cl_parse().
#define fct_clp__param_cnt | ( | _CLP_ | ) | (fct_nlist__size(&((_CLP_)->param_list))) |
Definition at line 1795 of file switch_fct.h.
Referenced by fctkern__cl_parse().
#define FCT_CLP_MAX_ERR_MSG_LEN 256 |
Definition at line 1548 of file switch_fct.h.
Referenced by fct_clp__parse().
#define FCT_DEFAULT_LOGGER "standard" |
Definition at line 59 of file switch_fct.h.
Referenced by fctkern__cl_parse_config_logger(), and fctkern__write_help().
#define FCT_DOTTED_MAX_LEN 256 |
Definition at line 586 of file switch_fct.h.
Referenced by fct_dotted_line_start().
#define FCT_END | ( | ) |
Definition at line 3333 of file switch_fct.h.
#define FCT_END_FN | ( | ) | FCT_END() |
Definition at line 3313 of file switch_fct.h.
#define FCT_END_WARNINGFIX_BGN |
Definition at line 3323 of file switch_fct.h.
#define FCT_END_WARNINGFIX_END |
Definition at line 3324 of file switch_fct.h.
#define FCT_EXPECTED_FAILURES | ( | _NUM_FAILS_ | ) | ((fctkern_ptr__->num_expected_failures = (_NUM_FAILS_))) |
Definition at line 3304 of file switch_fct.h.
#define FCT_EXTERN_C |
Definition at line 96 of file switch_fct.h.
#define FCT_FALSE 0 |
Definition at line 87 of file switch_fct.h.
Referenced by fct_filter_pass(), fct_test_new(), and fctkern__pass_filter().
#define FCT_FINAL | ( | ) |
Definition at line 3280 of file switch_fct.h.
#define FCT_FIXTURE_SUITE_BGN | ( | _NAME_ | ) |
Definition at line 3379 of file switch_fct.h.
#define FCT_FIXTURE_SUITE_BGN_IF | ( | _CONDITION_, | |
_NAME_ | |||
) |
Definition at line 3431 of file switch_fct.h.
#define FCT_FIXTURE_SUITE_END | ( | ) |
Definition at line 3418 of file switch_fct.h.
#define FCT_FIXTURE_SUITE_END_IF | ( | ) |
Definition at line 3439 of file switch_fct.h.
#define FCT_INIT | ( | _ARGC_, | |
_ARGV_ | |||
) |
Definition at line 3268 of file switch_fct.h.
#define FCT_LIST_DEFAULT_START_SZ 8 |
Definition at line 678 of file switch_fct.h.
#define FCT_LIST_GROWTH_FACTOR 2 |
Definition at line 674 of file switch_fct.h.
Referenced by fct_nlist__append().
#define fct_logger__on_fctx_end | ( | LOGGER, | |
KERN | |||
) |
Definition at line 2687 of file switch_fct.h.
#define fct_logger__on_fctx_start | ( | LOGGER, | |
KERN | |||
) |
Definition at line 2681 of file switch_fct.h.
#define FCT_MAX_LOG_LINE 2048 |
Definition at line 83 of file switch_fct.h.
Referenced by fct_ts__make_abort_test(), and fctchk_new().
#define FCT_MAX_NAME 256 |
Definition at line 82 of file switch_fct.h.
Referenced by fct_test_new(), and fct_ts_new().
#define fct_nlist__init | ( | _LIST_PTR_ | ) | (fct_nlist__init2((_LIST_PTR_), FCT_LIST_DEFAULT_START_SZ)) |
Definition at line 779 of file switch_fct.h.
Referenced by fct_clp__init(), fct_test_new(), fct_ts_new(), and fctkern__init().
#define FCT_NLIST_FOREACH_BGN | ( | Type, | |
Var, | |||
List | |||
) |
Definition at line 690 of file switch_fct.h.
Referenced by fct_clp__get_clo(), fct_clp__is_param(), fct_clp__parse(), fct_junit_logger__on_test_suite_end(), fct_logger_print_failures(), fct_ts__chk_cnt(), fct_ts__duration(), fct_ts__tst_cnt_passed(), fctkern__log_chk(), fctkern__log_suite_end(), fctkern__log_suite_skip(), fctkern__log_suite_start(), fctkern__log_test_end(), fctkern__log_test_skip(), fctkern__log_test_start(), fctkern__log_warn(), fctkern__tst_cnt(), fctkern__tst_cnt_passed(), and fctkern__write_help().
#define FCT_NLIST_FOREACH_END | ( | ) | }}} |
Definition at line 699 of file switch_fct.h.
Referenced by fct_clp__get_clo(), fct_clp__is_param(), fct_clp__parse(), fct_junit_logger__on_test_suite_end(), fct_logger_print_failures(), fct_ts__chk_cnt(), fct_ts__duration(), fct_ts__tst_cnt_passed(), fctkern__log_chk(), fctkern__log_suite_end(), fctkern__log_suite_skip(), fctkern__log_suite_start(), fctkern__log_test_end(), fctkern__log_test_skip(), fctkern__log_test_start(), fctkern__log_warn(), fctkern__tst_cnt(), fctkern__tst_cnt_passed(), and fctkern__write_help().
#define FCT_NUM_FAILED | ( | ) | fctkern_ptr__->ns.num_total_failed \ |
Definition at line 3296 of file switch_fct.h.
#define FCT_OPT_HELP "--help" |
Definition at line 1899 of file switch_fct.h.
Referenced by fctkern__cl_parse().
#define FCT_OPT_HELP_SHORT "-h" |
Definition at line 1900 of file switch_fct.h.
#define FCT_OPT_LOGGER "--logger" |
Definition at line 1901 of file switch_fct.h.
Referenced by fctkern__cl_parse_config_logger(), and fctkern__write_help().
#define FCT_OPT_LOGGER_SHORT "-l" |
Definition at line 1902 of file switch_fct.h.
#define FCT_OPT_VERSION "--version" |
Definition at line 1897 of file switch_fct.h.
Referenced by fctkern__cl_parse().
#define FCT_OPT_VERSION_SHORT "-v" |
Definition at line 1898 of file switch_fct.h.
#define fct_pass | ( | ) |
Definition at line 162 of file switch_fct.h.
#define FCT_PIPE_RESERVE_BYTES_DEFAULT 512 |
Definition at line 183 of file switch_fct.h.
#define FCT_QTEST_BGN | ( | NAME | ) |
Definition at line 3951 of file switch_fct.h.
#define FCT_QTEST_BGN_IF | ( | _CONDITION_, | |
_NAME_ | |||
) |
Definition at line 3960 of file switch_fct.h.
#define FCT_QTEST_END | ( | ) |
Definition at line 3955 of file switch_fct.h.
#define FCT_QTEST_END_IF | ( | ) |
Definition at line 3964 of file switch_fct.h.
#define FCT_QUOTEME | ( | x | ) | _FCT_QUOTEME(x) |
Definition at line 67 of file switch_fct.h.
#define FCT_REFERENCE_FUNCS | ( | ) |
Definition at line 3217 of file switch_fct.h.
#define fct_req | ( | _CNDTN_ | ) |
Definition at line 3666 of file switch_fct.h.
#define FCT_SETUP_BGN | ( | ) | if ( fct_ts__is_setup_mode(fctkern_ptr__->ns.ts_curr) ) { |
Definition at line 3444 of file switch_fct.h.
#define FCT_SETUP_END | ( | ) | fct_ts__setup_end(fctkern_ptr__->ns.ts_curr); } |
Definition at line 3447 of file switch_fct.h.
#define FCT_STANDARD_LOGGER_MAX_LINE 68 |
Definition at line 2847 of file switch_fct.h.
Referenced by fct_standard_logger__on_test_skip(), and fct_standard_logger__on_test_start().
#define FCT_SUITE_BGN | ( | Name | ) |
Definition at line 3460 of file switch_fct.h.
#define FCT_SUITE_BGN_IF | ( | _CONDITION_, | |
_NAME_ | |||
) |
Definition at line 3467 of file switch_fct.h.
#define FCT_SUITE_END | ( | ) | } FCT_FIXTURE_SUITE_END() |
Definition at line 3465 of file switch_fct.h.
#define FCT_SUITE_END_IF | ( | ) | } FCT_FIXTURE_SUITE_END_IF() |
Definition at line 3472 of file switch_fct.h.
#define FCT_SWITCH_STDERR_TO_BUFFER | ( | ) | fct_switch_std_to_buffer(fct_stderr_pipe, stderr, STDERR_FILENO, &fct_saved_stderr) |
Definition at line 241 of file switch_fct.h.
Referenced by fct_junit_logger__on_test_suite_start().
#define FCT_SWITCH_STDERR_TO_STDERR | ( | ) | fct_switch_std_to_std(stderr, STDERR_FILENO, fct_saved_stderr) |
Definition at line 243 of file switch_fct.h.
Referenced by fct_junit_logger__on_test_suite_end().
#define FCT_SWITCH_STDOUT_TO_BUFFER | ( | ) | fct_switch_std_to_buffer(fct_stdout_pipe, stdout, STDOUT_FILENO, &fct_saved_stdout) |
Definition at line 237 of file switch_fct.h.
Referenced by fct_junit_logger__on_test_suite_start().
#define FCT_SWITCH_STDOUT_TO_STDOUT | ( | ) | fct_switch_std_to_std(stdout, STDOUT_FILENO, fct_saved_stdout) |
Definition at line 239 of file switch_fct.h.
Referenced by fct_junit_logger__on_test_suite_end().
#define FCT_TEARDOWN_BGN | ( | ) | if ( fct_ts__is_teardown_mode(fctkern_ptr__->ns.ts_curr) ) {\ |
Definition at line 3450 of file switch_fct.h.
#define FCT_TEARDOWN_END | ( | ) |
Definition at line 3453 of file switch_fct.h.
#define fct_test__clear_failed | ( | test | ) | fct_nlist__clear(test->failed_chks, (fct_nlist_on_del_t)fctchk__del);\ |
Definition at line 946 of file switch_fct.h.
#define fct_test__name | ( | _TEST_ | ) | ((_TEST_)->name) |
Definition at line 943 of file switch_fct.h.
Referenced by _fct_xchk_fn_varg(), fct_junit_logger__on_test_suite_end(), and fct_standard_logger__on_test_start().
#define FCT_TEST_BGN | ( | _NAME_ | ) |
Definition at line 3499 of file switch_fct.h.
#define FCT_TEST_BGN_IF | ( | _CONDITION_, | |
_NAME_ | |||
) |
Definition at line 3481 of file switch_fct.h.
#define FCT_TEST_END | ( | ) |
Definition at line 3537 of file switch_fct.h.
#define FCT_TEST_END_IF | ( | ) |
Definition at line 3486 of file switch_fct.h.
#define FCT_TRUE 1 |
Definition at line 86 of file switch_fct.h.
Referenced by fct_filter_pass(), fct_test_new(), and fctkern__pass_filter().
#define fct_ts__end | ( | ts | ) | ((ts)->mode = ts_mode_end) |
Definition at line 1139 of file switch_fct.h.
#define fct_ts__ending | ( | ts | ) | ((ts)->mode = ts_mode_ending) |
Definition at line 1136 of file switch_fct.h.
#define fct_ts__is_abort_mode | ( | ts | ) | ((ts)->mode == ts_mode_abort) |
Definition at line 1132 of file switch_fct.h.
#define fct_ts__is_cnt_mode | ( | ts | ) | ((ts)->mode == ts_mode_cnt) |
Definition at line 1131 of file switch_fct.h.
Referenced by fct_ts__cnt_end(), and fct_ts__inc_total_test_num().
#define fct_ts__is_end | ( | ts | ) | ((ts)->mode == ts_mode_end) |
Definition at line 1130 of file switch_fct.h.
Referenced by fct_ts__add_test(), fct_ts__cnt_end(), fct_ts__inc_total_test_num(), fct_ts__is_more_tests(), fct_ts__is_test_cnt(), fct_ts__test_begin(), fct_ts__tst_cnt(), and fct_ts__tst_cnt_passed().
#define fct_ts__is_ending_mode | ( | ts | ) | ((ts)->mode == ts_mode_ending) |
Definition at line 1129 of file switch_fct.h.
#define fct_ts__is_setup_mode | ( | ts | ) | ((ts)->mode == ts_mode_setup) |
Definition at line 1126 of file switch_fct.h.
#define fct_ts__is_teardown_mode | ( | ts | ) | ((ts)->mode == ts_mode_teardown) |
Definition at line 1127 of file switch_fct.h.
#define fct_ts__is_test_mode | ( | ts | ) | ((ts)->mode == ts_mode_test) |
Definition at line 1128 of file switch_fct.h.
#define fct_ts__name | ( | ts | ) | ((ts)->name) |
Definition at line 1141 of file switch_fct.h.
Referenced by fct_junit_logger__on_test_suite_end(), and fct_ts__make_abort_test().
#define fct_unused | ( | x | ) | (void)(x) |
Definition at line 164 of file switch_fct.h.
Referenced by fct_junit_logger__on_delete(), fct_junit_logger__on_fct_start(), fct_junit_logger__on_fctx_end(), fct_junit_logger__on_test_suite_end(), fct_junit_logger__on_test_suite_start(), fct_logger__stub(), fct_minimal_logger__on_delete(), fct_minimal_logger__on_fctx_end(), fct_standard_logger__on_delete(), fct_standard_logger__on_fctx_start(), fct_standard_logger__on_test_end(), fct_standard_logger__on_test_skip(), fct_standard_logger__on_test_start(), and fct_standard_logger__on_warn().
#define FCT_VERSION_MAJOR 1 |
Definition at line 62 of file switch_fct.h.
#define FCT_VERSION_MICRO 1 |
Definition at line 64 of file switch_fct.h.
#define FCT_VERSION_MINOR 6 |
Definition at line 63 of file switch_fct.h.
#define FCT_VERSION_STR |
Definition at line 69 of file switch_fct.h.
Referenced by fctkern__cl_parse().
#define fct_xchk |
Definition at line 3643 of file switch_fct.h.
#define fct_xchk2 |
Definition at line 3649 of file switch_fct.h.
#define fctchk__cndtn | ( | _CHK_ | ) | ((_CHK_)->cndtn) |
Definition at line 860 of file switch_fct.h.
#define fctchk__file | ( | _CHK_ | ) | ((_CHK_)->file) |
Definition at line 858 of file switch_fct.h.
Referenced by fct_logger_print_failures(), and fct_standard_logger__on_chk().
#define fctchk__is_pass | ( | _CHK_ | ) | ((_CHK_)->is_pass) |
Definition at line 857 of file switch_fct.h.
Referenced by fct_minimal_logger__on_chk(), fct_standard_logger__on_chk(), and fct_test__add().
#define fctchk__lineno | ( | _CHK_ | ) | ((_CHK_)->lineno) |
Definition at line 859 of file switch_fct.h.
Referenced by fct_logger_print_failures(), and fct_standard_logger__on_chk().
#define fctchk__msg | ( | _CHK_ | ) | ((_CHK_)->msg) |
Definition at line 861 of file switch_fct.h.
Referenced by fct_logger_print_failures(), and fct_standard_logger__on_chk().
#define fctchk__name | ( | _CHK_ | ) | ((_CHK_)->name) |
Definition at line 862 of file switch_fct.h.
Referenced by fct_logger_print_failures().
#define fctcl__set_value | ( | _CLO_, | |
_VAL_ | |||
) | (_CLO_)->value = fctstr_clone((_VAL_)); |
Definition at line 1539 of file switch_fct.h.
Referenced by fct_clp__parse().
#define FCTCL_INIT_NULL {NULL, NULL, FCTCL_STORE_UNDEFINED, NULL} |
Definition at line 1406 of file switch_fct.h.
#define fctcl_install | ( | _CLO_INIT_ | ) |
Definition at line 3347 of file switch_fct.h.
#define fctcl_is | ( | _OPT_STR_ | ) | (fctkern__cl_is(fctkern_ptr__, (_OPT_STR_))) |
Definition at line 3368 of file switch_fct.h.
Definition at line 1443 of file switch_fct.h.
Referenced by fctcl_new2().
#define FCTCL_TRUE_STR "1" |
Definition at line 1423 of file switch_fct.h.
Referenced by fct_clp__parse().
#define fctcl_val | ( | _OPT_STR_ | ) | (fctcl_val2((_OPT_STR_), NULL)) |
Definition at line 3370 of file switch_fct.h.
#define fctcl_val2 | ( | _OPT_STR_, | |
_DEF_STR_ | |||
) | (fctkern__cl_val2(fctkern_ptr__, (_OPT_STR_), (_DEF_STR_))) |
Definition at line 3372 of file switch_fct.h.
#define fctkern__cl_is_parsed | ( | _NK_ | ) | ((_NK_)->cl_is_parsed) |
Definition at line 2053 of file switch_fct.h.
#define fctkern__end | ( | nk | ) | /* unused */ |
Definition at line 2333 of file switch_fct.h.
#define fctkern__filter_cnt | ( | _NK_ | ) | (fct_nlist__size(&((_NK_)->prefix_list))) |
Definition at line 1959 of file switch_fct.h.
Referenced by fctkern__pass_filter().
#define fctkern__log_end | ( | _NK_ | ) |
Definition at line 2454 of file switch_fct.h.
#define fctkern__log_start | ( | _NK_ | ) |
Definition at line 2444 of file switch_fct.h.
#define fctkern__tst_cnt_failed | ( | nk | ) | (fctkern__tst_cnt(nk) - fctkern__tst_cnt_passed(nk)) |
Definition at line 2310 of file switch_fct.h.
#define fctlog_install | ( | _CUST_LOGGER_LIST_ | ) | fctkern_ptr__->lt_usr = (_CUST_LOGGER_LIST_) |
Definition at line 3342 of file switch_fct.h.
#define FCTMF_FIXTURE_SUITE_BGN | ( | NAME | ) |
Definition at line 3912 of file switch_fct.h.
#define FCTMF_FIXTURE_SUITE_END | ( | ) |
Definition at line 3917 of file switch_fct.h.
#define FCTMF_SUITE_BGN | ( | NAME | ) |
Definition at line 3921 of file switch_fct.h.
#define FCTMF_SUITE_CALL | ( | NAME | ) |
Definition at line 3935 of file switch_fct.h.
#define FCTMF_SUITE_DEF | ( | NAME | ) |
Definition at line 3931 of file switch_fct.h.
#define FCTMF_SUITE_END | ( | ) |
Definition at line 3925 of file switch_fct.h.
#define FCTMIN | ( | x, | |
y | |||
) | ( x < y) ? (x) : (y) |
Definition at line 89 of file switch_fct.h.
Referenced by fct_dotted_line_start().
#define nbool_t int |
Definition at line 85 of file switch_fct.h.
Referenced by fct_filter_pass(), fct_junit_logger__on_test_suite_end(), fct_standard_logger__on_fctx_end(), fct_standard_logger__on_test_end(), fct_test__duration(), fct_test_new(), fct_ts__cnt_end(), fct_ts_new(), fctkern__add_ts(), fctkern__pass_filter(), and fctstr_clone_lower().
typedef struct _fct_clp_t fct_clp_t |
typedef struct _fct_junit_logger_t fct_junit_logger_t |
Definition at line 106 of file switch_fct.h.
typedef struct _fct_logger_evt_t fct_logger_evt_t |
Definition at line 102 of file switch_fct.h.
typedef struct _fct_logger_i fct_logger_i |
Definition at line 103 of file switch_fct.h.
typedef struct _fct_logger_i_vtable_t fct_logger_i_vtable_t |
typedef fct_logger_i*(* fct_logger_new_fn) (void) |
Definition at line 1929 of file switch_fct.h.
typedef struct _fct_logger_types_t fct_logger_types_t |
Definition at line 104 of file switch_fct.h.
typedef struct _fct_minimal_logger_t fct_minimal_logger_t |
Definition at line 107 of file switch_fct.h.
typedef struct _fct_namespace_t fct_namespace_t |
typedef void(* fct_nlist_on_del_t) (void *) |
Definition at line 716 of file switch_fct.h.
typedef struct _fct_nlist_t fct_nlist_t |
Definition at line 704 of file switch_fct.h.
typedef struct _fct_standard_logger_t fct_standard_logger_t |
Definition at line 105 of file switch_fct.h.
typedef struct _fct_test_t fct_test_t |
Definition at line 109 of file switch_fct.h.
typedef struct _fct_timer_t fct_timer_t |
Definition at line 624 of file switch_fct.h.
Definition at line 110 of file switch_fct.h.
Definition at line 108 of file switch_fct.h.
typedef struct _fctcl_init_t fctcl_init_t |
typedef struct _fctkern_t fctkern_t |
Definition at line 111 of file switch_fct.h.
enum FCT_TEST_END_FLAG |
Enumerator | |
---|---|
FCT_TEST_END_FLAG_Default | |
FCT_TEST_END_FLAG_ClearFail |
Definition at line 3474 of file switch_fct.h.
enum fct_test_status |
Enumerator | |
---|---|
fct_test_status_SUCCESS | |
fct_test_status_FAILURE |
Definition at line 1100 of file switch_fct.h.
enum fctcl_store_t |
Enumerator | |
---|---|
FCTCL_STORE_UNDEFINED | |
FCTCL_STORE_TRUE | |
FCTCL_STORE_VALUE |
Definition at line 1383 of file switch_fct.h.
enum ts_mode |
Enumerator | |
---|---|
ts_mode_cnt | |
ts_mode_setup | |
ts_mode_teardown | |
ts_mode_test | |
ts_mode_ending | |
ts_mode_end | |
ts_mode_abort |
Definition at line 1088 of file switch_fct.h.
|
static |
Definition at line 3727 of file switch_fct.h.
|
static |
Definition at line 3736 of file switch_fct.h.
|
static |
Definition at line 3577 of file switch_fct.h.
References fct_test__add(), fct_test__name, fct_xchk_file, fct_xchk_lineno, fctchk_new(), fctkern__log_chk(), and fctkern__log_warn().
Referenced by fct_xchk2_fn(), and fct_xchk_fn().
|
static |
Definition at line 2084 of file switch_fct.h.
References FCT_ASSERT, fctstr_ieq(), _fct_logger_types_t::logger_new_fn, and _fct_logger_types_t::name.
Referenced by fctkern__cl_parse_config_logger().
|
static |
Definition at line 1573 of file switch_fct.h.
References _fctcl_init_t::action, _fct_clp_t::clo_list, fct_nlist__append(), fctcl_new2(), and FCTCL_STORE_UNDEFINED.
Referenced by fct_clp__init(), and fctkern__cl_parse().
|
static |
Definition at line 1564 of file switch_fct.h.
References _fct_clp_t::clo_list, fct_nlist__final(), fctcl__del(), and _fct_clp_t::param_list.
Referenced by fct_clp__init(), and fctkern__final().
Definition at line 1730 of file switch_fct.h.
References _fct_clp_t::clo_list, FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, and fctcl__is_option().
Referenced by fct_clp__optval2().
|
static |
Definition at line 1594 of file switch_fct.h.
References _fct_clp_t::clo_list, FCT_ASSERT, fct_clp__add_options(), fct_clp__final(), fct_nlist__init, and _fct_clp_t::param_list.
Referenced by fctkern__init().
|
static |
Definition at line 1771 of file switch_fct.h.
References FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, fctstr_eq(), and _fct_clp_t::param_list.
|
static |
Definition at line 1754 of file switch_fct.h.
References FCT_ASSERT, fct_clp__get_clo(), and _fctcl_t::value.
Referenced by fctkern__cl_val2().
|
static |
Definition at line 1631 of file switch_fct.h.
References _fct_clp_t::clo_list, _fct_clp_t::error_msg, FCT_ASSERT, FCT_CLP_MAX_ERR_MSG_LEN, fct_nlist__append(), FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, fct_snprintf(), fctcl__is_option(), fctcl__set_value, FCTCL_STORE_TRUE, FCTCL_STORE_VALUE, FCTCL_TRUE_STR, fctstr_clone(), _fct_clp_t::is_error, is_option(), and _fct_clp_t::param_list.
Referenced by fctkern__cl_parse().
|
static |
Definition at line 608 of file switch_fct.h.
Referenced by fct_standard_logger__on_test_end(), and fct_standard_logger__on_test_skip().
|
static |
Definition at line 588 of file switch_fct.h.
References FCT_DOTTED_MAX_LEN, FCTMIN, and memset().
Referenced by fct_standard_logger__on_test_skip(), and fct_standard_logger__on_test_start().
|
static |
Definition at line 341 of file switch_fct.h.
References FCT_ASSERT, FCT_FALSE, FCT_TRUE, and nbool_t.
Referenced by fctkern__pass_filter().
|
static |
Definition at line 3175 of file switch_fct.h.
References fct_unused.
Referenced by fct_junit_logger_new().
|
static |
Definition at line 3152 of file switch_fct.h.
References fct_unused.
Referenced by fct_junit_logger_new().
|
static |
Definition at line 3164 of file switch_fct.h.
References fct_unused.
Referenced by fct_junit_logger_new().
|
static |
Definition at line 3050 of file switch_fct.h.
References _fct_read, FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, fct_stderr_pipe, fct_stdout_pipe, FCT_SWITCH_STDERR_TO_STDERR, FCT_SWITCH_STDOUT_TO_STDOUT, fct_test__duration(), fct_test__is_pass(), fct_test__name, fct_ts__duration(), fct_ts__name, fct_ts__tst_cnt(), fct_ts__tst_cnt_passed(), fct_unused, nbool_t, _fct_ts_t::test_list, and _fct_logger_evt_t::ts.
Referenced by fct_junit_logger_new().
|
static |
Definition at line 3037 of file switch_fct.h.
References FCT_SWITCH_STDERR_TO_BUFFER, FCT_SWITCH_STDOUT_TO_BUFFER, and fct_unused.
Referenced by fct_junit_logger_new().
|
static |
Definition at line 3188 of file switch_fct.h.
References fct_junit_logger__on_delete(), fct_junit_logger__on_fct_start(), fct_junit_logger__on_fctx_end(), fct_junit_logger__on_test_suite_end(), fct_junit_logger__on_test_suite_start(), and fct_logger__init().
|
static |
Definition at line 2606 of file switch_fct.h.
Referenced by fctkern__final().
|
static |
Definition at line 2594 of file switch_fct.h.
References FCT_ASSERT, and memset().
Referenced by fct_junit_logger_new(), fct_minimal_logger_new(), and fct_standard_logger_new().
|
static |
Definition at line 2674 of file switch_fct.h.
Referenced by fctkern__log_chk().
|
static |
Definition at line 2624 of file switch_fct.h.
Referenced by fctkern__log_test_end().
|
static |
Definition at line 2661 of file switch_fct.h.
References name.
Referenced by fctkern__log_test_skip().
|
static |
Definition at line 2616 of file switch_fct.h.
Referenced by fctkern__log_test_start().
|
static |
Definition at line 2640 of file switch_fct.h.
Referenced by fctkern__log_suite_end().
|
static |
Definition at line 2648 of file switch_fct.h.
References name.
Referenced by fctkern__log_suite_skip().
|
static |
Definition at line 2632 of file switch_fct.h.
Referenced by fctkern__log_suite_start().
|
static |
Definition at line 2693 of file switch_fct.h.
Referenced by fctkern__log_warn().
|
static |
|
static |
Definition at line 2715 of file switch_fct.h.
References FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, fctchk__file, fctchk__lineno, fctchk__msg, and fctchk__name.
Referenced by fct_minimal_logger__on_fctx_end(), and fct_standard_logger__on_fctx_end().
|
static |
Definition at line 2704 of file switch_fct.h.
References FCT_ASSERT, and fct_nlist__append().
Referenced by fct_minimal_logger__on_chk(), and fct_standard_logger__on_chk().
|
static |
Definition at line 2764 of file switch_fct.h.
References _fct_logger_evt_t::chk, fct_logger_record_failure(), and fctchk__is_pass.
Referenced by fct_minimal_logger_new().
|
static |
Definition at line 2798 of file switch_fct.h.
References fct_nlist__final(), fct_unused, and fctchk__del().
Referenced by fct_minimal_logger_new().
|
static |
Definition at line 2783 of file switch_fct.h.
References fct_logger_print_failures(), fct_nlist__size(), and fct_unused.
Referenced by fct_minimal_logger_new().
|
static |
Definition at line 2812 of file switch_fct.h.
References fct_logger__init(), fct_minimal_logger__on_chk(), fct_minimal_logger__on_delete(), fct_minimal_logger__on_fctx_end(), and fct_nlist__init2().
|
static |
Definition at line 1842 of file switch_fct.h.
References FCT_ASSERT, and memset().
Referenced by fctkern__init().
|
static |
Definition at line 803 of file switch_fct.h.
References _fct_nlist_t::avail_itm_num, FCT_ASSERT, FCT_LIST_GROWTH_FACTOR, _fct_nlist_t::itm_list, and _fct_nlist_t::used_itm_num.
Referenced by fct_clp__add_options(), fct_clp__parse(), fct_logger_record_failure(), fct_test__add(), fct_ts__add_test(), fctkern__add_logger(), fctkern__add_prefix_filter(), and fctkern__add_ts().
|
static |
Definition at line 794 of file switch_fct.h.
References FCT_ASSERT, and _fct_nlist_t::itm_list.
Referenced by fctkern__pass_filter().
|
static |
Definition at line 723 of file switch_fct.h.
References FCT_ASSERT, _fct_nlist_t::itm_list, and _fct_nlist_t::used_itm_num.
Referenced by fct_nlist__final().
|
static |
Definition at line 741 of file switch_fct.h.
References FCT_ASSERT, fct_nlist__clear(), and _fct_nlist_t::itm_list.
Referenced by fct_clp__final(), fct_minimal_logger__on_delete(), fct_standard_logger__on_delete(), fct_test__del(), fct_ts__del(), and fctkern__final().
|
static |
Definition at line 751 of file switch_fct.h.
References _fct_nlist_t::avail_itm_num, FCT_ASSERT, _fct_nlist_t::itm_list, and _fct_nlist_t::used_itm_num.
Referenced by fct_minimal_logger_new(), fct_standard_logger_new(), fct_test_new(), and fctkern__init().
|
static |
Definition at line 785 of file switch_fct.h.
References FCT_ASSERT, and _fct_nlist_t::used_itm_num.
Referenced by fct_minimal_logger__on_fctx_end(), fct_standard_logger__on_fctx_end(), fct_test__chk_cnt(), fct_test__is_pass(), and fct_ts__tst_cnt().
|
static |
Definition at line 287 of file switch_fct.h.
References count, and fct_vsnprintf().
Referenced by fct_clp__parse(), fct_standard_logger__on_test_skip(), and fct_ts__make_abort_test().
|
static |
Definition at line 2853 of file switch_fct.h.
References _fct_logger_evt_t::chk, _fct_standard_logger_t::failed_cndtns_list, fct_logger_record_failure(), fctchk__file, fctchk__is_pass, fctchk__lineno, and fctchk__msg.
Referenced by fct_standard_logger_new().
|
static |
Definition at line 2973 of file switch_fct.h.
References _fct_standard_logger_t::failed_cndtns_list, fct_nlist__final(), fct_unused, and fctchk__del().
Referenced by fct_standard_logger_new().
|
static |
Definition at line 2929 of file switch_fct.h.
References _fct_standard_logger_t::failed_cndtns_list, fct_logger_print_failures(), fct_nlist__size(), fct_timer__duration(), fct_timer__stop(), fctkern__tst_cnt(), fctkern__tst_cnt_passed(), _fct_logger_evt_t::kern, nbool_t, and _fct_standard_logger_t::timer.
Referenced by fct_standard_logger_new().
|
static |
Definition at line 2917 of file switch_fct.h.
References fct_timer__start(), fct_unused, and _fct_standard_logger_t::timer.
Referenced by fct_standard_logger_new().
|
static |
Definition at line 2904 of file switch_fct.h.
References fct_dotted_line_end(), fct_test__is_pass(), fct_unused, nbool_t, and _fct_logger_evt_t::test.
Referenced by fct_standard_logger_new().
|
static |
Definition at line 2872 of file switch_fct.h.
References _fct_logger_evt_t::cndtn, fct_dotted_line_end(), fct_dotted_line_start(), fct_snprintf(), FCT_STANDARD_LOGGER_MAX_LINE, fct_unused, name, and _fct_logger_evt_t::name.
Referenced by fct_standard_logger_new().
|
static |
Definition at line 2890 of file switch_fct.h.
References fct_dotted_line_start(), FCT_STANDARD_LOGGER_MAX_LINE, fct_test__name, fct_unused, and _fct_logger_evt_t::test.
Referenced by fct_standard_logger_new().
|
static |
Definition at line 2987 of file switch_fct.h.
References fct_unused, and _fct_logger_evt_t::msg.
Referenced by fct_standard_logger_new().
|
static |
Definition at line 2998 of file switch_fct.h.
References fct_logger__init(), fct_nlist__init2(), fct_standard_logger__on_chk(), fct_standard_logger__on_delete(), fct_standard_logger__on_fctx_end(), fct_standard_logger__on_fctx_start(), fct_standard_logger__on_test_end(), fct_standard_logger__on_test_skip(), fct_standard_logger__on_test_start(), fct_standard_logger__on_warn(), and fct_timer__init().
|
static |
Definition at line 216 of file switch_fct.h.
References _fct_close, _fct_dup, _fct_dup2, and _fct_pipe.
|
static |
|
static |
Definition at line 1036 of file switch_fct.h.
References _fct_test_t::failed_chks, FCT_ASSERT, fct_nlist__append(), fctchk__is_pass, and _fct_test_t::passed_chks.
Referenced by _fct_xchk_fn_varg().
|
static |
Definition at line 1054 of file switch_fct.h.
References _fct_test_t::failed_chks, FCT_ASSERT, fct_nlist__size(), and _fct_test_t::passed_chks.
Referenced by fct_ts__chk_cnt().
|
static |
Definition at line 951 of file switch_fct.h.
References _fct_test_t::failed_chks, fct_nlist__final(), fctchk__del(), and _fct_test_t::passed_chks.
Referenced by fct_test_new(), and fct_ts__del().
|
static |
Definition at line 1020 of file switch_fct.h.
References FCT_ASSERT, fct_timer__duration(), nbool_t, and _fct_test_t::timer.
Referenced by fct_junit_logger__on_test_suite_end(), and fct_ts__duration().
|
static |
Definition at line 1028 of file switch_fct.h.
References _fct_test_t::failed_chks, FCT_ASSERT, and fct_nlist__size().
Referenced by fct_junit_logger__on_test_suite_end(), fct_standard_logger__on_test_end(), and fct_ts__tst_cnt_passed().
|
static |
Definition at line 1004 of file switch_fct.h.
References FCT_ASSERT, fct_timer__start(), and _fct_test_t::timer.
|
static |
Definition at line 1012 of file switch_fct.h.
References FCT_ASSERT, fct_timer__stop(), and _fct_test_t::timer.
|
static |
Definition at line 964 of file switch_fct.h.
References _fct_test_t::failed_chks, FCT_FALSE, FCT_MAX_NAME, fct_nlist__init, fct_nlist__init2(), fct_test__del(), fct_timer__init(), FCT_TRUE, fctstr_safe_cpy(), _fct_test_t::name, nbool_t, _fct_test_t::passed_chks, and _fct_test_t::timer.
Referenced by fct_ts__make_abort_test().
|
static |
Definition at line 660 of file switch_fct.h.
References _fct_timer_t::duration, and FCT_ASSERT.
Referenced by fct_standard_logger__on_fctx_end(), and fct_test__duration().
|
static |
Definition at line 634 of file switch_fct.h.
References FCT_ASSERT, and memset().
Referenced by fct_standard_logger_new(), and fct_test_new().
|
static |
Definition at line 642 of file switch_fct.h.
References FCT_ASSERT, and _fct_timer_t::start.
Referenced by fct_standard_logger__on_fctx_start(), and fct_test__start_timer().
|
static |
Definition at line 650 of file switch_fct.h.
References _fct_timer_t::duration, FCT_ASSERT, _fct_timer_t::start, and _fct_timer_t::stop.
Referenced by fct_standard_logger__on_fctx_end(), and fct_test__stop_timer().
|
static |
Definition at line 1191 of file switch_fct.h.
References FCT_ASSERT, fct_nlist__append(), fct_ts__is_end, and _fct_ts_t::test_list.
|
static |
Definition at line 1344 of file switch_fct.h.
References FCT_ASSERT, FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, fct_test__chk_cnt(), and _fct_ts_t::test_list.
|
static |
Definition at line 1277 of file switch_fct.h.
References FCT_ASSERT, fct_ts__is_cnt_mode, fct_ts__is_end, _fct_ts_t::mode, nbool_t, _fct_ts_t::total_test_num, ts_mode_ending, and ts_mode_setup.
|
static |
Definition at line 1145 of file switch_fct.h.
References fct_nlist__final(), fct_test__del(), and _fct_ts_t::test_list.
Referenced by fctkern__final().
|
static |
Definition at line 1360 of file switch_fct.h.
References FCT_ASSERT, FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, fct_test__duration(), and _fct_ts_t::test_list.
Referenced by fct_junit_logger__on_test_suite_end().
|
static |
Definition at line 1211 of file switch_fct.h.
References FCT_ASSERT, fct_ts__is_cnt_mode, fct_ts__is_end, and _fct_ts_t::total_test_num.
Definition at line 1171 of file switch_fct.h.
References _fct_ts_t::curr_test_num, FCT_ASSERT, fct_ts__is_end, and _fct_ts_t::total_test_num.
Referenced by fct_ts__teardown_end().
Definition at line 1294 of file switch_fct.h.
References _fct_ts_t::curr_test_num, FCT_ASSERT, and fct_ts__is_end.
|
static |
Definition at line 1233 of file switch_fct.h.
References FCT_MAX_LOG_LINE, fct_snprintf(), fct_test_new(), and fct_ts__name.
|
static |
Definition at line 1243 of file switch_fct.h.
References FCT_ASSERT, _fct_ts_t::mode, and ts_mode_abort.
|
static |
Definition at line 1223 of file switch_fct.h.
References _fct_ts_t::mode, ts_mode_abort, and ts_mode_test.
|
static |
Definition at line 1252 of file switch_fct.h.
References fct_ts__is_more_tests(), _fct_ts_t::mode, ts_mode_abort, ts_mode_ending, and ts_mode_setup.
|
static |
Definition at line 1181 of file switch_fct.h.
References _fct_ts_t::curr_test_num, FCT_ASSERT, and fct_ts__is_end.
|
static |
Definition at line 1201 of file switch_fct.h.
References FCT_ASSERT, _fct_ts_t::mode, and ts_mode_teardown.
|
static |
Definition at line 1310 of file switch_fct.h.
References FCT_ASSERT, fct_nlist__size(), fct_ts__is_end, and _fct_ts_t::test_list.
Referenced by fct_junit_logger__on_test_suite_end(), and fctkern__tst_cnt().
|
static |
Definition at line 1323 of file switch_fct.h.
References FCT_ASSERT, FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, fct_test__is_pass(), fct_ts__is_end, and _fct_ts_t::test_list.
Referenced by fct_junit_logger__on_test_suite_end(), and fctkern__tst_cnt_passed().
|
static |
Definition at line 1156 of file switch_fct.h.
References FCT_ASSERT, FCT_MAX_NAME, fct_nlist__init, fctstr_safe_cpy(), _fct_ts_t::mode, _fct_ts_t::name, nbool_t, _fct_ts_t::test_list, and ts_mode_cnt.
|
static |
Definition at line 265 of file switch_fct.h.
References count.
Referenced by fct_snprintf(), and fctchk_new().
|
static |
Definition at line 3613 of file switch_fct.h.
References _fct_xchk_fn_varg().
|
static |
Definition at line 3625 of file switch_fct.h.
References _fct_xchk_fn_varg().
|
static |
Definition at line 910 of file switch_fct.h.
Referenced by fct_minimal_logger__on_delete(), fct_standard_logger__on_delete(), and fct_test__del().
|
static |
Definition at line 865 of file switch_fct.h.
References _fctchk_t::cndtn, FCT_ASSERT, FCT_MAX_LOG_LINE, fct_vsnprintf(), fctstr_safe_cpy(), _fctchk_t::file, _fctchk_t::is_pass, _fctchk_t::lineno, _fctchk_t::msg, and _fctchk_t::name.
Referenced by _fct_xchk_fn_varg().
|
static |
Definition at line 1447 of file switch_fct.h.
References _fctcl_t::help, _fctcl_t::long_opt, _fctcl_t::short_opt, and _fctcl_t::value.
Referenced by fct_clp__final(), and fctcl_new2().
|
static |
Definition at line 1523 of file switch_fct.h.
References FCT_ASSERT, fctstr_eq(), _fctcl_t::long_opt, and _fctcl_t::short_opt.
Referenced by fct_clp__get_clo(), and fct_clp__parse().
|
static |
Definition at line 1462 of file switch_fct.h.
References _fctcl_init_t::action, _fctcl_t::action, fctcl__del(), fctcl_new, fctstr_clone(), _fctcl_init_t::help, _fctcl_t::help, _fctcl_init_t::long_opt, _fctcl_t::long_opt, _fctcl_init_t::short_opt, and _fctcl_t::short_opt.
Referenced by fct_clp__add_options().
|
static |
Definition at line 1963 of file switch_fct.h.
References FCT_ASSERT, fct_nlist__append(), and _fctkern_t::logger_list.
Referenced by fctkern__cl_parse_config_logger().
|
static |
Definition at line 2020 of file switch_fct.h.
References FCT_ASSERT, fct_nlist__append(), fctstr_safe_cpy(), and _fctkern_t::prefix_list.
Referenced by fctkern__cl_parse().
Definition at line 2232 of file switch_fct.h.
References FCT_ASSERT, fct_nlist__append(), nbool_t, and _fctkern_t::ts_list.
|
static |
Definition at line 2057 of file switch_fct.h.
References _fctkern_t::cl_parser, FCT_ASSERT, and fct_clp__is.
Referenced by fctkern__cl_parse().
|
static |
Definition at line 2135 of file switch_fct.h.
References _fctkern_t::cl_argc, _fctkern_t::cl_argv, _fctkern_t::cl_is_parsed, _fctkern_t::cl_parser, _fctkern_t::cl_user_opts, fct_clp__add_options(), fct_clp__get_error, fct_clp__is_error, fct_clp__param_at, fct_clp__param_cnt, fct_clp__parse(), FCT_OPT_HELP, FCT_OPT_VERSION, FCT_VERSION_STR, fctkern__add_prefix_filter(), fctkern__cl_is(), fctkern__cl_parse_config_logger(), and fctkern__write_help().
|
static |
Definition at line 2101 of file switch_fct.h.
References fckern_sel_log(), FCT_ASSERT, FCT_DEFAULT_LOGGER, FCT_OPT_LOGGER, fctkern__add_logger(), fctkern__cl_val2(), _fctkern_t::lt_sys, and _fctkern_t::lt_usr.
Referenced by fctkern__cl_parse().
|
static |
Definition at line 2070 of file switch_fct.h.
References _fctkern_t::cl_parser, FCT_ASSERT, and fct_clp__optval2().
Referenced by fctkern__cl_parse_config_logger().
|
static |
Definition at line 2039 of file switch_fct.h.
References _fctkern_t::cl_parser, fct_clp__final(), fct_logger__del(), fct_nlist__final(), fct_ts__del(), _fctkern_t::logger_list, _fctkern_t::prefix_list, and _fctkern_t::ts_list.
|
static |
Definition at line 2202 of file switch_fct.h.
References _fctkern_t::cl_argc, _fctkern_t::cl_argv, _fctkern_t::cl_is_parsed, _fctkern_t::cl_parser, fct_clp__init(), FCT_LOGGER_TYPES, fct_namespace_init(), fct_nlist__init, fct_nlist__init2(), _fctkern_t::logger_list, _fctkern_t::lt_sys, _fctkern_t::lt_usr, memset(), _fctkern_t::ns, _fctkern_t::prefix_list, and _fctkern_t::ts_list.
Definition at line 2391 of file switch_fct.h.
References FCT_ASSERT, fct_logger__on_chk(), FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, and _fctkern_t::logger_list.
Referenced by _fct_xchk_fn_varg().
Definition at line 2350 of file switch_fct.h.
References FCT_ASSERT, fct_logger__on_test_suite_end(), FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, and _fctkern_t::logger_list.
|
static |
Definition at line 2363 of file switch_fct.h.
References fct_logger__on_test_suite_skip(), FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, and _fctkern_t::logger_list.
Definition at line 2337 of file switch_fct.h.
References FCT_ASSERT, fct_logger__on_test_suite_start(), FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, and _fctkern_t::logger_list.
|
static |
Definition at line 2432 of file switch_fct.h.
References FCT_ASSERT, fct_logger__on_test_end(), FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, and _fctkern_t::logger_list.
|
static |
Definition at line 2378 of file switch_fct.h.
References fct_logger__on_test_skip(), FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, and _fctkern_t::logger_list.
|
static |
Definition at line 2419 of file switch_fct.h.
References FCT_ASSERT, fct_logger__on_test_start(), FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, and _fctkern_t::logger_list.
|
static |
Definition at line 2405 of file switch_fct.h.
References FCT_ASSERT, fct_logger__on_warn(), FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, and _fctkern_t::logger_list.
Referenced by _fct_xchk_fn_varg().
Definition at line 2243 of file switch_fct.h.
References FCT_ASSERT, FCT_FALSE, fct_filter_pass(), fct_nlist__at(), FCT_TRUE, fctkern__filter_cnt, nbool_t, and _fctkern_t::prefix_list.
|
static |
Definition at line 2279 of file switch_fct.h.
References FCT_ASSERT, FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, fct_ts__tst_cnt(), and _fctkern_t::ts_list.
Referenced by fct_standard_logger__on_fctx_end().
|
static |
Definition at line 2294 of file switch_fct.h.
References FCT_ASSERT, FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, fct_ts__tst_cnt_passed(), and _fctkern_t::ts_list.
Referenced by fct_standard_logger__on_fctx_end().
|
static |
Definition at line 1972 of file switch_fct.h.
References _fctkern_t::cl_parser, _fct_clp_t::clo_list, _fct_logger_types_t::desc, FCT_DEFAULT_LOGGER, FCT_NLIST_FOREACH_BGN, FCT_NLIST_FOREACH_END, FCT_OPT_LOGGER, fctstr_ieq(), _fctkern_t::lt_sys, _fctkern_t::lt_usr, and _fct_logger_types_t::name.
Referenced by fctkern__cl_parse().
|
static |
Definition at line 301 of file switch_fct.h.
References FCT_ASSERT, and fctstr_safe_cpy().
Referenced by fct_clp__parse(), and fctcl_new2().
|
static |
Definition at line 316 of file switch_fct.h.
References FCT_ASSERT, and nbool_t.
Referenced by fctstr_iincl(), and fctstr_istartswith().
|
static |
Definition at line 517 of file switch_fct.h.
|
static |
Definition at line 389 of file switch_fct.h.
Referenced by fct_clp__is_param(), and fctcl__is_option().
|
static |
Definition at line 549 of file switch_fct.h.
|
static |
Definition at line 413 of file switch_fct.h.
Referenced by fckern_sel_log(), and fctkern__write_help().
|
static |
Definition at line 464 of file switch_fct.h.
References fctstr_clone_lower(), and fctstr_incl().
|
static |
|
static |
Definition at line 500 of file switch_fct.h.
References fctstr_clone_lower(), and fctstr_startswith().
|
static |
Definition at line 250 of file switch_fct.h.
References FCT_ASSERT.
Referenced by fct_test_new(), fct_ts_new(), fctchk_new(), fctkern__add_prefix_filter(), and fctstr_clone().
|
static |
Definition at line 481 of file switch_fct.h.
Referenced by fctstr_istartswith().
|
static |
Definition at line 1903 of file switch_fct.h.
|
static |
Definition at line 2575 of file switch_fct.h.
|
static |
Definition at line 1937 of file switch_fct.h.
Referenced by fctkern__init().
|
static |
Definition at line 187 of file switch_fct.h.
|
static |
Definition at line 186 of file switch_fct.h.
|
static |
Definition at line 185 of file switch_fct.h.
Referenced by fct_junit_logger__on_test_suite_end().
|
static |
Definition at line 184 of file switch_fct.h.
Referenced by fct_junit_logger__on_test_suite_end().
|
static |
Definition at line 3571 of file switch_fct.h.
Referenced by _fct_xchk_fn_varg().
|
static |
Definition at line 3573 of file switch_fct.h.
|
static |
Definition at line 3570 of file switch_fct.h.
Referenced by _fct_xchk_fn_varg().
|
static |
Definition at line 3572 of file switch_fct.h.