test-hash.c revision 02c335c23bf5fa225a467c19f2c063fb0dc7b8c3
/* Copyright (c) 2014-2016 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "hash.h"
{
#define KEYMAX 100000
HASH_TABLE(void *, void *) hash;
unsigned int *keys;
for (i = 0; i < KEYMAX; i++) {
if (rand() % 5 > 0) {
POINTER_CAST(1));
}
} else if (keyidx > 0) {
keyidx--;
}
}
for (i = 0; i < keyidx; i++)
}
void test_hash(void)
{
pool_unref(&pool);
}