Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
test_history_repository.c File Reference
#include "testdb.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 (void)
 

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

Function Documentation

◆ _collect_active()

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

Definition at line 113 of file test_history_repository.c.

References L, and void().

Referenced by test_foreach_active_module().

◆ main()

◆ test_find_version_for_params()

static 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 26 of file test_history_repository.c.

Referenced by test_find_version_for_params(), test_foreach_active_module(), and test_history_item_cycle().

◆ params_b

const unsigned char params_b[] = { 0xca, 0xfe, 0xba, 0xbe }
static