aboutsummaryrefslogtreecommitdiff
path: root/src/test/modules/test_binaryheap/sql
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2025-07-17 16:32:10 -0500
committerNathan Bossart <nathan@postgresql.org>2025-07-17 16:32:10 -0500
commitb597ae6cc128b17038d461c5aa426d42f9cc33f9 (patch)
tree6818264c4685f3d8de39c2393b624f2a1829b9f5 /src/test/modules/test_binaryheap/sql
parentdaf9bdc47d11822da8a1269bd73fb23258b24f80 (diff)
downloadpostgresql-b597ae6cc128b17038d461c5aa426d42f9cc33f9.tar.gz
postgresql-b597ae6cc128b17038d461c5aa426d42f9cc33f9.zip
Add a test harness for the binary heap code.
binaryheap is heavily used and already has decent test coverage, but it lacks dedicated tests for its correctness. This commit changes that. Author: Aleksander Alekseev <aleksander@tigerdata.com> Discussion: https://postgr.es/m/CAJ7c6TMwp%2Bmb8MMoi%3DSMVMso2hYecoVu2Pwf2EOkesq0MiSKxw%40mail.gmail.com
Diffstat (limited to 'src/test/modules/test_binaryheap/sql')
-rw-r--r--src/test/modules/test_binaryheap/sql/test_binaryheap.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/modules/test_binaryheap/sql/test_binaryheap.sql b/src/test/modules/test_binaryheap/sql/test_binaryheap.sql
new file mode 100644
index 00000000000..8439545815b
--- /dev/null
+++ b/src/test/modules/test_binaryheap/sql/test_binaryheap.sql
@@ -0,0 +1,8 @@
+CREATE EXTENSION test_binaryheap;
+
+--
+-- These tests don't produce any interesting output. We're checking that
+-- the operations complete without crashing or hanging and that none of their
+-- internal sanity tests fail.
+--
+SELECT test_binaryheap();