[gtk-doc] Add tests for function pointer vars.
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] Add tests for function pointer vars.
- Date: Sat, 2 Feb 2019 16:23:26 +0000 (UTC)
commit 93a937ee4856bb1e0744b5273eb9fdfb3d48c6ef
Author: Stefan Sauer <ensonic users sf net>
Date: Sat Feb 2 17:22:49 2019 +0100
Add tests for function pointer vars.
tests/scan.py | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/tests/scan.py b/tests/scan.py
index 5632464..89af154 100755
--- a/tests/scan.py
+++ b/tests/scan.py
@@ -580,6 +580,12 @@ class ScanHeaderContentUserFunction(ScanHeaderContentTestCase):
header.splitlines(keepends=True))
self.assertDecl('func', 'void', 'int a', slist)
+ @parameterized.expand([('void', 'void'), ('const_int', 'const int')])
+ def test_FindsFunctionPointerVar(self, _, ret_type):
+ header = '%s (*func)();' % ret_type
+ slist, doc_comments = self.scanHeaderContent([header])
+ self.assertDecl('func', ret_type, '', slist)
+
class ScanHeaderContentVariabless(ScanHeaderContentTestCase):
"""Test parsing of variable declarations."""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]