#include <criterion/criterion.h>#include "logmsg/nvtable.h"#include "apphook.h"#include "logmsg/logmsg.h"#include <stdio.h>#include <string.h>#include <stdlib.h>
Macros | |
| #define | STATIC_VALUES 16 |
| #define | STATIC_HANDLE 1 |
| #define | STATIC_NAME "VAL1" |
| #define | DYN_HANDLE 17 |
| #define | DYN_NAME "VAL17" |
| #define | TEST_NVHANDLE_MAX_VALUE 10 |
Functions | |
| void | assert_nvtable (NVTable *tab, NVHandle handle, gchar *expected_value, gssize expected_length) |
| TestSuite (nvtable,.init=app_startup,.fini=app_shutdown) | |
| Test (nvtable, test_nv_registry) | |
| Test (nvtable, test_nvtable_direct) | |
| Test (nvtable, test_nvtable_indirect) | |
| Test (nvtable, test_nvtable_others) | |
| Test (nvtable, test_nvtable_lookup) | |
| Test (nvtable, test_nvtable_clone_grows_the_cloned_structure) | |
| Test (nvtable, test_nvtable_clone_cannot_grow_nvtable_larger_than_nvtable_max_bytes) | |
| Test (nvtable, test_nvtable_realloc_doubles_nvtable_size) | |
| Test (nvtable, test_nvtable_realloc_sets_size_to_nv_table_max_bytes_at_most) | |
| Test (nvtable, test_nvtable_realloc_fails_if_size_is_at_maximum) | |
| Test (nvtable, test_nvtable_realloc_leaves_original_intact_if_there_are_multiple_references) | |
| Test (nvtable, test_nvtable_unset_values) | |
| Test (nvtable, test_nvtable_unset_copies_indirect_references) | |
| Test (nvtable, test_nvtable_indirect_references_unset_and_then_set_again_are_present) | |
| Test (nvtable, test_nvtable_compact_copies_name_value_pairs) | |
| Test (nvtable, test_nvtable_compact_skips_unset_values) | |
| #define DYN_HANDLE 17 |
| #define DYN_NAME "VAL17" |
| #define STATIC_HANDLE 1 |
| #define STATIC_NAME "VAL1" |
| #define STATIC_VALUES 16 |
| #define TEST_NVHANDLE_MAX_VALUE 10 |
| void assert_nvtable | ( | NVTable * | tab, |
| NVHandle | handle, | ||
| gchar * | expected_value, | ||
| gssize | expected_length | ||
| ) |
| Test | ( | nvtable | , |
| test_nv_registry | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_clone_cannot_grow_nvtable_larger_than_nvtable_max_bytes | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_clone_grows_the_cloned_structure | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_compact_copies_name_value_pairs | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_compact_skips_unset_values | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_direct | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_indirect | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_indirect_references_unset_and_then_set_again_are_present | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_lookup | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_others | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_realloc_doubles_nvtable_size | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_realloc_fails_if_size_is_at_maximum | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_realloc_leaves_original_intact_if_there_are_multiple_references | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_realloc_sets_size_to_nv_table_max_bytes_at_most | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_unset_copies_indirect_references | |||
| ) |
| Test | ( | nvtable | , |
| test_nvtable_unset_values | |||
| ) |
| TestSuite | ( | nvtable | , |
| . | init = app_startup, |
||
| . | fini = app_shutdown |
||
| ) |