/* Copyright (c) 2009-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "test-common.h"
#include "mail-index-modseq.h"
#include "mail-storage-private.h"
static unsigned int expunge_idx;
static unsigned int nonexternal_idx;
{
}
{
*first_seq_r = first_uid;
*last_seq_r = last_uid;
return TRUE;
}
{
return TRUE;
}
struct mail_transaction_log_view *
if (min_file_seq < 99)
return 0;
return 1;
}
{
*file_seq_r = 100;
}
const struct mail_transaction_header **hdr_r,
const void **data_r)
{
return 0;
if (mail_guids[expunge_idx][0] == 0) {
} else {
}
if (expunge_idx != nonexternal_idx)
expunge_idx++;
return 1;
}
{
}
{
expunge_idx = 0;
}
static void test_mailbox_get_expunges(void)
{
unsigned int count;
test_begin("mailbox get expunges");
nonexternal_idx = 1;
&expunges));
test_end();
}
int main(void)
{
static void (*const test_functions[])(void) = {
};
unsigned int i, j;
for (i = 0; i < N_ELEMENTS(mail_guids); i++) {
for (j = 0; j < GUID_128_SIZE; j++)
mail_guids[i][j] = j + i + 1;
}
return test_run(test_functions);
}