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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/5668fff3c512a61b7f8a2b9bf04270578cf5665a
Modified Files
--------------
.../test_bitmapset/expected/test_bitmapset.out | 1072 +++++++++++++++++---
.../modules/test_bitmapset/sql/test_bitmapset.sql | 189 +++-
.../modules/test_bitmapset/test_bitmapset--1.0.sql | 4 +
src/test/modules/test_bitmapset/test_bitmapset.c | 55 +-
4 files changed, 1157 insertions(+), 163 deletions(-)