From d0d0069bbb276f24b119e1ad702219f2f68d0314 Mon Sep 17 00:00:00 2001 From: "C. Scott Ananian" Date: Fri, 1 May 2009 13:33:04 -0400 Subject: Fix annotations for GList and GSList tests. --- tests/everything/everything.c | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/tests/everything/everything.c b/tests/everything/everything.c index 906a4114..feab26c3 100644 --- a/tests/everything/everything.c +++ b/tests/everything/everything.c @@ -337,6 +337,10 @@ static /*const*/ GList *test_sequence_list() return list; } +/** + * test_glist_free: + * @in: (element-type utf8) (transfer full): + */ void test_glist_free (GList *in) { g_list_foreach (in, (GFunc)g_free, NULL); @@ -398,22 +402,38 @@ static void assert_test_sequence_list (const GList *in) g_assert (strcmp (in->data, test_sequence[i]) == 0); } +/** + * test_glist_nothing_in: + * @in: (element-type utf8): + */ void test_glist_nothing_in (const GList *in) { assert_test_sequence_list (in); } +/** + * test_glist_nothing_in2: + * @in: (element-type utf8): + */ void test_glist_nothing_in2 (GList *in) { assert_test_sequence_list (in); } +/** + * test_glist_container_in: + * @in: (element-type utf8) (transfer container): + */ void test_glist_container_in (GList *in) { assert_test_sequence_list (in); g_list_free (in); } +/** + * test_glist_everything_in: + * @in: (element-type utf8) (transfer full): + */ void test_glist_everything_in (GList *in) { assert_test_sequence_list (in); @@ -436,6 +456,10 @@ static /*const*/ GSList *test_sequence_slist() return list; } +/** + * test_gslist_free: + * @in: (element-type utf8) (transfer full): + */ void test_gslist_free (GSList *in) { g_slist_foreach (in, (GFunc)g_free, NULL); @@ -497,22 +521,38 @@ static void assert_test_sequence_slist (const GSList *in) g_assert (strcmp (in->data, test_sequence[i]) == 0); } +/** + * test_gslist_nothing_in: + * @in: (element-type utf8): + */ void test_gslist_nothing_in (const GSList *in) { assert_test_sequence_slist (in); } +/** + * test_gslist_nothing_in2: + * @in: (element-type utf8): + */ void test_gslist_nothing_in2 (GSList *in) { assert_test_sequence_slist (in); } +/** + * test_gslist_container_in: + * @in: (element-type utf8) (transfer container): + */ void test_gslist_container_in (GSList *in) { assert_test_sequence_slist (in); g_slist_free (in); } +/** + * test_gslist_everything_in: + * @in: (element-type utf8) (transfer full): + */ void test_gslist_everything_in (GSList *in) { assert_test_sequence_slist (in); -- cgit v1.2.1