giscanner: add AnnotationParser tests
authorDieter Verfaillie <dieterv@optionexplicit.be>
Wed, 4 Jul 2012 09:58:13 +0000 (11:58 +0200)
committerDieter Verfaillie <dieterv@optionexplicit.be>
Wed, 28 Nov 2012 20:31:23 +0000 (21:31 +0100)
commitaf2e146f5f24b93322ad0112d37a8e41222c3085
treeaa0e94914de51582e19ec7566cd5b40c88475e87
parentc9516551d29432270f5f840ef315ce34f654a62f
giscanner: add AnnotationParser tests

The tests in giscanner/annotationpatters.py only test the regular
expression programs used when parsing GTK-Doc comment blocks but
do not test the structure of the resulting "parse tree".

This patch adds 193 GTK-Doc comment blocks and the expected
results AnnotationParser should return (with it's current level
of understanding of GTK-Doc comment block syntax). These are
compared by tests/scanner/annotationparser/test_parser.py which
complains with a diff on failure.

https://bugzilla.gnome.org/show_bug.cgi?id=688897
46 files changed:
Makefile.am
tests/scanner/annotationparser/README [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_allow_none.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_array.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_closure.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_constructor.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_destroy.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_element_type.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_foreign.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_get_value_func.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_in.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_in_out.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_method.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_out.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_ref_func.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_rename_to.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_scope.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_set_value_func.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_skip.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_transfer.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_type.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_unref_func.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_value.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/annotation_virtual.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/syntax.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/syntax_identifier.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/syntax_paragraph_breaks.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/tag_deprecated.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/tag_description.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/tag_returns.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/tag_since.xml [new file with mode: 0644]
tests/scanner/annotationparser/gi/tag_stability.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/annotations/tester.c.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/annotations/tester.h.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/bugs/tester.c.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/bugs/tester.h.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/empty/tester.c.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/fail/tester.c.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/fail/tester.h.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/gobject/giface.c.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/gobject/giface.h.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/gobject/gobject.c.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/gobject/gobject.h.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/gobject/gtypes.c.xml [new file with mode: 0644]
tests/scanner/annotationparser/gtkdoc/gobject/gtypes.h.xml [new file with mode: 0644]
tests/scanner/annotationparser/test_parser.py [new file with mode: 0644]