test-message-id.c revision 02c335c23bf5fa225a467c19f2c063fb0dc7b8c3
/* Copyright (c) 2007-2016 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "message-id.h"
#include "test-common.h"
static void test_message_id_get_next(void)
{
const char *input[] = {
"<foo@bar>",
"<foo@bar>,skipped,<foo2@bar2>",
"(c) < (c) foo (c) @ (c) bar (c) > (c)",
"<\"foo 2\"@bar>"
};
const char *output[] = {
"foo@bar", NULL,
"foo@bar", NULL,
"foo 2@bar", NULL
};
const char *msgid, *next_msgid;
unsigned int i, j;
test_begin("message id parser");
for (i = 0, j = 0; i < N_ELEMENTS(input); i++) {
break;
j++;
}
}
test_end();
}
int main(void)
{
static void (*test_functions[])(void) = {
};
return test_run(test_functions);
}