16 #define SIMPLE_DATA "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" 21 simple_compress(
void **state)
23 char *
result = calloc(1024,
sizeof(
char));
31 max_too_small(
void **state)
33 char *
result = calloc(1024,
sizeof(
char));
40 calloc_fails(
void **state) {
41 char *
result = calloc(1024,
sizeof(
char));
47 expect_value(
__wrap_calloc, nmemb, (
size_t) ((40 * 1.01) + 601));
56 cmocka_unit_test(simple_compress),
57 cmocka_unit_test(max_too_small),
58 cmocka_unit_test(calloc_fails))
const char * SIMPLE_COMPRESSED
PCMK__UNIT_TEST(NULL, NULL, cmocka_unit_test(bad_input), cmocka_unit_test(not_found), cmocka_unit_test(find_attrB), cmocka_unit_test(find_attrA_matching))
#define pcmk__assert_asserts(stmt)
int pcmk__compress(const char *data, unsigned int length, unsigned int max, char **result, unsigned int *result_len)
pcmk__action_result_t result
void * __wrap_calloc(size_t nmemb, size_t size)