/* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "ioloop.h"
#include "unlink-directory.h"
#include "test-common.h"
#include "mail-index-private.h"
#include "mail-index-modseq.h"
#include "mail-transaction-log-private.h"
static void test_mail_index_modseq_get_next_log_offset(void)
{
static const struct {
} tests[] = {
{ 0, 0 },
{ 2, 40 },
{ 2, 148 },
{ 2, 164 },
{ 3, 40 },
{ 3, 56 },
{ 3, 72 },
{ 3, 88 },
};
const char *error;
ioloop_time = 1;
test_begin("mail_transaction_log_file_get_modseq_next_offset()");
uid = 1234;
}
}
test_assert_idx(mail_index_modseq_get_next_log_offset(view2, modseq, &log_seq, &log_offset) == (tests[modseq].log_seq != 0), modseq);
test_assert_idx(tests[modseq].log_seq == log_seq && tests[modseq].log_offset == log_offset, modseq);
}
test_end();
}
int main(void)
{
static void (*const test_functions[])(void) = {
};
return test_run(test_functions);
}