Add a test harness for the binary heap code.
Nathan Bossart <nathan@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/test/modules/Makefile | modified | +1 −0 |
| src/test/modules/meson.build | modified | +1 −0 |
| src/test/modules/test_binaryheap/expected/test_binaryheap.out | added | +12 −0 |
| src/test/modules/test_binaryheap/.gitignore | added | +4 −0 |
| src/test/modules/test_binaryheap/Makefile | added | +24 −0 |
| src/test/modules/test_binaryheap/meson.build | added | +33 −0 |
| src/test/modules/test_binaryheap/sql/test_binaryheap.sql | added | +8 −0 |
| src/test/modules/test_binaryheap/test_binaryheap--1.0.sql | added | +7 −0 |
| src/test/modules/test_binaryheap/test_binaryheap.c | added | +275 −0 |
| src/test/modules/test_binaryheap/test_binaryheap.control | added | +5 −0 |
Discussion
- [PATCH] Add tests for binaryheap.c 6 messages · 2025-06-26 → 2025-07-17