OpenVPN
|
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <string.h>
#include <cmocka.h>
#include "key_value.h"
Go to the source code of this file.
Functions | |
static int | create_key_values (void **state) |
static int | destroy_key_values (void **state) |
static void | test_find_item_by_value (void **state) |
static void | test_sort_items_by_key (void **state) |
int | main (void) |
Variables | |
static KeyValue | key_values [] |
|
static |
Definition at line 31 of file key_value_test.c.
References set_key_values(), and test_malloc.
Referenced by main().
|
static |
Definition at line 40 of file key_value_test.c.
References set_key_values(), and test_free.
Referenced by main().
int main | ( | void | ) |
Definition at line 69 of file key_value_test.c.
References cmocka_run_group_tests, cmocka_unit_test_setup_teardown, create_key_values(), destroy_key_values(), test_find_item_by_value(), and test_sort_items_by_key().
|
static |
Definition at line 47 of file key_value_test.c.
References assert_int_equal, assert_string_equal, assert_true, find_item_by_value(), KeyValue::key, key_values, and KeyValue::value.
Referenced by main().
|
static |
Definition at line 60 of file key_value_test.c.
References assert_true, key_values, and sort_items_by_key().
Referenced by main().
|
static |
Definition at line 24 of file key_value_test.c.
Referenced by test_find_item_by_value(), and test_sort_items_by_key().