Lines Matching refs:ht
29 #include <isc/ht.h>
39 #include "ht.c"
44 isc_ht_t *ht = NULL;
48 isc_ht_init(&ht, mctx, init_bits, ISC_HT_CASE_SENSITIVE);
49 assert_non_null(ht);
59 result = isc_ht_add(ht, key, 16, (void *)i);
68 result = isc_ht_find(ht, key, 16, &f);
77 result = isc_ht_add(ht, key, 16, (void *)i);
89 result = isc_ht_add(ht, (const unsigned char *)key, strlen(key),
102 result = isc_ht_find(ht, key, 16, &f);
112 result = isc_ht_find(ht, (const unsigned char *)key,
123 result = isc_ht_delete(ht, key, 16);
125 result = isc_ht_find(ht, key, 16, &f);
137 result = isc_ht_add(ht, key, 16, (void *)i);
146 result = isc_ht_delete(ht, (const unsigned char *)key,
149 result = isc_ht_find(ht, (const unsigned char *)key,
163 result = isc_ht_find(ht, key, 16, &f);
173 result = isc_ht_find(ht, key, 16, &f);
178 isc_ht_destroy(&ht);
179 assert_null(ht);
184 isc_ht_t *ht = NULL;
193 isc_ht_init(&ht, mctx, HT_MIN_BITS, ISC_HT_CASE_SENSITIVE);
194 assert_non_null(ht);
202 result = isc_ht_add(ht, key, 16, (void *)i);
207 assert_true(rehashing_in_progress(ht));
210 isc_ht_iter_create(ht, &iter);
289 assert_true(rehashing_in_progress(ht));
294 isc_ht_destroy(&ht);
295 assert_null(ht);
336 isc_ht_t *ht = NULL;
345 isc_ht_init(&ht, mctx, 8, ISC_HT_CASE_SENSITIVE);
346 assert_non_null(ht);
348 result = isc_ht_add(ht, lower, 16, (void *)lower);
351 result = isc_ht_add(ht, same, 16, (void *)same);
354 result = isc_ht_add(ht, upper, 16, (void *)upper);
357 result = isc_ht_find(ht, mixed, 16, &f);
361 isc_ht_destroy(&ht);
362 assert_null(ht);
364 isc_ht_init(&ht, mctx, 8, ISC_HT_CASE_INSENSITIVE);
365 assert_non_null(ht);
367 result = isc_ht_add(ht, lower, 16, (void *)lower);
370 result = isc_ht_add(ht, same, 16, (void *)same);
373 result = isc_ht_add(ht, upper, 16, (void *)upper);
376 result = isc_ht_find(ht, mixed, 16, &f);
380 isc_ht_destroy(&ht);
381 assert_null(ht);