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 "win/main_wrapper.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 (int argc, char *argv[])

Typedef Documentation

◆ _meta_collect_t

typedef struct _meta_collect_t _meta_collect_t

Function Documentation

◆ _collect_meta()

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

Definition at line 121 of file test_tag_selection_metadata.c.

References value.

Referenced by test_metadata_foreach_selected().

◆ 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 158 of file test_tag_selection_metadata.c.

References test_metadata_foreach_selected(), test_selection_lowest_id(), test_tag_agreement(), testdb_setup(), and testdb_teardown().

◆ test_metadata_foreach_selected()

◆ test_selection_lowest_id()

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 33 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(), state, testdb_make_film(), testdb_make_image(), UNKNOWN_IMAGE, and void().

Referenced by main().

◆ test_tag_agreement()