• Home
  • Raw
  • Download

Lines Matching refs:ckh

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