Lines Matching defs:ckh
6 ckh_t ckh;
10 assert_false(ckh_new(tsd, &ckh, 2, ckh_string_hash,
12 ckh_delete(tsd, &ckh);
14 assert_false(ckh_new(tsd, &ckh, 3, ckh_pointer_hash,
16 ckh_delete(tsd, &ckh);
23 ckh_t ckh;
35 assert_false(ckh_new(tsd, &ckh, 2, ckh_string_hash,
37 assert_zu_eq(ckh_count(&ckh), 0,
39 ckh_count(&ckh));
43 ckh_insert(tsd, &ckh, strs[i], strs[i]);
44 assert_zu_eq(ckh_count(&ckh), i+1,
46 ckh_count(&ckh));
62 assert_false(ckh_search(&ckh, strs[i], kp, vp),
72 assert_true(ckh_search(&ckh, missing, NULL, NULL),
88 assert_false(ckh_remove(tsd, &ckh, strs[i], kp, vp),
97 assert_zu_eq(ckh_count(&ckh),
101 ckh_count(&ckh));
104 ckh_delete(tsd, &ckh);
112 ckh_t ckh;
119 assert_false(ckh_new(tsd, &ckh, 2, ckh_pointer_hash,
131 assert_false(ckh_insert(tsd, &ckh, p[j], p[j]),
133 assert_false(ckh_search(&ckh, p[j], &q, &r),
139 assert_zu_eq(ckh_count(&ckh), NITEMS,
141 NITEMS, ckh_count(&ckh));
144 assert_false(ckh_search(&ckh, p[j], NULL, NULL),
146 assert_false(ckh_remove(tsd, &ckh, p[j], &q, &r),
150 assert_true(ckh_search(&ckh, p[j], NULL, NULL),
152 assert_true(ckh_remove(tsd, &ckh, p[j], &q, &r),
162 for (tabind = 0; !ckh_iter(&ckh, &tabind, &q, &r);) {
185 assert_false(ckh_search(&ckh, p[i], NULL, NULL),
187 assert_false(ckh_remove(tsd, &ckh, p[i], &q, &r),
191 assert_true(ckh_search(&ckh, p[i], NULL, NULL),
193 assert_true(ckh_remove(tsd, &ckh, p[i], &q, &r),
198 assert_zu_eq(ckh_count(&ckh), 0,
200 ZU(0), ckh_count(&ckh));
201 ckh_delete(tsd, &ckh);