<refentry id="camel-camel-test">
<refmeta>
<refentrytitle role="top_of_page" id="camel-camel-test.top_of_page">camel-test</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>CAMEL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>camel-test</refname>
<refpurpose></refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv id="camel-camel-test.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>
<link linkend="void">void</link>                <link linkend="camel-test-failv">camel_test_failv</link>                    (const <link linkend="char">char</link> *why,
                                                         <link linkend="va-list">va_list</link> ap);
#define             <link linkend="check">check</link>                               (x)
#define             <link linkend="check-msg">check_msg</link>                           (x, y, z...)
#define             <link linkend="check-count">check_count</link>                         (object, expected)
#define             <link linkend="check-unref">check_unref</link>                         (object, expected)
#define             <link linkend="test-free">test_free</link>                           (mem)
#define             <link linkend="push">push</link>
#define             <link linkend="pull">pull</link>
<link linkend="void">void</link>                <link linkend="camel-test-init">camel_test_init</link>                     (<link linkend="int">int</link> argc,
                                                         <link linkend="char">char</link> **argv);
<link linkend="void">void</link>                <link linkend="camel-test-start">camel_test_start</link>                    (const <link linkend="char">char</link> *what);
<link linkend="void">void</link>                <link linkend="camel-test-end">camel_test_end</link>                      (void);
<link linkend="void">void</link>                <link linkend="camel-test-push">camel_test_push</link>                     (const <link linkend="char">char</link> *what,
                                                         ...);
<link linkend="void">void</link>                <link linkend="camel-test-pull">camel_test_pull</link>                     (void);
<link linkend="void">void</link>                <link linkend="camel-test-fail">camel_test_fail</link>                     (const <link linkend="char">char</link> *why,
                                                         ...);
<link linkend="void">void</link>                <link linkend="camel-test-nonfatal">camel_test_nonfatal</link>                 (const <link linkend="char">char</link> *why,
                                                         ...);
<link linkend="void">void</link>                <link linkend="camel-test-fatal">camel_test_fatal</link>                    (void);
<link linkend="int">int</link>                 <link linkend="string-equal">string_equal</link>                        (const <link linkend="char">char</link> *a,
                                                         const <link linkend="char">char</link> *b);
</synopsis>
</refsynopsisdiv>









<refsect1 id="camel-camel-test.description" role="desc">
<title role="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 id="camel-camel-test.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="camel-test-failv" role="function">
<title>camel_test_failv ()</title>
<indexterm zone="camel-test-failv"><primary>camel_test_failv</primary></indexterm><programlisting><link linkend="void">void</link>                camel_test_failv                    (const <link linkend="char">char</link> *why,
                                                         <link linkend="va-list">va_list</link> ap);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>why</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>ap</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="check" role="macro">
<title>check()</title>
<indexterm zone="check"><primary>check</primary></indexterm><programlisting>#define check(x) do {if (!(x)) { camel_test_fail("%s:%d: %s", __FILE__, __LINE__, #x); } } while (0)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>x</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="check-msg" role="macro">
<title>check_msg()</title>
<indexterm zone="check-msg"><primary>check_msg</primary></indexterm><programlisting>#define check_msg(x, y, z...) do {if (!(x)) { camel_test_fail("%s:%d: %s\n\t" #y, __FILE__, __LINE__, #x, ##z); } } while (0)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>x</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>y</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>z...</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="check-count" role="macro">
<title>check_count()</title>
<indexterm zone="check-count"><primary>check_count</primary></indexterm><programlisting>#define             check_count(object, expected)</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>expected</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="check-unref" role="macro">
<title>check_unref()</title>
<indexterm zone="check-unref"><primary>check_unref</primary></indexterm><programlisting>#define             check_unref(object, expected)</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>object</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>expected</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="test-free" role="macro">
<title>test_free()</title>
<indexterm zone="test-free"><primary>test_free</primary></indexterm><programlisting>#define test_free(mem) (g_free(mem), mem=NULL)
</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>mem</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="push" role="macro">
<title>push</title>
<indexterm zone="push"><primary>push</primary></indexterm><programlisting>#define push camel_test_push
</programlisting>
<para>

</para></refsect2>
<refsect2 id="pull" role="macro">
<title>pull</title>
<indexterm zone="pull"><primary>pull</primary></indexterm><programlisting>#define pull camel_test_pull
</programlisting>
<para>

</para></refsect2>
<refsect2 id="camel-test-init" role="function">
<title>camel_test_init ()</title>
<indexterm zone="camel-test-init"><primary>camel_test_init</primary></indexterm><programlisting><link linkend="void">void</link>                camel_test_init                     (<link linkend="int">int</link> argc,
                                                         <link linkend="char">char</link> **argv);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>argc</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>argv</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-test-start" role="function">
<title>camel_test_start ()</title>
<indexterm zone="camel-test-start"><primary>camel_test_start</primary></indexterm><programlisting><link linkend="void">void</link>                camel_test_start                    (const <link linkend="char">char</link> *what);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>what</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-test-end" role="function">
<title>camel_test_end ()</title>
<indexterm zone="camel-test-end"><primary>camel_test_end</primary></indexterm><programlisting><link linkend="void">void</link>                camel_test_end                      (void);</programlisting>
<para>

</para></refsect2>
<refsect2 id="camel-test-push" role="function">
<title>camel_test_push ()</title>
<indexterm zone="camel-test-push"><primary>camel_test_push</primary></indexterm><programlisting><link linkend="void">void</link>                camel_test_push                     (const <link linkend="char">char</link> *what,
                                                         ...);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>what</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>...</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-test-pull" role="function">
<title>camel_test_pull ()</title>
<indexterm zone="camel-test-pull"><primary>camel_test_pull</primary></indexterm><programlisting><link linkend="void">void</link>                camel_test_pull                     (void);</programlisting>
<para>

</para></refsect2>
<refsect2 id="camel-test-fail" role="function">
<title>camel_test_fail ()</title>
<indexterm zone="camel-test-fail"><primary>camel_test_fail</primary></indexterm><programlisting><link linkend="void">void</link>                camel_test_fail                     (const <link linkend="char">char</link> *why,
                                                         ...);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>why</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>...</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-test-nonfatal" role="function">
<title>camel_test_nonfatal ()</title>
<indexterm zone="camel-test-nonfatal"><primary>camel_test_nonfatal</primary></indexterm><programlisting><link linkend="void">void</link>                camel_test_nonfatal                 (const <link linkend="char">char</link> *why,
                                                         ...);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>why</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>...</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="camel-test-fatal" role="function">
<title>camel_test_fatal ()</title>
<indexterm zone="camel-test-fatal"><primary>camel_test_fatal</primary></indexterm><programlisting><link linkend="void">void</link>                camel_test_fatal                    (void);</programlisting>
<para>

</para></refsect2>
<refsect2 id="string-equal" role="function">
<title>string_equal ()</title>
<indexterm zone="string-equal"><primary>string_equal</primary></indexterm><programlisting><link linkend="int">int</link>                 string_equal                        (const <link linkend="char">char</link> *a,
                                                         const <link linkend="char">char</link> *b);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>a</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>b</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
