test-db-dict.c revision 332e3fd09754ad85800a736292a0ef8dfdca4c9e
/* Copyright (c) 2013-2017 Dovecot authors, see the included COPYING file */
#include "test-auth.h"
#include "array.h"
#include "db-dict.h"
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();
}