static void test_visitor_out_string(TestOutputVisitorData *data,

                                    const void *unused)

{

    char *string = (char *) "Q E M U";

    Error *err = NULL;

    QObject *obj;



    visit_type_str(data->ov, &string, NULL, &err);

    g_assert(!err);



    obj = qmp_output_get_qobject(data->qov);

    g_assert(obj != NULL);

    g_assert(qobject_type(obj) == QTYPE_QSTRING);

    g_assert_cmpstr(qstring_get_str(qobject_to_qstring(obj)), ==, string);



    qobject_decref(obj);

}

static void test_visitor_out_string(TestOutputVisitorData *data,

                                    const void *unused)

{

    char *string = (char *) "Q E M U";

    Error *err = NULL;

    QObject *obj;



    visit_type_str(data->ov, &string, NULL, &err);

    g_assert(!err);



    obj = qmp_output_get_qobject(data->qov);

    g_assert(obj != NULL);

    g_assert(qobject_type(obj) == QTYPE_QSTRING);

    g_assert_cmpstr(qstring_get_str(qobject_to_qstring(obj)), ==, string);



    qobject_decref(obj);

}

static void FUNC_0(TestOutputVisitorData *VAR_0,

                                    const void *VAR_1)

{

    char *VAR_2 = (char *) "Q E M U";

    Error *err = NULL;

    QObject *obj;



    visit_type_str(VAR_0->ov, &VAR_2, NULL, &err);

    g_assert(!err);



    obj = qmp_output_get_qobject(VAR_0->qov);

    g_assert(obj != NULL);

    g_assert(qobject_type(obj) == QTYPE_QSTRING);

    g_assert_cmpstr(qstring_get_str(qobject_to_qstring(obj)), ==, VAR_2);



    qobject_decref(obj);

}

static void FUNC_0(TestOutputVisitorData *VAR_0,
const void *VAR_1)
{ char *VAR_2 = (char *) "Q E M U"; Error *err = NULL; QObject *obj; visit_type_str(VAR_0->ov, &VAR_2, NULL, &err); g_assert(!err); obj = qmp_output_get_qobject(VAR_0->qov); g_assert(obj != NULL); g_assert(qobject_type(obj) == QTYPE_QSTRING); g_assert_cmpstr(qstring_get_str(qobject_to_qstring(obj)), ==, VAR_2); qobject_decref(obj); }