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
This commit is contained in:
Nathan Bossart
2025-07-17 16:32:10 -05:00
parent daf9bdc47d
commit b597ae6cc1
10 changed files with 370 additions and 0 deletions

View File

@ -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();