Lines Matching refs:h

97     LHASH_OF(int) *h = lh_int_new(&int_hash, &int_cmp);  in test_int_lhash()
101 if (!TEST_ptr(h)) in test_int_lhash()
106 if (!TEST_ptr_null(lh_int_insert(h, int_tests + i))) { in test_int_lhash()
112 if (!TEST_int_eq((size_t)lh_int_num_items(h), n_int_tests)) in test_int_lhash()
117 if (!TEST_int_eq(*lh_int_retrieve(h, int_tests + i), int_tests[i])) { in test_int_lhash()
122 if (!TEST_ptr_eq(lh_int_retrieve(h, int_tests + i), int_tests + i)) { in test_int_lhash()
127 if (!TEST_ptr_eq(lh_int_retrieve(h, &j), int_tests + 2)) in test_int_lhash()
132 if (!TEST_ptr(p = lh_int_insert(h, &j))) in test_int_lhash()
136 if (!TEST_ptr_eq(lh_int_retrieve(h, int_tests + 1), &j)) in test_int_lhash()
142 lh_int_doall(h, &int_doall); in test_int_lhash()
156 lh_int_doall_short(h, int_doall_arg, int_found); in test_int_lhash()
169 const int b = lh_int_delete(h, &dels[i].data) == NULL; in test_int_lhash()
177 if (!TEST_int_eq(lh_int_error(h), 0)) in test_int_lhash()
182 lh_int_free(h); in test_int_lhash()
343 LHASH_OF(int) *h = lh_int_new(&stress_hash, &int_cmp); in test_stress()
351 if (!TEST_ptr(h)) in test_stress()
364 lh_int_insert(h, p); in test_stress()
368 if (!TEST_int_eq(lh_int_num_items(h), n)) in test_stress()
375 if (!TEST_ptr(p = lh_int_delete(h, &j))) { in test_stress()
393 lh_int_free(h); in test_stress()
415 HT *h; in test_hashtable_stress() local
423 h = ossl_ht_new(&hash_conf); in test_hashtable_stress()
426 if (!TEST_ptr(h)) in test_hashtable_stress()
443 if (!TEST_int_eq(ossl_ht_test_int_insert(h, TO_HT_KEY(&key), in test_hashtable_stress()
451 if (!TEST_int_eq((size_t)ossl_ht_count(h), n)) in test_hashtable_stress()
461 if (!TEST_int_eq((ossl_ht_delete(h, TO_HT_KEY(&key))), 1)) { in test_hashtable_stress()
467 if (!TEST_ptr(p = ossl_ht_test_int_get(h, TO_HT_KEY(&key), &v)) in test_hashtable_stress()
483 ossl_ht_free(h); in test_hashtable_stress()