[gtk-doc] scan: add tests for internal struct/union.
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] scan: add tests for internal struct/union.
- Date: Mon, 10 Dec 2018 16:25:49 +0000 (UTC)
commit 40cab7c1d6d16464080792db002350a13c88ebb9
Author: Stefan Sauer <ensonic users sf net>
Date: Sun Dec 9 19:52:04 2018 +0100
scan: add tests for internal struct/union.
tests/scan.py | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/tests/scan.py b/tests/scan.py
index 4691df4..8260b0f 100644
--- a/tests/scan.py
+++ b/tests/scan.py
@@ -327,6 +327,11 @@ class ScanHeaderContentStructs(ScanHeaderContentTestCase):
header.splitlines(keepends=True))
self.assertDecl('data', header, slist)
+ def test_IgnoresInternalStruct(self):
+ header = 'struct _internal *x;'
+ slist, doc_comments = self.scanHeaderContent([header])
+ self.assertNoDeclFound(slist)
+
class ScanHeaderContentUnions(ScanHeaderContentTestCase):
"""Test parsing of union declarations."""
@@ -357,6 +362,11 @@ class ScanHeaderContentUnions(ScanHeaderContentTestCase):
header.splitlines(keepends=True))
self.assertDecl('Data', header, slist)
+ def test_IgnoresInternalUnion(self):
+ header = 'union _internal *x;'
+ slist, doc_comments = self.scanHeaderContent([header])
+ self.assertNoDeclFound(slist)
+
# USER FUNCTION (aka function pointer types)
class ScanHeaderContentUserFunction(ScanHeaderContentTestCase):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]