Go to the documentation of this file.
27 #elif defined(_MSC_VER)
83 assert_true(data->
pis.
id == 1);
95 assert(data->
pis.
id == 1);
109 assert_true(data->
pis.
id == 1);
122 assert(data->
pis.
id == 1);
153 assert(data->
pis.
id == 1);
162 const struct CMUnitTest tests[] = {
183 return cmocka_run_group_tests_name(
"packet_id tests", tests, NULL, NULL);
static void test_packet_id_write_short_prepend(void **state)
static void test_packet_id_write_short(void **state)
int capacity
Size in bytes of memory allocated by malloc().
static void test_packet_id_write_long(void **state)
static int test_packet_id_write_teardown(void **state)
static void test_packet_id_write_long_wrap(void **state)
static void test_packet_id_write_long_prepend(void **state)
Wrapper structure for dynamically allocated memory.
int offset
Offset in bytes of the actual content within the allocated memory.
bool packet_id_write(struct packet_id_send *p, struct buffer *buf, bool long_form, bool prepend)
Write a packet ID to buf, and update the packet ID state.
static void test_packet_id_write_short_wrap(void **state)
static int test_packet_id_write_setup(void **state)
struct packet_id_send pis
struct test_packet_id_write_data::@17 test_buf_data
uint8_t * data
Pointer to the allocated memory.