Lines Matching refs:h

94     LHASH_OF(int) *h = lh_int_new(&int_hash, &int_cmp);  in test_int_lhash()
98 if (!TEST_ptr(h)) in test_int_lhash()
103 if (!TEST_ptr_null(lh_int_insert(h, int_tests + i))) { in test_int_lhash()
109 if (!TEST_int_eq(lh_int_num_items(h), n_int_tests)) in test_int_lhash()
114 if (!TEST_int_eq(*lh_int_retrieve(h, int_tests + i), int_tests[i])) { in test_int_lhash()
119 if (!TEST_ptr_eq(lh_int_retrieve(h, int_tests + i), int_tests + i)) { in test_int_lhash()
124 if (!TEST_ptr_eq(lh_int_retrieve(h, &j), int_tests + 2)) in test_int_lhash()
129 if (!TEST_ptr(p = lh_int_insert(h, &j))) in test_int_lhash()
133 if (!TEST_ptr_eq(lh_int_retrieve(h, int_tests + 1), &j)) in test_int_lhash()
139 lh_int_doall(h, &int_doall); in test_int_lhash()
153 lh_int_doall_short(h, int_doall_arg, int_found); in test_int_lhash()
166 const int b = lh_int_delete(h, &dels[i].data) == NULL; in test_int_lhash()
174 if (!TEST_int_eq(lh_int_error(h), 0)) in test_int_lhash()
179 lh_int_free(h); in test_int_lhash()
190 LHASH_OF(int) *h = lh_int_new(&stress_hash, &int_cmp); in test_stress()
195 if (!TEST_ptr(h)) in test_stress()
206 lh_int_insert(h, p); in test_stress()
210 if (!TEST_int_eq(lh_int_num_items(h), n)) in test_stress()
214 OPENSSL_LH_stats_bio((OPENSSL_LHASH *)h, bio_err); in test_stress()
216 OPENSSL_LH_node_usage_stats_bio((OPENSSL_LHASH *)h, bio_err); in test_stress()
222 if (!TEST_ptr(p = lh_int_delete(h, &j))) { in test_stress()
234 OPENSSL_LH_stats_bio((OPENSSL_LHASH *)h, bio_err); in test_stress()
236 OPENSSL_LH_node_usage_stats_bio((OPENSSL_LHASH *)h, bio_err); in test_stress()
240 lh_int_free(h); in test_stress()