test-db-dict.c revision 02c335c23bf5fa225a467c19f2c063fb0dc7b8c3
/* Copyright (c) 2013-2016 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "db-dict.h"
#include "test-common.h"
static void test_db_dict_parse_cache_key(void)
{
struct db_dict_key keys[] = {
};
struct db_dict_field fields[] = {
{ "name1", "hello %{dict:key0} %l and %{dict:key1}" },
{ "name2", "%{dict:key2} also %{extra} plus" }
};
const struct db_dict_key *objects[] = {
};
test_begin("db dict parse cache key");
"\t%d and %n\t%l\t%{foo}%r%{bar}\t%{test1}/path\t%{extra}\tpath2/%{test2}\t%{plop}") == 0);
test_end();
}
int main(void)
{
static void (*test_functions[])(void) = {
};
return test_run(test_functions);
}