Lines Matching refs:pq
54 PRIORITY_QUEUE_OF(size_t) *pq = NULL; in test_size_t_priority_queue_int()
82 if (!TEST_ptr(pq = ossl_pqueue_size_t_new(&size_t_compare)) in test_size_t_priority_queue_int()
83 || !TEST_size_t_eq(ossl_pqueue_size_t_num(pq), 0)) in test_size_t_priority_queue_int()
86 if (reserve && !TEST_true(ossl_pqueue_size_t_reserve(pq, count))) in test_size_t_priority_queue_int()
90 if (!TEST_true(ossl_pqueue_size_t_push(pq, values + i, ref + i))) in test_size_t_priority_queue_int()
93 if (!TEST_size_t_eq(*ossl_pqueue_size_t_peek(pq), *sorted) in test_size_t_priority_queue_int()
94 || !TEST_size_t_eq(ossl_pqueue_size_t_num(pq), count)) in test_size_t_priority_queue_int()
101 if (!TEST_ptr_eq(ossl_pqueue_size_t_remove(pq, ref[i]), in test_size_t_priority_queue_int()
110 for (i = 0; ossl_pqueue_size_t_peek(pq) != NULL; i++) in test_size_t_priority_queue_int()
111 if (!TEST_size_t_eq(*ossl_pqueue_size_t_peek(pq), sorted[i]) in test_size_t_priority_queue_int()
112 || !TEST_size_t_eq(*ossl_pqueue_size_t_pop(pq), sorted[i])) in test_size_t_priority_queue_int()
117 n = ossl_pqueue_size_t_num(pq); in test_size_t_priority_queue_int()
118 ossl_pqueue_size_t_pop_free(pq, &free_checker); in test_size_t_priority_queue_int()
119 pq = NULL; in test_size_t_priority_queue_int()
125 ossl_pqueue_size_t_free(pq); in test_size_t_priority_queue_int()
185 PRIORITY_QUEUE_OF(INFO) *pq = ossl_pqueue_INFO_new(cmp); in test_22644()
192 if (!TEST_true(ossl_pqueue_INFO_push(pq, &infos[0], &infos[0].idx)) in test_22644()
194 || !TEST_ptr(ossl_pqueue_INFO_remove(pq, infos[0].idx))) in test_22644()
198 if (!TEST_true(ossl_pqueue_INFO_push(pq, &infos[1], &infos[1].idx)) in test_22644()
200 || !TEST_ptr(ossl_pqueue_INFO_remove(pq, infos[1].idx))) in test_22644()
204 if (!TEST_true(ossl_pqueue_INFO_push(pq, &infos[2], &infos[2].idx)) in test_22644()
209 if (!TEST_true(ossl_pqueue_INFO_push(pq, &infos[3], &infos[3].idx)) in test_22644()
214 if (!TEST_true(ossl_pqueue_INFO_push(pq, &infos[4], &infos[4].idx)) in test_22644()
219 if (!TEST_true(ossl_pqueue_INFO_push(pq, &infos[5], &infos[5].idx)) in test_22644()
224 if (!TEST_true(ossl_pqueue_INFO_push(pq, &infos[6], &infos[6].idx)) in test_22644()
229 if (!TEST_true(ossl_pqueue_INFO_push(pq, &infos[7], &infos[7].idx)) in test_22644()
234 if (!TEST_true(ossl_pqueue_INFO_push(pq, &infos[8], &infos[8].idx)) in test_22644()
238 if (!TEST_ptr(ossl_pqueue_INFO_pop(pq)) in test_22644()
239 || !TEST_ptr(ossl_pqueue_INFO_pop(pq))) /* crash if bug present */ in test_22644()
244 ossl_pqueue_INFO_free(pq); in test_22644()