summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out_full_fixed.page
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2019-01-08 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2019-01-08 22:29:30 +0100
commitefb9b272f7910836ee8ea7a70562d34a1b481d54 (patch)
treecfd2c3396ea8eeafec5e64edcba150a9f76439b1 /tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out_full_fixed.page
parent44a5ab2d2912c486ed9bf85e25b33d173a45f06d (diff)
downloadgobject-introspection-efb9b272f7910836ee8ea7a70562d34a1b481d54.tar.gz
tests: Add functions using flat struct arrays
Relatively common in practice are: * output with transfer full, which is already covered by `regress_test_array_struct_out`, * input with transfer none, covered by a new `regress_test_array_struct_in_none` Other variants are quite esoteric, but it still might be useful to include them so that bindings can verify that they are handled gracefully, e.g., by reporting an error instead of crashing. Issue #90
Diffstat (limited to 'tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out_full_fixed.page')
-rw-r--r--tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out_full_fixed.page37
1 files changed, 37 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out_full_fixed.page b/tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out_full_fixed.page
new file mode 100644
index 00000000..306f3bbe
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Python-expected/Regress.test_array_struct_out_full_fixed.page
@@ -0,0 +1,37 @@
+<?xml version="1.0"?>
+<page id="Regress.test_array_struct_out_full_fixed"
+ type="topic"
+ style="function"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:api="http://projectmallard.org/experimental/api/"
+ xmlns:ui="http://projectmallard.org/1.0/ui/">
+ <info>
+ <link xref="index" group="function" type="guide"/>
+ <api:function>
+ <api:returns>
+ <api:type>none</api:type>
+ </api:returns>
+ <api:name>regress_test_array_struct_out_full_fixed</api:name>
+ <api:arg>
+ <api:type>[Regress.TestStructA]</api:type>
+ <api:name>arr</api:name>
+ </api:arg>
+ </api:function>
+ </info>
+ <title>Regress.test_array_struct_out_full_fixed</title>
+ <synopsis><code mime="text/x-python">
+@accepts([Regress.TestStructA])
+@returns(none)
+def test_array_struct_out_full_fixed(arr):
+ # Python wrapper for regress_test_array_struct_out_full_fixed()
+ </code></synopsis>
+ <p>Test flat fixed-size array output with transfer full.</p>
+
+<terms>
+<item>
+<title><code>arr</code></title>
+ <p>An array</p>
+</item>
+</terms>
+
+</page>