33 memcpy(items, key_values,
sizeof(key_values));
34 *state = (
void*)items;
52 for (i = 0; i <
sizeof(
key_values) /
sizeof(key_values[0]); i++) {
64 for (i = 1; i <
sizeof(
key_values) /
sizeof(key_values[0]); i++) {
static void test_find_item_by_value(void **state)
void set_key_values(KeyValue *const new_key_values, const unsigned int new_number_of_key_values)
static KeyValue key_values[]
#define assert_string_equal(a, b)
static int create_key_values(void **state)
KeyValue * find_item_by_value(const char *const value)
void sort_items_by_key(void)
#define cmocka_unit_test_setup_teardown(f, setup, teardown)
Initialize an array of CMUnitTest structures with a setup function for a test and a teardown function...
static void test_sort_items_by_key(void **state)
#define cmocka_run_group_tests(group_tests, group_setup, group_teardown)
#define test_malloc(size)
static int destroy_key_values(void **state)
#define assert_int_equal(a, b)
Container for unidirectional cipher and HMAC key material.