git/reftable
Chandra Pratap ec9c0704fc t: move reftable/tree_test.c to the unit testing framework
reftable/tree_test.c exercises the functions defined in
reftable/tree.{c, h}. Migrate reftable/tree_test.c to the unit
testing framework. Migration involves refactoring the tests to use
the unit testing framework instead of reftable's test framework and
renaming the tests to align with unit-tests' standards.

Also add a comment to help understand the test routine.

Note that this commit mostly moves the test from reftable/ to
t/unit-tests/ and most of the refactoring is performed by the
trailing commits.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-08-04 09:50:26 -07:00
..
LICENSE
basics.c reftable/block: fix error handling when searching restart points 2024-04-03 09:16:50 -07:00
basics.h reftable/block: fix error handling when searching restart points 2024-04-03 09:16:50 -07:00
basics_test.c reftable/basics: improve `binsearch()` test 2024-04-03 09:16:49 -07:00
block.c reftable/block: use `size_t` to track restart point index 2024-05-13 17:04:16 -07:00
block.h reftable: use `uint16_t` to track restart interval 2024-05-13 17:02:38 -07:00
block_test.c reftable/block: merge `block_iter_seek()` and `block_reader_seek()` 2024-04-15 10:36:09 -07:00
blocksource.c
blocksource.h
constants.h reftable: make the compaction factor configurable 2024-05-13 17:02:39 -07:00
dump.c reftable/dump: support dumping a table's block structure 2024-05-13 17:02:38 -07:00
error.c Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
generic.c reftable/generic: adapt interface to allow reuse of iterators 2024-05-13 17:04:18 -07:00
generic.h reftable/generic: move seeking of records into the iterator 2024-05-13 17:04:18 -07:00
iter.c reftable/generic: adapt interface to allow reuse of iterators 2024-05-13 17:04:18 -07:00
iter.h
merged.c reftable/merged: adapt interface to allow reuse of iterators 2024-05-13 17:04:19 -07:00
merged.h reftable/stack: provide convenience functions to create iterators 2024-05-13 17:04:19 -07:00
merged_test.c reftable/merged: adapt interface to allow reuse of iterators 2024-05-13 17:04:19 -07:00
pq.c
pq.h
pq_test.c
publicbasics.c
reader.c Merge branch 'ps/reftable-reusable-iterator' 2024-05-30 14:15:12 -07:00
reader.h
readwrite_test.c reftable/reader: adapt interface to allow reuse of iterators 2024-05-13 17:04:18 -07:00
record.c reftable/record: extract function to decode key lengths 2024-04-03 09:16:50 -07:00
record.h reftable/record: extract function to decode key lengths 2024-04-03 09:16:50 -07:00
record_test.c
reftable-blocksource.h
reftable-error.h Merge branch 'ps/reftable-write-optim' 2024-05-08 10:18:43 -07:00
reftable-generic.h reftable/generic: adapt interface to allow reuse of iterators 2024-05-13 17:04:18 -07:00
reftable-iterator.h reftable/generic: adapt interface to allow reuse of iterators 2024-05-13 17:04:18 -07:00
reftable-malloc.h
reftable-merged.h reftable/merged: adapt interface to allow reuse of iterators 2024-05-13 17:04:19 -07:00
reftable-reader.h Merge branch 'ps/reftable-reusable-iterator' 2024-05-30 14:15:12 -07:00
reftable-record.h
reftable-stack.h Merge branch 'ps/reftable-reusable-iterator' 2024-05-30 14:15:12 -07:00
reftable-tests.h t: move reftable/tree_test.c to the unit testing framework 2024-08-04 09:50:26 -07:00
reftable-writer.h reftable: make the compaction factor configurable 2024-05-13 17:02:39 -07:00
stack.c Merge branch 'ps/reftable-reusable-iterator' 2024-05-30 14:15:12 -07:00
stack.h reftable: make the compaction factor configurable 2024-05-13 17:02:39 -07:00
stack_test.c reftable: make the compaction factor configurable 2024-05-13 17:02:39 -07:00
system.h reftable/stack: register lockfiles during compaction 2024-03-07 12:34:13 -08:00
test_framework.c
test_framework.h
tree.c reftable: remove unnecessary curly braces in reftable/tree.c 2024-08-04 09:50:18 -07:00
tree.h
writer.c reftable/writer: improve error when passed an invalid block size 2024-05-13 17:02:38 -07:00
writer.h