Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
test_history_repository.c File Reference
#include "testdb.h"
#include "win/main_wrapper.h"
Include dependency graph for test_history_repository.c:

Go to the source code of this file.

Data Structures

struct  _active_collect_t

Typedefs

typedef struct _active_collect_t _active_collect_t

Functions

static void test_module_order_absent_vs_zero (void **state)
static void test_history_item_cycle (void **state)
static void test_find_version_for_params (void **state)
static void _collect_active (void *user_data, const int num, const char *operation, const char *multi_name)
static void test_foreach_active_module (void **state)
int main (int argc, char *argv[])

Variables

static const unsigned char params_a [] = { 0xde, 0xad, 0xbe, 0xef, 0x01 }
static const unsigned char params_b [] = { 0xca, 0xfe, 0xba, 0xbe }
static const unsigned char blend_a [] = { 0x42, 0x42 }

Typedef Documentation

◆ _active_collect_t

typedef struct _active_collect_t _active_collect_t

Function Documentation

◆ _collect_active()

void _collect_active ( void * user_data,
const int num,
const char * operation,
const char * multi_name )
static

Definition at line 117 of file test_history_repository.c.

References void().

Referenced by test_foreach_active_module().

◆ main()

int main ( int argc,
char * argv[] )
Todo
: test if file with replaced ext exists
Todo
: add a callback to set the bpp without going through the config
Todo
: have a parameter in command line to get the export presets

Definition at line 152 of file test_history_repository.c.

References test_find_version_for_params(), test_foreach_active_module(), test_history_item_cycle(), test_module_order_absent_vs_zero(), testdb_setup(), and testdb_teardown().

◆ test_find_version_for_params()

void test_find_version_for_params ( void ** state)
static

◆ test_foreach_active_module()

◆ test_history_item_cycle()

◆ test_module_order_absent_vs_zero()

Variable Documentation

◆ blend_a

const unsigned char blend_a[] = { 0x42, 0x42 }
static

◆ params_a

const unsigned char params_a[] = { 0xde, 0xad, 0xbe, 0xef, 0x01 }
static

Contracts of database/history_repository.h: the main.history item cycle, the main.module_order row (whose ABSENCE is a meaningful state – "nobody chose"), and the blob-identity version probe the startup preset upgrade relies on.

Definition at line 30 of file test_history_repository.c.

Referenced by test_find_version_for_params(), test_foreach_active_module(), test_history_item_cycle(), 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().

◆ params_b