Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
test_tag_selection_metadata.c File Reference
#include "testdb.h"
#include "common/image.h"
#include "metadata/tags.h"
+ Include dependency graph for test_tag_selection_metadata.c:

Go to the source code of this file.

Data Structures

struct  _meta_collect_t
 

Typedefs

typedef struct _meta_collect_t _meta_collect_t
 

Functions

static void test_selection_lowest_id (void **state)
 
static void test_tag_agreement (void **state)
 
static void _collect_meta (void *user_data, const int keyid, const char *value, const uint32_t count)
 
static void test_metadata_foreach_selected (void **state)
 
int main (void)
 

Typedef Documentation

◆ _meta_collect_t

Function Documentation

◆ _collect_meta()

static void _collect_meta ( void user_data,
const int  keyid,
const char *  value,
const uint32_t  count 
)
static

Definition at line 117 of file test_tag_selection_metadata.c.

References L, and value.

Referenced by test_metadata_foreach_selected().

◆ main()

◆ test_metadata_foreach_selected()

◆ test_selection_lowest_id()

static void test_selection_lowest_id ( void **  state)
static

Contracts of the selection, tag and metadata repositories that the metadata panels lean on: which image is "first", whether a set of images agrees on its tags, and the one-pass distinct-value walk over the selection.

Definition at line 29 of file test_tag_selection_metadata.c.

References dt_selection_repository_clear(), dt_selection_repository_deselect(), dt_selection_repository_get_all(), dt_selection_repository_get_lowest_id(), dt_selection_repository_select(), L, state, testdb_make_film(), testdb_make_image(), UNKNOWN_IMAGE, and void().

Referenced by main().

◆ test_tag_agreement()