#include <criterion/criterion.h>#include "libtest/persist_lib.h"#include "persist-state.h"#include "apphook.h"#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <errno.h>#include <sys/types.h>#include <fcntl.h>
Classes | |
| struct | TestState |
Functions | |
| TestSuite (persist_state,.init=app_startup,.fini=app_shutdown) | |
| Test (persist_state, test_persist_state_open_success_on_invalid_file) | |
| Test (persist_state, test_persist_state_open_fails_on_invalid_file_with_dump) | |
| Test (persist_state, test_persist_state_open_failes_when_file_open_fails) | |
| Test (persist_state, test_persist_state_in_use_handle_is_loaded) | |
| Test (persist_state, test_persist_state_not_in_use_handle_is_not_loaded) | |
| Test (persist_state, test_persist_state_not_in_use_handle_is_loaded_in_dump_mode) | |
| Test (persist_state, test_persist_state_remove_entry) | |
| Test (persist_state, test_persist_state_string_alloc_test) | |
| Test (persist_state, test_persist_state_foreach_entry) | |
| Test (persist_state, test_values) | |
| Test (persist_state, test_persist_state_temp_file_cleanup_on_cancel) | |
| Test (persist_state, test_persist_state_temp_file_cleanup_on_commit_destroy) | |
| void | _write_test_state_value (PersistState *state, PersistEntryHandle handle, guint32 value) |
| void | assert_test_state_value (PersistState *state, PersistEntryHandle handle, guint32 expected_value) |
| Test (persist_state, test_persist_state_move_entry) | |
| void _write_test_state_value | ( | PersistState * | state, |
| PersistEntryHandle | handle, | ||
| guint32 | value | ||
| ) |
| void assert_test_state_value | ( | PersistState * | state, |
| PersistEntryHandle | handle, | ||
| guint32 | expected_value | ||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_foreach_entry | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_in_use_handle_is_loaded | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_move_entry | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_not_in_use_handle_is_loaded_in_dump_mode | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_not_in_use_handle_is_not_loaded | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_open_failes_when_file_open_fails | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_open_fails_on_invalid_file_with_dump | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_open_success_on_invalid_file | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_remove_entry | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_string_alloc_test | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_temp_file_cleanup_on_cancel | |||
| ) |
| Test | ( | persist_state | , |
| test_persist_state_temp_file_cleanup_on_commit_destroy | |||
| ) |
| Test | ( | persist_state | , |
| test_values | |||
| ) |
| TestSuite | ( | persist_state | , |
| . | init = app_startup, |
||
| . | fini = app_shutdown |
||
| ) |