diff options
| author | Ghanshyam Thakkar <shyamthakkar001@gmail.com> | 2024-07-03 11:59:53 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-07-03 09:12:14 -0700 |
| commit | 28c1c077001d5cf715eb6264d75bc2537aa8cfd2 (patch) | |
| tree | 58d5796cf67d2cd37e00028c7df2c6b6233d54ea /t/helper/test-tool.h | |
| parent | Sync with 'maint' (diff) | |
| download | git-28c1c077001d5cf715eb6264d75bc2537aa8cfd2.tar.gz git-28c1c077001d5cf715eb6264d75bc2537aa8cfd2.zip | |
t: migrate helper/test-oidmap.c to unit-tests/t-oidmap.c
helper/test-oidmap.c along with t0016-oidmap.sh test the oidmap.h
library which is built on top of hashmap.h.
Migrate them to the unit testing framework for better performance,
concise code and better debugging. Along with the migration also plug
memory leaks and make the test logic independent for all the tests.
The migration removes 'put' tests from t0016, because it is used as
setup to all the other tests, so testing it separately does not yield
any benefit.
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
Reviewed-by: Josh Steadmon <steadmon@google.com>
Helped-by: Phillip Wood <phillip.wood123@gmail.com>
Helped-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Ghanshyam Thakkar <shyamthakkar001@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-tool.h')
| -rw-r--r-- | t/helper/test-tool.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/t/helper/test-tool.h b/t/helper/test-tool.h index d9033d14e1..642a34578c 100644 --- a/t/helper/test-tool.h +++ b/t/helper/test-tool.h @@ -37,7 +37,6 @@ int cmd__lazy_init_name_hash(int argc, const char **argv); int cmd__match_trees(int argc, const char **argv); int cmd__mergesort(int argc, const char **argv); int cmd__mktemp(int argc, const char **argv); -int cmd__oidmap(int argc, const char **argv); int cmd__online_cpus(int argc, const char **argv); int cmd__pack_mtimes(int argc, const char **argv); int cmd__parse_options(int argc, const char **argv); |
