After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 585368 - A few more tests regarding argument direction and multiple output arguments
A few more tests regarding argument direction and multiple output arguments
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2009-06-10 17:37 UTC by Simon van der Linden
Modified: 2015-02-07 16:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Four more tests (1.59 KB, patch)
2009-06-10 17:39 UTC, Simon van der Linden
needs-work Details | Review
Two tests with annotations and documentation (1.29 KB, patch)
2009-06-11 11:09 UTC, Simon van der Linden
accepted-commit_now Details | Review

Description Simon van der Linden 2009-06-10 17:37:55 UTC
For PyBank, at least, it would be nice to have a few more tests in the Everything module, notably a few combinations of input and output argument and return values, to be sure that a tuple is returned and that the order is correct.
Comment 1 Simon van der Linden 2009-06-10 17:39:03 UTC
Created attachment 136286 [details] [review]
Four more tests
Comment 2 Johan (not receiving bugmail) Dahlin 2009-06-10 17:44:48 UTC
Comment on attachment 136286 [details] [review]
Four more tests

>diff --git a/gir/everything.c b/gir/everything.c

>+/**
>+ * test_utf8_const_in_out:
>+ * @out: (out):
>+ */
>+void
>+test_utf8_const_in_out (const char *in, char **out)
>+{
>+  *out = g_strdup (in);
>+}

needs transfer and docs.

>+
>+/**
>+ * test_utf8_out_const_in:
>+ * @out: (out):
>+ */
>+void
>+test_utf8_out_const_in (char **out, const char *in)
>+{
>+  (in, out);
>+}

no real reason to call test_utf8_const_in_out, just duplicate.
also missing transfer and doc.

>+/* multiple output arguments */
>+
>+/**
>+ * test_utf8_out_out:
>+ * @out0: (out):
>+ * @out1: (out):
>+ */
>+void
>+test_utf8_out_out (char **out0, char **out1)

>+char *
>+test_utf8_out_nonconst_return (char **out)

ditto.

Docs in the everything module/typelib is intended for the
bindngs author, to know how/what to test.
Comment 3 Simon van der Linden 2009-06-11 11:09:34 UTC
Created attachment 136329 [details] [review]
Two tests with annotations and documentation
Comment 4 Johan (not receiving bugmail) Dahlin 2009-06-11 12:05:12 UTC
Comment on attachment 136329 [details] [review]
Two tests with annotations and documentation

Looks great, thanks.
Comment 5 C. Scott Ananian 2009-06-24 18:10:46 UTC
Broke 'make check' since you didn't add the extra tests to ./gir/Everything-1.0-expected.gir =(
Comment 6 André Klapper 2015-02-07 16:59:20 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]