test-seq-range-array.c revision e34d170f8f0e084bd94bfbc1a7085ece67e508df
/* Copyright (c) 2007-2012 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "array.h"
#include "seq-range-array.h"
#include <stdlib.h>
static void test_seq_range_array_add_merge(void)
{
test_begin("seq_range_array_add() merging");
test_end();
}
static void test_seq_range_array_random(void)
{
#define SEQ_RANGE_TEST_BUFSIZE 20
#define SEQ_RANGE_TEST_COUNT 10000
unsigned char shadowbuf[SEQ_RANGE_TEST_BUFSIZE];
int test = -1;
for (i = 0; i < SEQ_RANGE_TEST_COUNT; i++) {
switch (test) {
case 0:
break;
case 1:
break;
case 2:
break;
case 3:
ret2++;
}
}
break;
}
break;
goto fail;
goto fail;
}
goto fail;
}
}
goto fail;
}
}
fail:
if (i == SEQ_RANGE_TEST_COUNT)
else {
}
}
static void test_seq_range_array_invert(void)
{
static const unsigned int input[] = {
1, 2, 3, 4, 5, -1U,
2, 3, 4, -1U,
1, 2, 4, 5, -1U,
1, 3, 5, -1U,
1, -1U,
5, -1U,
-1U
};
bool old_exists, success;
start = i;
for (; input[i] != -1U; i++) {
for (j = start; j < i; j++) {
}
}
break;
}
}
success);
array_free(&range);
}
}
{
unsigned int i;
for (i = 0; i < 8; i++) {
if ((byte & (1 << i)) != 0)
}
}
static void test_seq_range_array_have_common(void)
{
unsigned int i, j;
for (i = 0; i < 256; i++) {
test_seq_range_create(&arr1, i);
for (j = 0; j < 256; j++) {
test_seq_range_create(&arr2, j);
ret2 = (i & j) != 0;
}
}
}
void test_seq_range_array(void)
{
}