diff options
author | C. Scott Ananian <cscott@litl.com> | 2009-05-01 13:33:04 -0400 |
---|---|---|
committer | Johan Bilien <jobi@litl.com> | 2009-05-12 16:05:02 +0100 |
commit | d0d0069bbb276f24b119e1ad702219f2f68d0314 (patch) | |
tree | 7d0f1f8be926a1464e0807d0d4caf6b964c0d6f5 /tests | |
parent | 1393b5abf7f4f2fb023dadb486b95daf11918112 (diff) | |
download | gobject-introspection-d0d0069bbb276f24b119e1ad702219f2f68d0314.tar.gz |
Fix annotations for GList and GSList tests.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/everything/everything.c | 40 |
1 files changed, 40 insertions, 0 deletions
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); |