Searched defs:test_cases (Results 1 - 4 of 4) sorted by relevance

/dovecot/src/plugins/var-expand-crypt/
H A Dtest-var-expand-crypt.c31 } test_cases[] = { local
47 for(i=0; i < N_ELEMENTS(test_cases); i++) T_BEGIN {
50 int ret = var_expand(dest, test_cases[i].input, table, &error);
52 if (test_cases[i].expect_ret == -1)
53 i_info("Expected: var_expand(%s): %s", test_cases[i].input, error);
55 i_error("var_expand(%s): %s", test_cases[i].input, error);
57 test_assert_idx(strcmp(str_c(dest), test_cases[i].output)==0, i);
58 test_assert_idx(ret == test_cases[i].expect_ret, i);
/dovecot/src/lib/
H A Dtest-buffer.c211 } test_cases[] = { local
264 for(size_t i = 0; i < N_ELEMENTS(test_cases); i++) {
266 buffer_copy(buf, 0, &test_cases[i].input, 0, (size_t)-1);
267 buffer_truncate_rshift_bits(buf, test_cases[i].bits);
268 test_assert_idx(buffer_cmp(buf, &test_cases[i].output) == TRUE, i);
H A Dtest-unichar.c45 } test_cases[] = { local
97 for(size_t i = 0; i < N_ELEMENTS(test_cases); i++) {
99 if (test_cases[i].valid) {
100 test_assert_idx(uni_utf8_get_char(test_cases[i].input, &chr) > 0, i);
101 test_assert_idx(test_cases[i].expected == chr, i);
103 test_assert_idx(uni_utf8_get_char(test_cases[i].input, &chr) < 1, i);
/dovecot/src/lib-storage/
H A Dtest-mail-storage.c329 } test_cases[] = { variable in typeref:struct:mailbox_verify_test_cases
425 test_mailbox_verify_name_continue(struct mailbox_verify_test_cases *test_cases, argument
432 if ((test_cases[i].ns_sep != '\0' &&
433 (test_cases[i].ns_sep != mail_namespace_get_sep(ns))) ||
434 (test_cases[i].list_sep != '\0' &&
435 test_cases[i].list_sep != mailbox_list_get_hierarchy_sep(ns->list)))
437 test_mailbox_verify_name_one(&test_cases[i], ns, i);
454 test_mailbox_verify_name_continue(test_cases, N_ELEMENTS(test_cases), ctx);
472 test_mailbox_verify_name_continue(test_cases, N_ELEMENT
483 } test_cases[] = { local
513 struct mailbox_verify_test_cases test_cases[] = { local
[all...]

Completed in 2371 milliseconds