aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-reftable.c
diff options
context:
space:
mode:
authorChandra Pratap <chandrapratap3519@gmail.com>2024-08-13 20:04:47 +0530
committerJunio C Hamano <gitster@pobox.com>2024-08-13 10:08:02 -0700
commit5b539a53613355a22f5c525eebdd9117fdaedb90 (patch)
treef495d8297dfaac6a9e873f6abfcabeef73035992 /t/helper/test-reftable.c
parent406f326d271e0bacecdb00425422c5fa3f314930 (diff)
downloadgit-5b539a53613355a22f5c525eebdd9117fdaedb90.tar.gz
t: move reftable/readwrite_test.c to the unit testing framework
reftable/readwrite_test.c exercises the functions defined in reftable/reader.{c,h} and reftable/writer.{c,h}. Migrate reftable/readwrite_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' naming conventions. Since some tests in reftable/readwrite_test.c use the functions set_test_hash(), noop_flush() and strbuf_add_void() defined in reftable/test_framework.{c,h} but these files are not #included in the ported unit test, copy these functions in the new test file. While at it, ensure structs are 0-initialized with '= { 0 }' instead of '= { NULL }'. 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>
Diffstat (limited to 't/helper/test-reftable.c')
-rw-r--r--t/helper/test-reftable.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/t/helper/test-reftable.c b/t/helper/test-reftable.c
index 9d378427da..d371e9f9dd 100644
--- a/t/helper/test-reftable.c
+++ b/t/helper/test-reftable.c
@@ -8,7 +8,6 @@ int cmd__reftable(int argc, const char **argv)
block_test_main(argc, argv);
tree_test_main(argc, argv);
pq_test_main(argc, argv);
- readwrite_test_main(argc, argv);
stack_test_main(argc, argv);
return 0;
}