#include "postgres.h"
#include "common/int.h"
#include "common/pg_prng.h"
#include "fmgr.h"
#include "lib/binaryheap.h"
Go to the source code of this file.
Definition at line 36 of file test_binaryheap.c.
References binaryheap_get_node, binaryheap_size, DatumGetInt32(), i, and Max.
Referenced by test_basic().
Definition at line 50 of file test_binaryheap.c.
References i, j, palloc(), pg_global_prng_state, and pg_prng_uint64_range().
Referenced by test_basic(), test_build(), and test_remove_node().
Definition at line 27 of file test_binaryheap.c.
References a, b, DatumGetInt32(), and pg_cmp_s32().
Referenced by test_basic(), test_build(), test_duplicates(), test_remove_node(), test_replace_first(), and test_reset().
Definition at line 102 of file test_binaryheap.c.
References binaryheap_add(), binaryheap_allocate(), binaryheap_empty, binaryheap_first(), binaryheap_remove_first(), binaryheap_size, DatumGetInt32(), elog, ERROR, get_max_from_heap(), get_permutation(), i, Int32GetDatum(), int_cmp(), and verify_heap_property().
Referenced by test_binaryheap().
Definition at line 258 of file test_binaryheap.c.
References i, PG_RETURN_VOID, test_basic(), test_build(), test_duplicates(), test_remove_node(), test_replace_first(), and test_reset().
Definition at line 144 of file test_binaryheap.c.
References binaryheap_add_unordered(), binaryheap_allocate(), binaryheap_build(), binaryheap_size, elog, ERROR, get_permutation(), i, Int32GetDatum(), int_cmp(), and verify_heap_property().
Referenced by test_binaryheap().
Definition at line 220 of file test_binaryheap.c.
References binaryheap_add(), binaryheap_allocate(), binaryheap_remove_first(), DatumGetInt32(), elog, ERROR, i, Int32GetDatum(), int_cmp(), pg_global_prng_state, and pg_prng_uint64_range().
Referenced by test_binaryheap().
Definition at line 163 of file test_binaryheap.c.
References binaryheap_add(), binaryheap_allocate(), binaryheap_remove_node(), binaryheap_size, elog, ERROR, get_permutation(), i, idx(), Int32GetDatum(), int_cmp(), pg_global_prng_state, pg_prng_uint64_range(), and verify_heap_property().
Referenced by test_binaryheap().
Definition at line 190 of file test_binaryheap.c.
References binaryheap_add(), binaryheap_allocate(), binaryheap_replace_first(), i, Int32GetDatum(), int_cmp(), and verify_heap_property().
Referenced by test_binaryheap().
Definition at line 239 of file test_binaryheap.c.
References binaryheap_add(), binaryheap_allocate(), binaryheap_empty, binaryheap_reset(), elog, ERROR, i, Int32GetDatum(), and int_cmp().
Referenced by test_binaryheap().
Definition at line 80 of file test_binaryheap.c.
References binaryheap_get_node, binaryheap_size, DatumGetInt32(), elog, ERROR, and i.
Referenced by test_basic(), test_build(), test_remove_node(), and test_replace_first().
Definition at line 21 of file test_binaryheap.c.