• Home
  • Raw
  • Download

Lines Matching refs:ckh

5 	ckh_t ckh;  in TEST_BEGIN()  local
9 assert_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, in TEST_BEGIN()
11 ckh_delete(tsd, &ckh); in TEST_BEGIN()
13 assert_false(ckh_new(tsd, &ckh, 3, ckh_pointer_hash, in TEST_BEGIN()
15 ckh_delete(tsd, &ckh); in TEST_BEGIN()
21 ckh_t ckh; in TEST_BEGIN() local
33 assert_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, in TEST_BEGIN()
35 assert_zu_eq(ckh_count(&ckh), 0, in TEST_BEGIN()
37 ckh_count(&ckh)); in TEST_BEGIN()
41 ckh_insert(tsd, &ckh, strs[i], strs[i]); in TEST_BEGIN()
42 assert_zu_eq(ckh_count(&ckh), i+1, in TEST_BEGIN()
44 ckh_count(&ckh)); in TEST_BEGIN()
60 assert_false(ckh_search(&ckh, strs[i], kp, vp), in TEST_BEGIN()
70 assert_true(ckh_search(&ckh, missing, NULL, NULL), in TEST_BEGIN()
86 assert_false(ckh_remove(tsd, &ckh, strs[i], kp, vp), in TEST_BEGIN()
95 assert_zu_eq(ckh_count(&ckh), in TEST_BEGIN()
99 ckh_count(&ckh)); in TEST_BEGIN()
102 ckh_delete(tsd, &ckh); in TEST_BEGIN()
109 ckh_t ckh; in TEST_BEGIN() local
116 assert_false(ckh_new(tsd, &ckh, 2, ckh_pointer_hash, in TEST_BEGIN()
128 assert_false(ckh_insert(tsd, &ckh, p[j], p[j]), in TEST_BEGIN()
130 assert_false(ckh_search(&ckh, p[j], &q, &r), in TEST_BEGIN()
136 assert_zu_eq(ckh_count(&ckh), NITEMS, in TEST_BEGIN()
138 NITEMS, ckh_count(&ckh)); in TEST_BEGIN()
141 assert_false(ckh_search(&ckh, p[j], NULL, NULL), in TEST_BEGIN()
143 assert_false(ckh_remove(tsd, &ckh, p[j], &q, &r), in TEST_BEGIN()
147 assert_true(ckh_search(&ckh, p[j], NULL, NULL), in TEST_BEGIN()
149 assert_true(ckh_remove(tsd, &ckh, p[j], &q, &r), in TEST_BEGIN()
159 for (tabind = 0; !ckh_iter(&ckh, &tabind, &q, &r);) { in TEST_BEGIN()
184 assert_false(ckh_search(&ckh, p[i], NULL, NULL), in TEST_BEGIN()
186 assert_false(ckh_remove(tsd, &ckh, p[i], &q, &r), in TEST_BEGIN()
190 assert_true(ckh_search(&ckh, p[i], NULL, NULL), in TEST_BEGIN()
192 assert_true(ckh_remove(tsd, &ckh, p[i], &q, &r), in TEST_BEGIN()
197 assert_zu_eq(ckh_count(&ckh), 0, in TEST_BEGIN()
199 ZU(0), ckh_count(&ckh)); in TEST_BEGIN()
200 ckh_delete(tsd, &ckh); in TEST_BEGIN()