![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "testdb.h"
Include dependency graph for test_preset_repository.c:Go to the source code of this file.
Variables | |
| static const unsigned char | params_a [] = { 0x01, 0x02, 0x03, 0x04, 0x05 } |
| static const unsigned char | params_b [] = { 0x0a, 0x0b, 0x0c } |
| int main | ( | void | ) |
Definition at line 138 of file test_preset_repository.c.
References L, test_list_all_carries_the_tree_row(), test_list_editable_excludes_shipped(), test_list_for_upgrade_returns_all_versions(), test_set_module_version_leaves_params_alone(), testdb_setup(), and testdb_teardown().
Definition at line 120 of file test_preset_repository.c.
References dt_preset_row_t::autoapply, dt_preset_repository_add_module_preset(), dt_preset_repository_list_all(), dt_preset_row_free(), L, p, params_a, state, void(), and dt_preset_row_t::writeprotect.
Referenced by main().
Definition at line 97 of file test_preset_repository.c.
References dt_preset_identity_free(), dt_preset_repository_add_module_preset(), dt_preset_repository_add_shipped_preset(), dt_preset_repository_list_editable(), L, p, params_a, params_b, state, and void().
Referenced by main().
Definition at line 64 of file test_preset_repository.c.
References dt_module_preset_free(), dt_preset_repository_add_module_preset(), dt_preset_repository_list_for_upgrade(), L, p, params_a, params_b, state, and void().
Referenced by main().
Definition at line 35 of file test_preset_repository.c.
References dt_module_preset_free(), dt_preset_repository_add_module_preset(), dt_preset_repository_get_module_preset(), dt_preset_repository_set_module_version(), dt_preset_repository_update_module_params(), L, p, params_a, params_b, state, and void().
Referenced by main().
|
static |
Contracts of database/preset_repository.h.
The central one is the data-loss trap the migration had to step around: data.presets is UNIQUE on (name, operation, op_version), so an (operation, name) predicate is legitimately multi-row, and the version-only setter must not touch op_params – a setter that wrote both would stamp one preset's blob onto every other version of the same name. dt_preset_repository_set_module_version() exists precisely so dt_preset_repository_update_module_params() is never used for that.
Definition at line 32 of file test_preset_repository.c.
Referenced by test_list_all_carries_the_tree_row(), test_list_editable_excludes_shipped(), test_list_for_upgrade_returns_all_versions(), and test_set_module_version_leaves_params_alone().
|
static |
Definition at line 33 of file test_preset_repository.c.
Referenced by test_list_editable_excludes_shipped(), test_list_for_upgrade_returns_all_versions(), and test_set_module_version_leaves_params_alone().