]> git.99rst.org Git - git.git/commit
u-string-list: add unit tests for string-list methods
authorAmisha Chhajed <redacted>
Thu, 29 Jan 2026 12:12:19 +0000 (17:42 +0530)
committerJunio C Hamano <redacted>
Thu, 29 Jan 2026 17:32:50 +0000 (09:32 -0800)
commit208642cfbb53781602af1fa77c67322c0aab0ad9
tree04f6af6b3a149f98b1783b775a3cf67b3ade1ba4
parent6959eee16e7253a4df8c97483c2784bcc3d158f9
u-string-list: add unit tests for string-list methods

Unit tests in u-string-list.c does not cover several methods
in string-list, this gap in coverage makes it difficult to
ensure no regressions are introduced in future changes.

Add unit tests for the following methods to enhance coverage:
string_list_remove_empty_items()
unsorted_string_list_has_string()
unsorted_string_list_delete_item()
string_list_has_string()
string_list_insert()
string_list_sort()
string_list_remove()

Signed-off-by: Amisha Chhajed <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/unit-tests/u-string-list.c
git clone https://git.99rst.org/PROJECT