mapitest statistics functions More...
Functions | |
uint32_t | mapitest_stat_add_result (struct mapitest_suite *suite, const char *name, bool result) |
uint32_t | mapitest_stat_add_skipped_test (struct mapitest_suite *suite, const char *name, enum TestApplicabilityFlags flags) |
int32_t | mapitest_stat_dump (struct mapitest *mt) |
struct mapitest_stat * | mapitest_stat_init (TALLOC_CTX *mem_ctx) |
Variables | |
struct TestApplicabilityDescription | applicabilityFlagsDescription [] |
Descriptions of TestApplicabilityFlags. |
mapitest statistics functions
mapitest records and prints the results of each test using these functions
uint32_t mapitest_stat_add_result | ( | struct mapitest_suite * | suite, | |
const char * | name, | |||
bool | result | |||
) |
Add test result to the suite statistic parameter
suite | the suite container | |
name | the test name | |
result | the test result |
References mapitest_stat::enabled, mapitest_stat::failure, mapitest_stat::failure_info, MAPITEST_ERROR, MAPITEST_SUCCESS, mapitest_unit::name, mapitest_suite::stat, and mapitest_stat::success.
Referenced by mapitest_run_all(), and mapitest_suite_run_test().
uint32_t mapitest_stat_add_skipped_test | ( | struct mapitest_suite * | suite, | |
const char * | name, | |||
enum TestApplicabilityFlags | flags | |||
) |
Add a skipped test to the suite statistic parameters
suite | the suite container | |
name | the test name | |
flags | flags to indicate the reason why the test was skipped |
References mapitest_stat::enabled, MAPITEST_ERROR, MAPITEST_SUCCESS, mapitest_unit::name, mapitest_stat::skip_info, mapitest_stat::skipped, and mapitest_suite::stat.
Referenced by mapitest_run_all(), and mapitest_suite_run_test().
int32_t mapitest_stat_dump | ( | struct mapitest * | mt | ) |
Dump mapitest statistics about test failures
mt | the global mapitest structure |
References mapitest_stat::enabled, mapitest_stat::failure, mapitest_stat::failure_info, mapitest::mapi_suite, mapitest_print(), mapitest_print_test_title_end(), mapitest_print_title(), MODULE_TITLE_DELIM, MT_STAT_FAILED_TITLE, MT_STAT_FAILURE, MT_STAT_SKIPPED, MT_STAT_SKIPPED_TITLE, MT_SUMMARY_TITLE, mapitest_unit::name, mapitest_suite::name, mapitest_unit::next, mapitest_suite::next, mapitest_unit::reason, mapitest_stat::skip_info, mapitest_stat::skipped, mapitest_suite::stat, and mapitest_stat::success.
Referenced by main().
struct mapitest_stat* mapitest_stat_init | ( | TALLOC_CTX * | mem_ctx | ) | [read] |
Initialize the mapitest statistic structure
mem_ctx | memory allocation context |
References mapitest_stat::enabled, mapitest_stat::failure, mapitest_stat::failure_info, mapitest_stat::skip_info, mapitest_stat::skipped, and mapitest_stat::success.
Referenced by mapitest_suite_init().
struct TestApplicabilityDescription applicabilityFlagsDescription[] |
Descriptions of TestApplicabilityFlags.
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |