]> git.ipfire.org Git - thirdparty/postgresql.git/commit
test_bitmapset: Expand more the test coverage
authorMichael Paquier <michael@paquier.xyz>
Mon, 29 Sep 2025 06:17:27 +0000 (15:17 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 29 Sep 2025 06:17:27 +0000 (15:17 +0900)
commit5668fff3c512a61b7f8a2b9bf04270578cf5665a
treecd4172252a923912da5dcb0ee4fbbc49d0068704
parent2cb49c609bd9bf44d319591df7bef1eb107cb375
test_bitmapset: Expand more the test coverage

This commit expands the set of tests added by 00c3d87a5cab, to bring the
coverage of bitmapset.c close to 100% by addressing a lot of corner
cases (most of these relate to word counts and reallocations).

Some of the functions of this module also have their own idea of the
result to return depending on the input values given.  These are
specific to the module, still let's add more coverage for all of them.

Some comments are made more consistent in the tests, while on it.

Author: Greg Burd <greg@burd.me>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/aNR-gsGmLnMaNT5i@paquier.xyz
src/test/modules/test_bitmapset/expected/test_bitmapset.out
src/test/modules/test_bitmapset/sql/test_bitmapset.sql
src/test/modules/test_bitmapset/test_bitmapset--1.0.sql
src/test/modules/test_bitmapset/test_bitmapset.c