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

Go to the source code of this file.

Macros

#define TEST_FLAG   2048
 

Functions

static void test_flag_among_multi_image (void **state)
 
static void test_full_paths (void **state)
 
static void test_id_range (void **state)
 
static void test_write_timestamp_is_64bit (void **state)
 
static void test_group_member_rows (void **state)
 
static void test_count_distinct_fields (void **state)
 
int main (void)
 

Macro Definition Documentation

◆ TEST_FLAG

#define TEST_FLAG   2048

Contracts of database/image_repository.h that the migration promised to keep.

The first test is a regression test for a real bug: the callers this repository absorbed used to bind a comma-joined id string to a single IN (?) parameter, which SQLite reads as ONE value – it matched a lone id and matched NOTHING for two or more. The repository builds the set into the statement as integers; these tests hold it there.

Definition at line 31 of file test_image_repository.c.

Function Documentation

◆ main()

◆ test_count_distinct_fields()

◆ test_flag_among_multi_image()

static void test_flag_among_multi_image ( void **  state)
static

◆ test_full_paths()

static void test_full_paths ( void **  state)
static

◆ test_group_member_rows()

◆ test_id_range()

static void test_id_range ( void **  state)
static

◆ test_write_timestamp_is_64bit()

static void test_write_timestamp_is_64bit ( void **  state)
static