pgsql: Add a test harness for the binary heap code.

From: Nathan Bossart <nathan(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add a test harness for the binary heap code.
Date: 2025-07-17 21:33:34
Message-ID: E1ucWEP-006opE-35@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)tigerdata(dot)com>
Discussion: https://postgr.es/m/CAJ7c6TMwp%2Bmb8MMoi%3DSMVMso2hYecoVu2Pwf2EOkesq0MiSKxw%40mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b597ae6cc128b17038d461c5aa426d42f9cc33f9

Modified Files
--------------
src/test/modules/Makefile | 1 +
src/test/modules/meson.build | 1 +
src/test/modules/test_binaryheap/.gitignore | 4 +
src/test/modules/test_binaryheap/Makefile | 24 ++
.../test_binaryheap/expected/test_binaryheap.out | 12 +
src/test/modules/test_binaryheap/meson.build | 33 +++
.../test_binaryheap/sql/test_binaryheap.sql | 8 +
.../test_binaryheap/test_binaryheap--1.0.sql | 7 +
src/test/modules/test_binaryheap/test_binaryheap.c | 275 +++++++++++++++++++++
.../test_binaryheap/test_binaryheap.control | 5 +
10 files changed, 370 insertions(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2025-07-18 07:52:45 pgsql: Support for deparsing of ArrayCoerceExpr node in contrib/postgre
Previous Message Álvaro Herrera 2025-07-17 16:57:21 Re: pgsql: Remove assertion from PortalRunMulti