From a680635e05848f4428b4867b7e7ad0e07c94ae8b Mon Sep 17 00:00:00 2001 From: Ghanshyam Thakkar Date: Mon, 2 Sep 2024 02:56:29 +0530 Subject: t: port helper/test-oid-array.c to unit-tests/t-oid-array.c helper/test-oid-array.c along with t0064-oid-array.sh test the oid-array.h API, which provides storage and processing efficiency over large lists of object identifiers. Migrate them to the unit testing framework for better runtime performance and efficiency. As we don't initialize a repository in these tests, the hash algo that functions like oid_array_lookup() use is not initialized, therefore call repo_set_hash_algo() to initialize it. And init_hash_algo():lib-oid.c can aid in this process, so make it public. Mentored-by: Christian Couder Mentored-by: Kaartic Sivaraam Helped-by: Phillip Wood Signed-off-by: Ghanshyam Thakkar Signed-off-by: Junio C Hamano --- t/helper/test-tool.c | 1 - 1 file changed, 1 deletion(-) (limited to 't/helper/test-tool.c') diff --git a/t/helper/test-tool.c b/t/helper/test-tool.c index da3e69128a..353d2aaaa4 100644 --- a/t/helper/test-tool.c +++ b/t/helper/test-tool.c @@ -43,7 +43,6 @@ static struct test_cmd cmds[] = { { "match-trees", cmd__match_trees }, { "mergesort", cmd__mergesort }, { "mktemp", cmd__mktemp }, - { "oid-array", cmd__oid_array }, { "online-cpus", cmd__online_cpus }, { "pack-mtimes", cmd__pack_mtimes }, { "parse-options", cmd__parse_options }, -- cgit 1.2.3-korg