/* Copyright (c) 2016-2018 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "istream.h"
#include "istream-sized.h"
static const struct {
const char *input;
int stream_errno;
} tests[] = {
{ "", 0, 0 },
{ "a", 1, 0 },
{ "ab", 0, EINVAL },
};
static void
{
const unsigned char *data;
int ret = 0;
for (i = 1; i < sized_input_len; i++) {
break;
test_assert(ret == 0);
}
if (ret == 0) {
}
if (size > 0)
}
{
unsigned int i, j;
int expected_errno;
if (exact)
else
}
if (j <= sizeof(test_data))
else
if (i > sizeof(test_data))
else
expected_errno = 0;
}
}
void test_istream_sized(void)
{
unsigned int i;
for (i = 0; i < N_ELEMENTS(tests); i++) {
test_end();
}
test_begin("istream sized");
test_end();
test_begin("istream sized min");
test_end();
}