summaryrefslogtreecommitdiff
path: root/t/unit-tests/t-hashmap.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-08 16:06:24 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-08 10:14:42 -0700
commit9a833ca35dfcefa0e431da5f7dcdc2e58f38469d (patch)
tree69ef670e9291a5c5e1e437e3ed4e20233be1d4be /t/unit-tests/t-hashmap.c
parented7d2f4770659be207c0d512bceb337aa18c5527 (diff)
reftable/stack: extract function to setup stack with N tables
We're about to add two tests, and both of them will want to initialize the reftable stack with a set of N tables. Introduce a new function that handles this and refactor existing tests that use such a setup to use it. Note that this changes the exact records contained in the preexisting tests. This is fine though as we only care about the shape of the stack here, not the shape of each table. Furthermore, with this change we now start to disable auto compaction when writing the tables, as otherwise we might not end up with the expected amount of new tables added. This also slightly changes the behaviour of these tests, but the properties we care for remain intact. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/unit-tests/t-hashmap.c')
0 files changed, 0 insertions, 0 deletions