git/reftable
Chandra Pratap ba9661b457 t: move reftable/record_test.c to the unit testing framework
reftable/record_test.c exercises the functions defined in
reftable/record.{c, h}. Migrate reftable/record_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 fit unit-tests' naming scheme.

While at it, change the type of index variable 'i' to 'size_t'
from 'int'. This is because 'i' is used in comparison against
'ARRAY_SIZE(x)' which is of type 'size_t'.

Also, use set_hash() which is defined locally in the test file
instead of set_test_hash() which is defined by
reftable/test_framework.{c, h}. This is fine to do as both these
functions are similarly implemented, and
reftable/test_framework.{c, h} is not #included in the ported test.

Get rid of reftable_record_print() from the tests as well, because
it clutters the test framework's output and we have no way of
verifying the output.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Acked-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2024-07-02 08:12:24 -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
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
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 reftable: remove name checks 2024-04-08 17:01:41 -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 Merge branch 'cp/reftable-unit-test' 2024-06-12 13:37:14 -07:00
system.h
test_framework.c
test_framework.h
tree.c
tree.h
tree_test.c
writer.c reftable/writer: improve error when passed an invalid block size 2024-05-13 17:02:38 -07:00
writer.h