Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
test_history_snapshot.c File Reference
#include "develop/develop.h"
#include "develop/dev_history.h"
#include "develop/pixelpipe_hb.h"
#include "system/atomic.h"
#include "system/dtpthread.h"
#include <glib.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdlib.h>
#include <setjmp.h>
#include <stdint.h>
#include <cmocka.h>
+ Include dependency graph for test_history_snapshot.c:

Go to the source code of this file.

Data Structures

struct  _fixture_t
 

Typedefs

typedef struct _fixture_t _fixture_t
 

Functions

static int _setup (void **state)
 
static int _teardown (void **state)
 
static int _refs (const dt_dev_history_item_t *item)
 
static dt_dev_history_item_t_append (dt_develop_t *dev, const uint64_t hash)
 
static void _a_snapshot_references_every_item_and_releases_them (void **state)
 
static void _history_end_is_clamped_to_the_list_at_snapshot_time (void **state)
 
static void _cow_touch_leaves_an_exclusively_owned_item_alone (void **state)
 
static void _cow_touch_clones_an_item_a_snapshot_is_holding (void **state)
 
static void _cow_touch_repoints_the_pipe_marker_and_balances_every_reference (void **state)
 
static void _cow_touch_ignores_a_marker_naming_a_different_item (void **state)
 
int main (void)
 

Typedef Documentation

◆ _fixture_t

typedef struct _fixture_t _fixture_t

Function Documentation

◆ _a_snapshot_references_every_item_and_releases_them()

◆ _append()

◆ _cow_touch_clones_an_item_a_snapshot_is_holding()

◆ _cow_touch_ignores_a_marker_naming_a_different_item()

◆ _cow_touch_leaves_an_exclusively_owned_item_alone()

static void _cow_touch_leaves_an_exclusively_owned_item_alone ( void **  state)
static

Definition at line 144 of file test_history_snapshot.c.

References _append(), _refs(), dt_dev_history_cow_touch(), f, and state.

Referenced by main().

◆ _cow_touch_repoints_the_pipe_marker_and_balances_every_reference()

◆ _history_end_is_clamped_to_the_list_at_snapshot_time()

static void _history_end_is_clamped_to_the_list_at_snapshot_time ( void **  state)
static

◆ _refs()

◆ _setup()

static int _setup ( void **  state)
static

Definition at line 55 of file test_history_snapshot.c.

References dt_pthread_rwlock_init(), f, and state.

Referenced by main().

◆ _teardown()

static int _teardown ( void **  state)
static

◆ main()