Assert function implementations. [詳細]
#include <stdio.h>
#include <ccunit/CCUnitAssert.h>
#include <ccunit/CCUnitTestFailure.h>
#include <setjmp.h>
#include <stdarg.h>
#include <assert.h>
関数 | |
void | ccunit_assert (const char *file, unsigned int line, bool condition, const char *condstr) |
Asserts that a condition is true. |
変数 | |
jmp_buf | _ccunit_runTest_env |
run tests exception environment. | |
CCUnitTestFailure * | _ccunit_testFailure |
run tests exception. | |
ccunit_assert_format_TYPE | |
snprintf format string for each types. | |
char * | _ccunit_assert_format_char = "%c" |
char * | _ccunit_assert_format_u_char = "%c" |
char * | _ccunit_assert_format_int = "%d" |
char * | _ccunit_assert_format_u_int = "%u" |
char * | _ccunit_assert_format_short = "%hd" |
char * | _ccunit_assert_format_u_short = "%hu" |
char * | _ccunit_assert_format_long = "%ld" |
char * | _ccunit_assert_format_u_long = "%lu" |
char * | _ccunit_assert_format_float = "%f" |
char * | _ccunit_assert_format_double = "%f" |
char * | _ccunit_assert_format__ccunit_str_t = "%s" |
char * | _ccunit_assert_format__ccunit_ptr_t = "%p" |
Value to string definitions | |||||
| |||||
#define | DEF_VALUE_TO_STRING(TYP, CAPACITY) | ||||
DEF_VALUE_TO_STRING (char, 6) | |||||
DEF_VALUE_TO_STRING (u_char, 6) | |||||
DEF_VALUE_TO_STRING (int, 12) | |||||
DEF_VALUE_TO_STRING (u_int, 12) | |||||
DEF_VALUE_TO_STRING (short, 8) | |||||
DEF_VALUE_TO_STRING (u_short, 8) | |||||
DEF_VALUE_TO_STRING (long, 12) | |||||
DEF_VALUE_TO_STRING (u_long, 12) | |||||
DEF_VALUE_TO_STRING (float, 24) | |||||
DEF_VALUE_TO_STRING (double, 24) | |||||
DEF_VALUE_TO_STRING (_ccunit_str_t, 32) | |||||
DEF_VALUE_TO_STRING (_ccunit_ptr_t, 24) |
Assert test type | |||
Assert test function.
| |||
#define | DEF_CCUNIT_ASSERT_TEST_TYPE(TYP) | ||
void | ccunit_assert_test__ccunit_obj_t (const char *file, unsigned int line, bool cond, const char *condstr, _ccunit_obj_t expect, _ccunit_obj_t actual, char *(*to_string)(_ccunit_obj_t)) | ||
DEF_CCUNIT_ASSERT_TEST_TYPE (char) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (u_char) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (int) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (u_int) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (short) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (u_short) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (long) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (u_long) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (float) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (double) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (_ccunit_str_t) | |||
DEF_CCUNIT_ASSERT_TEST_TYPE (_ccunit_ptr_t) |
Assert function implementations.
|
hosts this site. | Send comments to: CCUnit Developer |
CCUnitに対してSat Jul 13 2013 15:09:23に生成されました。
![]() |