[gtk-doc] mkdb: start a new unit test suite for mkdb
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkdb: start a new unit test suite for mkdb
- Date: Tue, 20 Nov 2018 21:24:11 +0000 (UTC)
commit d82d962d8957aebbff92039a9f0b8b4fef1588fb
Author: Stefan Sauer <ensonic users sf net>
Date: Tue Nov 20 20:48:10 2018 +0100
mkdb: start a new unit test suite for mkdb
tests/Makefile.am | 2 +-
tests/mkdb.py | 37 +++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 1 deletion(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 991798e..0e2ec80 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -7,7 +7,7 @@ SUBDIRS = annotations bugs empty fail gobject program repro .
if BUILD_TESTS
TESTS = \
- check.py common.py mk_to_db.py mkhtml2.py scan.py \
+ check.py common.py mkdb.py mk_to_db.py mkhtml2.py scan.py \
tools.sh \
annotations.sh bugs.sh empty.sh fail.sh gobject.sh program.sh
diff --git a/tests/mkdb.py b/tests/mkdb.py
new file mode 100644
index 0000000..d44b667
--- /dev/null
+++ b/tests/mkdb.py
@@ -0,0 +1,37 @@
+# -*- python -*-
+#
+# gtk-doc - GTK DocBook documentation generator.
+# Copyright (C) 2018 Stefan Sauer
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+
+import unittest
+
+from gtkdoc import mkdb
+
+
+class ScanSourceContent(unittest.TestCase):
+
+ def setUp(self):
+ pass
+
+ def test_EmptyInput(self):
+ mkdb.ScanSourceContent([])
+ self.assertEquals({}, mkdb.SourceSymbolDocs)
+
+
+if __name__ == '__main__':
+ unittest.main()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]