From c9f16e67eff98c8c6a3e6ff32927af8c002ac2d8 Mon Sep 17 00:00:00 2001 From: Amr Shahin Date: Sun, 19 Jun 2011 03:27:22 +0300 Subject: unitteset: Curl_llist_move adding unit test for Curl_llist_move, documenting unit-tested functions in llist.c, changing unit-test to unittest, replacing assert calls with abort_unless calls --- lib/llist.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/llist.c') diff --git a/lib/llist.c b/lib/llist.c index 9478a708d..8b4bc7f20 100644 --- a/lib/llist.c +++ b/lib/llist.c @@ -31,6 +31,9 @@ /* this must be the last include file */ #include "memdebug.h" +/* + * @unittest: 1300 + */ static void llist_init(struct curl_llist *l, curl_llist_dtor dtor) { @@ -106,8 +109,9 @@ Curl_llist_insert_next(struct curl_llist *list, struct curl_llist_element *e, /* * @unittest: 1300 */ -int Curl_llist_remove(struct curl_llist *list, struct curl_llist_element *e, - void *user) +int +Curl_llist_remove(struct curl_llist *list, struct curl_llist_element *e, + void *user) { if(e == NULL || list->size == 0) return 1; @@ -153,6 +157,9 @@ Curl_llist_count(struct curl_llist *list) return list->size; } +/* + * @unittest: 1300 + */ int Curl_llist_move(struct curl_llist *list, struct curl_llist_element *e, struct curl_llist *to_list, struct curl_llist_element *to_e) -- cgit v1.2.3