|
Nugget
|

Macros | |
| #define | CESTER_NO_SIGNAL |
| #define | CESTER_NO_TIME |
| #define | EXIT_SUCCESS 0 |
| #define | EXIT_FAILURE 1 |
Functions | |
| CESTER_BODY (void *__wrap_memset(void *dest, int c, size_t n);) | |
| for (unsigned i=0;i< 3;i++) | |
| cester_assert_uint_eq (buf[3], 0) | |
| cester_assert_ptr_equal (result, buf) | |
| CESTER_TEST (fastmemsetLarger, test_instance, char buf[]={ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };void *result=__wrap_memset(buf, 0x55, 11);for(unsigned i=0;i< 11;i++) { cester_assert_uint_eq(buf[i], 0x55);} cester_assert_uint_eq(buf[11], 0);cester_assert_ptr_equal(result, buf);) CESTER_TEST(fastmemsetLargest | |
| CESTER_TEST (fastmemsetUnaligned, test_instance, char buf[1000]={ 0 };void *result=__wrap_memset(buf+1, 0x55, sizeof(buf) - 1);cester_assert_uint_eq(buf[0], 0);for(unsigned i=1;i< sizeof(buf);i++) { cester_assert_uint_eq(buf[i], 0x55);} cester_assert_ptr_equal(result, buf+1);) CESTER_TEST(memsetSmall | |
| CESTER_TEST (memsetLarger, test_instance, char buf[]={ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };void *result=__builtin_memset(buf, 0x55, 11);for(unsigned i=0;i< 11;i++) { cester_assert_uint_eq(buf[i], 0x55);} cester_assert_uint_eq(buf[11], 0);cester_assert_ptr_equal(result, buf);) CESTER_TEST(memsetLargest | |
Variables | |
| void * | result = __wrap_memset(buf, 0x55, 3) |
| test_instance | |
| char | buf [1000] = { 0 } |
| #define CESTER_NO_SIGNAL |
| #define CESTER_NO_TIME |
| #define EXIT_FAILURE 1 |
| #define EXIT_SUCCESS 0 |
| cester_assert_uint_eq | ( | buf | [3], |
| 0 | |||
| ) |
| CESTER_TEST | ( | fastmemsetLarger | , |
| test_instance | , | ||
| char | buf[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; void * result = __wrap_memset(buf, 0x55, 11); for (unsigned i = 0; i < 11; i++) { cester_assert_uint_eq(buf[i], 0x55); } cester_assert_uint_eq(buf[11], 0); cester_assert_ptr_equal(result, buf); |
||
| ) |
| CESTER_TEST | ( | fastmemsetUnaligned | , |
| test_instance | , | ||
| char | buf[1000] = { 0 }; void * result = __wrap_memset(buf + 1, 0x55, sizeof(buf) - 1); cester_assert_uint_eq(buf[0], 0); for (unsigned i = 1; i < sizeof(buf); i++) { cester_assert_uint_eq(buf[i], 0x55); } cester_assert_ptr_equal(result, buf + 1); |
||
| ) |
| CESTER_TEST | ( | memsetLarger | , |
| test_instance | , | ||
| char | buf[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; void * result = __builtin_memset(buf, 0x55, 11); for (unsigned i = 0; i < 11; i++) { cester_assert_uint_eq(buf[i], 0x55); } cester_assert_uint_eq(buf[11], 0); cester_assert_ptr_equal(result, buf); |
||
| ) |
| for | ( | ) |
| char buf[1000] = { 0 } |
| test_instance |