From: Rico Tzschichholz Date: Sun, 31 Jan 2021 12:10:39 +0000 (+0100) Subject: tests/girwriter: Add tests for async methods attributed with NoWrapper X-Git-Tag: 0.51.1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7955d7dcb64af8de9a5820af1e22d8327038f2b;p=thirdparty%2Fvala.git tests/girwriter: Add tests for async methods attributed with NoWrapper --- diff --git a/tests/girwriter/GirTest-1.0.gir-expected b/tests/girwriter/GirTest-1.0.gir-expected index 129cdd0e3..6be6fd561 100644 --- a/tests/girwriter/GirTest-1.0.gir-expected +++ b/tests/girwriter/GirTest-1.0.gir-expected @@ -848,6 +848,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1080,6 +1109,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1334,6 +1396,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1477,6 +1568,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -1965,6 +2089,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2145,6 +2298,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/girwriter/girtest.vala b/tests/girwriter/girtest.vala index 72d3e8866..5867ad5d1 100644 --- a/tests/girwriter/girtest.vala +++ b/tests/girwriter/girtest.vala @@ -84,6 +84,9 @@ namespace GirTest { [NoWrapper] public virtual void no_wrapper_method () { } + [NoWrapper] + public virtual async void no_wrapper_method_async () { + } } [GIR (visible = false)] @@ -287,6 +290,10 @@ namespace GirTest { [NoWrapper] public virtual void no_wrapper_method () { } + + [NoWrapper] + public virtual async void no_wrapper_method_async () { + } } public abstract class AbstractObjectTest : Object { @@ -307,6 +314,9 @@ namespace GirTest { [NoWrapper] public abstract void no_wrapper_method (); + + [NoWrapper] + public abstract async void no_wrapper_method_async (); } public interface PrerequisiteTest : InterfaceTest { diff --git a/tests/girwriter/girtest.vapi-expected b/tests/girwriter/girtest.vapi-expected index 672e0de4b..f48df4c58 100644 --- a/tests/girwriter/girtest.vapi-expected +++ b/tests/girwriter/girtest.vapi-expected @@ -14,6 +14,8 @@ namespace GirTest { public abstract void method_valist (int param, va_list vargs); [NoWrapper] public abstract void no_wrapper_method (); + [NoWrapper] + public abstract async void no_wrapper_method_async (); [GIR (visible = false)] public abstract async void skipped_coroutine_method (int param); } @@ -80,6 +82,8 @@ namespace GirTest { public ObjectTest.newv (int param, ...); [NoWrapper] public virtual void no_wrapper_method (); + [NoWrapper] + public virtual async void no_wrapper_method_async (); public void none_in (); public static void none_inout (ref unowned GirTest.ObjectTest obj); public static void none_out (out unowned GirTest.ObjectTest obj); @@ -125,6 +129,8 @@ namespace GirTest { public virtual void method_valist (int param, va_list vargs); [NoWrapper] public virtual void no_wrapper_method (); + [NoWrapper] + public virtual async void no_wrapper_method_async (); [GIR (visible = false)] public virtual async void skipped_coroutine_method (int param); public abstract int property { get; set construct; } diff --git a/tests/girwriter/girtest.vapigen-expected b/tests/girwriter/girtest.vapigen-expected index 6b66c49d9..af3c73862 100644 --- a/tests/girwriter/girtest.vapigen-expected +++ b/tests/girwriter/girtest.vapigen-expected @@ -16,6 +16,8 @@ namespace GirTest { public abstract void method_valist (int param, va_list vargs); [NoWrapper] public abstract void no_wrapper_method (); + [NoWrapper] + public abstract async void no_wrapper_method_async (); } [CCode (cheader_filename = "girtest.h", has_type_id = false)] [Compact] @@ -108,6 +110,8 @@ namespace GirTest { public virtual void method_with_default_impl (int8 param); [NoWrapper] public virtual void no_wrapper_method (); + [NoWrapper] + public virtual async void no_wrapper_method_async (); public void none_in (); public static void none_inout (ref unowned GirTest.ObjectTest obj); public static void none_out (out unowned GirTest.ObjectTest obj); @@ -155,6 +159,8 @@ namespace GirTest { public virtual void internal_method (); [NoWrapper] public virtual void no_wrapper_method (); + [NoWrapper] + public virtual async void no_wrapper_method_async (); public virtual void set_property (int value); public abstract int property { get; set construct; } }