/* name-details.c generated by valac 0.13.1.106-1068, the Vala compiler
 * generated from name-details.vala, do not modify */

/*
 * Copyright (C) 2011 Collabora Ltd.
 *
 * This library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 2.1 of the License, or
 * (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this library.  If not, see <http://www.gnu.org/licenses/>.
 *
 * Authors: Raul Gutierrez Segales <raul.gutierrez.segales@collabora.co.uk>
 *
 */

#include <glib.h>
#include <glib-object.h>
#include <folks-test.h>
#include <eds-test.h>
#include <folks/folks.h>
#include <gee.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>


#define TYPE_NAME_DETAILS_TESTS (name_details_tests_get_type ())
#define NAME_DETAILS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_NAME_DETAILS_TESTS, NameDetailsTests))
#define NAME_DETAILS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_NAME_DETAILS_TESTS, NameDetailsTestsClass))
#define IS_NAME_DETAILS_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_NAME_DETAILS_TESTS))
#define IS_NAME_DETAILS_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_NAME_DETAILS_TESTS))
#define NAME_DETAILS_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_NAME_DETAILS_TESTS, NameDetailsTestsClass))

typedef struct _NameDetailsTests NameDetailsTests;
typedef struct _NameDetailsTestsClass NameDetailsTestsClass;
typedef struct _NameDetailsTestsPrivate NameDetailsTestsPrivate;
#define _eds_test_backend_unref0(var) ((var == NULL) ? NULL : (var = (eds_test_backend_unref (var), NULL)))
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __vala_GValue_free0(var) ((var == NULL) ? NULL : (var = (_vala_GValue_free (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _NameDetailsTestsTestNamesAsyncData NameDetailsTestsTestNamesAsyncData;
#define _g_free0(var) (var = (g_free (var), NULL))

struct _NameDetailsTests {
	FolksTestCase parent_instance;
	NameDetailsTestsPrivate * priv;
};

struct _NameDetailsTestsClass {
	FolksTestCaseClass parent_class;
};

struct _NameDetailsTestsPrivate {
	EdsTestBackend* _eds_backend;
	GMainLoop* _main_loop;
	FolksIndividualAggregator* _aggregator;
	gint _names_count;
	GeeHashMap* _c1;
	GeeHashMap* _c2;
};

struct _NameDetailsTestsTestNamesAsyncData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	NameDetailsTests* self;
	EdsTestBackend* _tmp0_;
	FolksBackendStore* _tmp1_;
	FolksBackendStore* store;
	FolksBackendStore* _tmp2_;
	FolksIndividualAggregator* _tmp3_;
	FolksIndividualAggregator* _tmp4_;
	FolksIndividualAggregator* _tmp5_;
	GError* e;
	GError* _tmp6_;
	const gchar* _tmp7_;
	GError * _inner_error_;
};


static gpointer name_details_tests_parent_class = NULL;

GType name_details_tests_get_type (void) G_GNUC_CONST;
#define NAME_DETAILS_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_NAME_DETAILS_TESTS, NameDetailsTestsPrivate))
enum  {
	NAME_DETAILS_TESTS_DUMMY_PROPERTY
};
NameDetailsTests* name_details_tests_new (void);
NameDetailsTests* name_details_tests_construct (GType object_type);
void name_details_tests_test_names (NameDetailsTests* self);
static void _name_details_tests_test_names_folks_test_case_test_method (gpointer self);
static void name_details_tests_real_set_up (FolksTestCase* base);
static void name_details_tests_real_tear_down (FolksTestCase* base);
static GValue* _g_value_dup (GValue* self);
static void _vala_GValue_free (GValue* self);
static void _name_details_tests_test_names_async (NameDetailsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_);
static void _name_details_tests_test_names_finish (NameDetailsTests* self, GAsyncResult* _res_);
static gboolean _lambda0_ (NameDetailsTests* self);
static gboolean __lambda0__gsource_func (gpointer self);
static void _name_details_tests_test_names_async_data_free (gpointer _data);
static gboolean _name_details_tests_test_names_async_co (NameDetailsTestsTestNamesAsyncData* _data_);
static void _name_details_tests_test_names_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void _name_details_tests_individuals_changed_cb (NameDetailsTests* self, GeeSet* added, GeeSet* removed, const gchar* message, FolksPersona* actor, FolksGroupDetailsChangeReason reason);
static void __name_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed (FolksIndividualAggregator* _sender, GeeSet* added, GeeSet* removed, const gchar* message, FolksPersona* actor, FolksGroupDetailsChangeReason reason, gpointer self);
static void name_details_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);


static void _name_details_tests_test_names_folks_test_case_test_method (gpointer self) {
	name_details_tests_test_names (self);
}


NameDetailsTests* name_details_tests_construct (GType object_type) {
	NameDetailsTests * self = NULL;
	EdsTestBackend* _tmp0_;
	self = (NameDetailsTests*) folks_test_case_construct (object_type, "NameDetails");
	_tmp0_ = eds_test_backend_new ();
	_eds_test_backend_unref0 (self->priv->_eds_backend);
	self->priv->_eds_backend = _tmp0_;
	folks_test_case_add_test ((FolksTestCase*) self, "name details interface", _name_details_tests_test_names_folks_test_case_test_method, self);
	return self;
}


NameDetailsTests* name_details_tests_new (void) {
	return name_details_tests_construct (TYPE_NAME_DETAILS_TESTS);
}


static void name_details_tests_real_set_up (FolksTestCase* base) {
	NameDetailsTests * self;
	EdsTestBackend* _tmp0_;
	self = (NameDetailsTests*) base;
	_tmp0_ = self->priv->_eds_backend;
	eds_test_backend_set_up (_tmp0_);
}


static void name_details_tests_real_tear_down (FolksTestCase* base) {
	NameDetailsTests * self;
	EdsTestBackend* _tmp0_;
	self = (NameDetailsTests*) base;
	_tmp0_ = self->priv->_eds_backend;
	eds_test_backend_tear_down (_tmp0_);
}


static GValue* _g_value_dup (GValue* self) {
	return g_boxed_copy (G_TYPE_VALUE, self);
}


static void _vala_GValue_free (GValue* self) {
	g_value_unset (self);
	g_free (self);
}


static gpointer __g_value_dup0 (gpointer self) {
	return self ? _g_value_dup (self) : NULL;
}


static gpointer _g_object_ref0 (gpointer self) {
	return self ? g_object_ref (self) : NULL;
}


static gboolean _lambda0_ (NameDetailsTests* self) {
	gboolean result = FALSE;
	GMainLoop* _tmp0_;
	_tmp0_ = self->priv->_main_loop;
	g_main_loop_quit (_tmp0_);
	result = FALSE;
	return result;
}


static gboolean __lambda0__gsource_func (gpointer self) {
	gboolean result;
	result = _lambda0_ (self);
	return result;
}


void name_details_tests_test_names (NameDetailsTests* self) {
	GeeHashMap* _tmp0_;
	GeeHashMap* _tmp1_;
	GMainLoop* _tmp2_;
	GValue* v = NULL;
	EdsTestBackend* _tmp3_;
	GValue _tmp4_ = {0};
	GValue _tmp5_;
	GValue _tmp6_;
	GValue* _tmp7_;
	GValue* _tmp8_;
	GeeHashMap* _tmp9_;
	GValue* _tmp10_;
	GValue* _tmp11_;
	GValue _tmp12_ = {0};
	GValue _tmp13_;
	GValue _tmp14_;
	GValue* _tmp15_;
	GValue* _tmp16_;
	GeeHashMap* _tmp17_;
	GValue* _tmp18_;
	GValue* _tmp19_;
	GValue _tmp20_ = {0};
	GValue _tmp21_;
	GValue _tmp22_;
	GValue* _tmp23_;
	GValue* _tmp24_;
	GeeHashMap* _tmp25_;
	GValue* _tmp26_;
	GValue* _tmp27_;
	GValue _tmp28_ = {0};
	GValue _tmp29_;
	GValue _tmp30_;
	GValue* _tmp31_;
	GValue* _tmp32_;
	GeeHashMap* _tmp33_;
	GValue* _tmp34_;
	GValue* _tmp35_;
	GValue _tmp36_ = {0};
	GValue _tmp37_;
	GValue _tmp38_;
	GValue* _tmp39_;
	GValue* _tmp40_;
	GeeHashMap* _tmp41_;
	GValue* _tmp42_;
	GValue* _tmp43_;
	GValue _tmp44_ = {0};
	GValue _tmp45_;
	GValue _tmp46_;
	GValue* _tmp47_;
	GValue* _tmp48_;
	GeeHashMap* _tmp49_;
	GValue* _tmp50_;
	GValue* _tmp51_;
	GValue _tmp52_ = {0};
	GValue _tmp53_;
	GValue _tmp54_;
	GValue* _tmp55_;
	GValue* _tmp56_;
	GeeHashMap* _tmp57_;
	GValue* _tmp58_;
	GValue* _tmp59_;
	EdsTestBackend* _tmp60_;
	GeeHashMap* _tmp61_;
	GeeHashMap* _tmp62_;
	GValue _tmp63_ = {0};
	GValue _tmp64_;
	GValue _tmp65_;
	GValue* _tmp66_;
	GValue* _tmp67_;
	GeeHashMap* _tmp68_;
	GValue* _tmp69_;
	GValue* _tmp70_;
	GValue _tmp71_ = {0};
	GValue _tmp72_;
	GValue _tmp73_;
	GValue* _tmp74_;
	GValue* _tmp75_;
	GeeHashMap* _tmp76_;
	GValue* _tmp77_;
	GValue* _tmp78_;
	GValue _tmp79_ = {0};
	GValue _tmp80_;
	GValue _tmp81_;
	GValue* _tmp82_;
	GValue* _tmp83_;
	GeeHashMap* _tmp84_;
	GValue* _tmp85_;
	GValue* _tmp86_;
	EdsTestBackend* _tmp87_;
	GeeHashMap* _tmp88_;
	GeeHashMap* _tmp89_;
	GMainLoop* _tmp90_;
	gint _tmp91_;
	GeeHashMap* _tmp92_;
	gint _tmp93_;
	gint _tmp94_;
	GeeHashMap* _tmp95_;
	gint _tmp96_;
	gint _tmp97_;
	g_return_if_fail (self != NULL);
	_tmp0_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_VALUE, (GBoxedCopyFunc) _g_value_dup, _vala_GValue_free, NULL, NULL, NULL);
	_g_object_unref0 (self->priv->_c1);
	self->priv->_c1 = _tmp0_;
	_tmp1_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_VALUE, (GBoxedCopyFunc) _g_value_dup, _vala_GValue_free, NULL, NULL, NULL);
	_g_object_unref0 (self->priv->_c2);
	self->priv->_c2 = _tmp1_;
	self->priv->_names_count = 0;
	_tmp2_ = g_main_loop_new (NULL, FALSE);
	_g_main_loop_unref0 (self->priv->_main_loop);
	self->priv->_main_loop = _tmp2_;
	_tmp3_ = self->priv->_eds_backend;
	eds_test_backend_reset (_tmp3_);
	g_value_init (&_tmp4_, G_TYPE_STRING);
	_tmp5_ = _tmp4_;
	_tmp6_ = _tmp5_;
	_tmp7_ = __g_value_dup0 (&_tmp6_);
	__vala_GValue_free0 (v);
	v = _tmp7_;
	G_IS_VALUE (&_tmp6_) ? (g_value_unset (&_tmp6_), NULL) : NULL;
	_tmp8_ = v;
	g_value_set_string (_tmp8_, "bernie h. innocenti");
	_tmp9_ = self->priv->_c1;
	_tmp10_ = v;
	v = NULL;
	_tmp11_ = _tmp10_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp9_, "full_name", _tmp11_);
	__vala_GValue_free0 (_tmp11_);
	g_value_init (&_tmp12_, G_TYPE_STRING);
	_tmp13_ = _tmp12_;
	_tmp14_ = _tmp13_;
	_tmp15_ = __g_value_dup0 (&_tmp14_);
	__vala_GValue_free0 (v);
	v = _tmp15_;
	G_IS_VALUE (&_tmp14_) ? (g_value_unset (&_tmp14_), NULL) : NULL;
	_tmp16_ = v;
	g_value_set_string (_tmp16_, "bernie");
	_tmp17_ = self->priv->_c1;
	_tmp18_ = v;
	v = NULL;
	_tmp19_ = _tmp18_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp17_, "nickname", _tmp19_);
	__vala_GValue_free0 (_tmp19_);
	g_value_init (&_tmp20_, G_TYPE_STRING);
	_tmp21_ = _tmp20_;
	_tmp22_ = _tmp21_;
	_tmp23_ = __g_value_dup0 (&_tmp22_);
	__vala_GValue_free0 (v);
	v = _tmp23_;
	G_IS_VALUE (&_tmp22_) ? (g_value_unset (&_tmp22_), NULL) : NULL;
	_tmp24_ = v;
	g_value_set_string (_tmp24_, "Innocenti");
	_tmp25_ = self->priv->_c1;
	_tmp26_ = v;
	v = NULL;
	_tmp27_ = _tmp26_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp25_, "contact_name_family", _tmp27_);
	__vala_GValue_free0 (_tmp27_);
	g_value_init (&_tmp28_, G_TYPE_STRING);
	_tmp29_ = _tmp28_;
	_tmp30_ = _tmp29_;
	_tmp31_ = __g_value_dup0 (&_tmp30_);
	__vala_GValue_free0 (v);
	v = _tmp31_;
	G_IS_VALUE (&_tmp30_) ? (g_value_unset (&_tmp30_), NULL) : NULL;
	_tmp32_ = v;
	g_value_set_string (_tmp32_, "Bernardo");
	_tmp33_ = self->priv->_c1;
	_tmp34_ = v;
	v = NULL;
	_tmp35_ = _tmp34_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp33_, "contact_name_given", _tmp35_);
	__vala_GValue_free0 (_tmp35_);
	g_value_init (&_tmp36_, G_TYPE_STRING);
	_tmp37_ = _tmp36_;
	_tmp38_ = _tmp37_;
	_tmp39_ = __g_value_dup0 (&_tmp38_);
	__vala_GValue_free0 (v);
	v = _tmp39_;
	G_IS_VALUE (&_tmp38_) ? (g_value_unset (&_tmp38_), NULL) : NULL;
	_tmp40_ = v;
	g_value_set_string (_tmp40_, "H.");
	_tmp41_ = self->priv->_c1;
	_tmp42_ = v;
	v = NULL;
	_tmp43_ = _tmp42_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp41_, "contact_name_additional", _tmp43_);
	__vala_GValue_free0 (_tmp43_);
	g_value_init (&_tmp44_, G_TYPE_STRING);
	_tmp45_ = _tmp44_;
	_tmp46_ = _tmp45_;
	_tmp47_ = __g_value_dup0 (&_tmp46_);
	__vala_GValue_free0 (v);
	v = _tmp47_;
	G_IS_VALUE (&_tmp46_) ? (g_value_unset (&_tmp46_), NULL) : NULL;
	_tmp48_ = v;
	g_value_set_string (_tmp48_, "Mr.");
	_tmp49_ = self->priv->_c1;
	_tmp50_ = v;
	v = NULL;
	_tmp51_ = _tmp50_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp49_, "contact_name_prefixes", _tmp51_);
	__vala_GValue_free0 (_tmp51_);
	g_value_init (&_tmp52_, G_TYPE_STRING);
	_tmp53_ = _tmp52_;
	_tmp54_ = _tmp53_;
	_tmp55_ = __g_value_dup0 (&_tmp54_);
	__vala_GValue_free0 (v);
	v = _tmp55_;
	G_IS_VALUE (&_tmp54_) ? (g_value_unset (&_tmp54_), NULL) : NULL;
	_tmp56_ = v;
	g_value_set_string (_tmp56_, "(sysadmin FSF)");
	_tmp57_ = self->priv->_c1;
	_tmp58_ = v;
	v = NULL;
	_tmp59_ = _tmp58_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp57_, "contact_name_suffixes", _tmp59_);
	__vala_GValue_free0 (_tmp59_);
	_tmp60_ = self->priv->_eds_backend;
	_tmp61_ = self->priv->_c1;
	_tmp62_ = _g_object_ref0 (_tmp61_);
	eds_test_backend_add_contact (_tmp60_, _tmp62_);
	g_value_init (&_tmp63_, G_TYPE_STRING);
	_tmp64_ = _tmp63_;
	_tmp65_ = _tmp64_;
	_tmp66_ = __g_value_dup0 (&_tmp65_);
	__vala_GValue_free0 (v);
	v = _tmp66_;
	G_IS_VALUE (&_tmp65_) ? (g_value_unset (&_tmp65_), NULL) : NULL;
	_tmp67_ = v;
	g_value_set_string (_tmp67_, "richard m. stallman");
	_tmp68_ = self->priv->_c2;
	_tmp69_ = v;
	v = NULL;
	_tmp70_ = _tmp69_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp68_, "full_name", _tmp70_);
	__vala_GValue_free0 (_tmp70_);
	g_value_init (&_tmp71_, G_TYPE_STRING);
	_tmp72_ = _tmp71_;
	_tmp73_ = _tmp72_;
	_tmp74_ = __g_value_dup0 (&_tmp73_);
	__vala_GValue_free0 (v);
	v = _tmp74_;
	G_IS_VALUE (&_tmp73_) ? (g_value_unset (&_tmp73_), NULL) : NULL;
	_tmp75_ = v;
	g_value_set_string (_tmp75_, "Stallman");
	_tmp76_ = self->priv->_c2;
	_tmp77_ = v;
	v = NULL;
	_tmp78_ = _tmp77_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp76_, "contact_name_family", _tmp78_);
	__vala_GValue_free0 (_tmp78_);
	g_value_init (&_tmp79_, G_TYPE_STRING);
	_tmp80_ = _tmp79_;
	_tmp81_ = _tmp80_;
	_tmp82_ = __g_value_dup0 (&_tmp81_);
	__vala_GValue_free0 (v);
	v = _tmp82_;
	G_IS_VALUE (&_tmp81_) ? (g_value_unset (&_tmp81_), NULL) : NULL;
	_tmp83_ = v;
	g_value_set_string (_tmp83_, "Richard M.");
	_tmp84_ = self->priv->_c2;
	_tmp85_ = v;
	v = NULL;
	_tmp86_ = _tmp85_;
	gee_abstract_map_set ((GeeAbstractMap*) _tmp84_, "contact_name_given", _tmp86_);
	__vala_GValue_free0 (_tmp86_);
	_tmp87_ = self->priv->_eds_backend;
	_tmp88_ = self->priv->_c2;
	_tmp89_ = _g_object_ref0 (_tmp88_);
	eds_test_backend_add_contact (_tmp87_, _tmp89_);
	_name_details_tests_test_names_async (self, NULL, NULL);
	g_timeout_add_seconds_full (G_PRIORITY_DEFAULT, (guint) 5, __lambda0__gsource_func, g_object_ref (self), g_object_unref);
	_tmp90_ = self->priv->_main_loop;
	g_main_loop_run (_tmp90_);
	_tmp91_ = self->priv->_names_count;
	g_assert (_tmp91_ == 2);
	_tmp92_ = self->priv->_c1;
	_tmp93_ = gee_map_get_size ((GeeMap*) _tmp92_);
	_tmp94_ = _tmp93_;
	g_assert (_tmp94_ == 0);
	_tmp95_ = self->priv->_c2;
	_tmp96_ = gee_map_get_size ((GeeMap*) _tmp95_);
	_tmp97_ = _tmp96_;
	g_assert (_tmp97_ == 0);
	__vala_GValue_free0 (v);
}


static void _name_details_tests_test_names_async_data_free (gpointer _data) {
	NameDetailsTestsTestNamesAsyncData* _data_;
	_data_ = _data;
	_g_object_unref0 (_data_->self);
	g_slice_free (NameDetailsTestsTestNamesAsyncData, _data_);
}


static void _name_details_tests_test_names_async (NameDetailsTests* self, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	NameDetailsTestsTestNamesAsyncData* _data_;
	NameDetailsTests* _tmp0_;
	_data_ = g_slice_new0 (NameDetailsTestsTestNamesAsyncData);
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, _name_details_tests_test_names_async);
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, _name_details_tests_test_names_async_data_free);
	_tmp0_ = _g_object_ref0 (self);
	_data_->self = _tmp0_;
	_name_details_tests_test_names_async_co (_data_);
}


static void _name_details_tests_test_names_finish (NameDetailsTests* self, GAsyncResult* _res_) {
	NameDetailsTestsTestNamesAsyncData* _data_;
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}


static void _name_details_tests_test_names_async_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	NameDetailsTestsTestNamesAsyncData* _data_;
	_data_ = _user_data_;
	_data_->_source_object_ = source_object;
	_data_->_res_ = _res_;
	_name_details_tests_test_names_async_co (_data_);
}


static void __name_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed (FolksIndividualAggregator* _sender, GeeSet* added, GeeSet* removed, const gchar* message, FolksPersona* actor, FolksGroupDetailsChangeReason reason, gpointer self) {
	_name_details_tests_individuals_changed_cb (self, added, removed, message, actor, reason);
}


static gboolean _name_details_tests_test_names_async_co (NameDetailsTestsTestNamesAsyncData* _data_) {
	switch (_data_->_state_) {
		case 0:
		goto _state_0;
		case 1:
		goto _state_1;
		case 2:
		goto _state_2;
		case 3:
		goto _state_3;
		default:
		g_assert_not_reached ();
	}
	_state_0:
	_data_->_tmp0_ = _data_->self->priv->_eds_backend;
	_data_->_state_ = 1;
	eds_test_backend_commit_contacts_to_addressbook (_data_->_tmp0_, _name_details_tests_test_names_async_ready, _data_);
	return FALSE;
	_state_1:
	eds_test_backend_commit_contacts_to_addressbook_finish (_data_->_tmp0_, _data_->_res_);
	_data_->_tmp1_ = NULL;
	_data_->_tmp1_ = folks_backend_store_dup ();
	_data_->store = _data_->_tmp1_;
	_data_->_tmp2_ = _data_->store;
	_data_->_state_ = 2;
	folks_backend_store_prepare (_data_->_tmp2_, _name_details_tests_test_names_async_ready, _data_);
	return FALSE;
	_state_2:
	folks_backend_store_prepare_finish (_data_->_tmp2_, _data_->_res_);
	_data_->_tmp3_ = folks_individual_aggregator_new ();
	_g_object_unref0 (_data_->self->priv->_aggregator);
	_data_->self->priv->_aggregator = _data_->_tmp3_;
	_data_->_tmp4_ = _data_->self->priv->_aggregator;
	g_signal_connect_object (_data_->_tmp4_, "individuals-changed", (GCallback) __name_details_tests_individuals_changed_cb_folks_individual_aggregator_individuals_changed, _data_->self, 0);
	{
		_data_->_tmp5_ = _data_->self->priv->_aggregator;
		_data_->_state_ = 3;
		folks_individual_aggregator_prepare (_data_->_tmp5_, _name_details_tests_test_names_async_ready, _data_);
		return FALSE;
		_state_3:
		folks_individual_aggregator_prepare_finish (_data_->_tmp5_, _data_->_res_, &_data_->_inner_error_);
		if (_data_->_inner_error_ != NULL) {
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		_data_->e = _data_->_inner_error_;
		_data_->_inner_error_ = NULL;
		_data_->_tmp6_ = _data_->e;
		_data_->_tmp7_ = _data_->_tmp6_->message;
		g_warning ("name-details.vala:129: Error when calling prepare: %s\n", _data_->_tmp7_);
		_g_error_free0 (_data_->e);
	}
	__finally0:
	if (_data_->_inner_error_ != NULL) {
		_g_object_unref0 (_data_->store);
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
		g_clear_error (&_data_->_inner_error_);
		return FALSE;
	}
	_g_object_unref0 (_data_->store);
	if (_data_->_state_ == 0) {
		g_simple_async_result_complete_in_idle (_data_->_async_result);
	} else {
		g_simple_async_result_complete (_data_->_async_result);
	}
	g_object_unref (_data_->_async_result);
	return FALSE;
}


static void _name_details_tests_individuals_changed_cb (NameDetailsTests* self, GeeSet* added, GeeSet* removed, const gchar* message, FolksPersona* actor, FolksGroupDetailsChangeReason reason) {
	GeeSet* _tmp152_;
	gint _tmp153_;
	gint _tmp154_;
	gboolean _tmp155_ = FALSE;
	GeeHashMap* _tmp156_;
	gint _tmp157_;
	gint _tmp158_;
	gboolean _tmp162_;
	g_return_if_fail (self != NULL);
	g_return_if_fail (added != NULL);
	g_return_if_fail (removed != NULL);
	{
		GeeSet* _tmp0_;
		GeeIterator* _tmp1_ = NULL;
		GeeIterator* _i_it;
		_tmp0_ = added;
		_tmp1_ = gee_iterable_iterator ((GeeIterable*) _tmp0_);
		_i_it = _tmp1_;
		while (TRUE) {
			GeeIterator* _tmp2_;
			gboolean _tmp3_ = FALSE;
			GeeIterator* _tmp4_;
			gpointer _tmp5_ = NULL;
			FolksIndividual* i;
			gchar* s = NULL;
			FolksIndividual* _tmp6_;
			GeeSet* _tmp7_;
			GeeSet* _tmp8_;
			gint _tmp9_;
			gint _tmp10_;
			FolksIndividual* _tmp11_;
			FolksNameDetails* _tmp12_;
			FolksNameDetails* name;
			FolksIndividual* _tmp13_;
			const gchar* _tmp14_;
			const gchar* _tmp15_;
			gint _tmp151_;
			_tmp2_ = _i_it;
			_tmp3_ = gee_iterator_next (_tmp2_);
			if (!_tmp3_) {
				break;
			}
			_tmp4_ = _i_it;
			_tmp5_ = gee_iterator_get (_tmp4_);
			i = (FolksIndividual*) _tmp5_;
			_tmp6_ = i;
			_tmp7_ = folks_individual_get_personas (_tmp6_);
			_tmp8_ = _tmp7_;
			_tmp9_ = gee_collection_get_size ((GeeCollection*) _tmp8_);
			_tmp10_ = _tmp9_;
			g_assert (_tmp10_ == 1);
			_tmp11_ = i;
			_tmp12_ = _g_object_ref0 (FOLKS_NAME_DETAILS (_tmp11_));
			name = _tmp12_;
			_tmp13_ = i;
			_tmp14_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp13_);
			_tmp15_ = _tmp14_;
			if (g_strcmp0 (_tmp15_, "bernie h. innocenti") == 0) {
				FolksNameDetails* _tmp16_;
				FolksStructuredName* _tmp17_;
				FolksStructuredName* _tmp18_;
				gboolean _tmp19_ = FALSE;
				GeeHashMap* _tmp20_;
				gpointer _tmp21_ = NULL;
				GValue* _tmp22_;
				GValue _tmp23_;
				const gchar* _tmp24_ = NULL;
				gchar* _tmp25_;
				FolksNameDetails* _tmp26_;
				const gchar* _tmp27_;
				const gchar* _tmp28_;
				const gchar* _tmp29_;
				GeeHashMap* _tmp30_;
				GeeHashMap* _tmp31_;
				gpointer _tmp32_ = NULL;
				GValue* _tmp33_;
				GValue _tmp34_;
				const gchar* _tmp35_ = NULL;
				gchar* _tmp36_;
				FolksNameDetails* _tmp37_;
				const gchar* _tmp38_;
				const gchar* _tmp39_;
				const gchar* _tmp40_;
				GeeHashMap* _tmp41_;
				GeeHashMap* _tmp42_;
				gpointer _tmp43_ = NULL;
				GValue* _tmp44_;
				GValue _tmp45_;
				const gchar* _tmp46_ = NULL;
				gchar* _tmp47_;
				FolksNameDetails* _tmp48_;
				FolksStructuredName* _tmp49_;
				FolksStructuredName* _tmp50_;
				const gchar* _tmp51_;
				const gchar* _tmp52_;
				const gchar* _tmp53_;
				GeeHashMap* _tmp54_;
				GeeHashMap* _tmp55_;
				gpointer _tmp56_ = NULL;
				GValue* _tmp57_;
				GValue _tmp58_;
				const gchar* _tmp59_ = NULL;
				gchar* _tmp60_;
				FolksNameDetails* _tmp61_;
				FolksStructuredName* _tmp62_;
				FolksStructuredName* _tmp63_;
				const gchar* _tmp64_;
				const gchar* _tmp65_;
				const gchar* _tmp66_;
				GeeHashMap* _tmp67_;
				GeeHashMap* _tmp68_;
				gpointer _tmp69_ = NULL;
				GValue* _tmp70_;
				GValue _tmp71_;
				const gchar* _tmp72_ = NULL;
				gchar* _tmp73_;
				FolksNameDetails* _tmp74_;
				FolksStructuredName* _tmp75_;
				FolksStructuredName* _tmp76_;
				const gchar* _tmp77_;
				const gchar* _tmp78_;
				const gchar* _tmp79_;
				GeeHashMap* _tmp80_;
				GeeHashMap* _tmp81_;
				gpointer _tmp82_ = NULL;
				GValue* _tmp83_;
				GValue _tmp84_;
				const gchar* _tmp85_ = NULL;
				gchar* _tmp86_;
				FolksNameDetails* _tmp87_;
				FolksStructuredName* _tmp88_;
				FolksStructuredName* _tmp89_;
				const gchar* _tmp90_;
				const gchar* _tmp91_;
				const gchar* _tmp92_;
				GeeHashMap* _tmp93_;
				GeeHashMap* _tmp94_;
				gpointer _tmp95_ = NULL;
				GValue* _tmp96_;
				GValue _tmp97_;
				const gchar* _tmp98_ = NULL;
				gchar* _tmp99_;
				FolksNameDetails* _tmp100_;
				FolksStructuredName* _tmp101_;
				FolksStructuredName* _tmp102_;
				const gchar* _tmp103_;
				const gchar* _tmp104_;
				const gchar* _tmp105_;
				GeeHashMap* _tmp106_;
				_tmp16_ = name;
				_tmp17_ = folks_name_details_get_structured_name (_tmp16_);
				_tmp18_ = _tmp17_;
				_tmp19_ = folks_structured_name_is_empty (_tmp18_);
				g_assert (_tmp19_ == FALSE);
				_tmp20_ = self->priv->_c1;
				_tmp21_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp20_, "full_name");
				_tmp22_ = (GValue*) _tmp21_;
				_tmp23_ = *_tmp22_;
				_tmp24_ = g_value_get_string (&_tmp23_);
				_tmp25_ = g_strdup (_tmp24_);
				_g_free0 (s);
				s = _tmp25_;
				__vala_GValue_free0 (_tmp22_);
				_tmp26_ = name;
				_tmp27_ = folks_name_details_get_full_name (_tmp26_);
				_tmp28_ = _tmp27_;
				_tmp29_ = s;
				g_assert (g_strcmp0 (_tmp28_, _tmp29_) == 0);
				_tmp30_ = self->priv->_c1;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp30_, "full_name", NULL);
				_tmp31_ = self->priv->_c1;
				_tmp32_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp31_, "nickname");
				_tmp33_ = (GValue*) _tmp32_;
				_tmp34_ = *_tmp33_;
				_tmp35_ = g_value_get_string (&_tmp34_);
				_tmp36_ = g_strdup (_tmp35_);
				_g_free0 (s);
				s = _tmp36_;
				__vala_GValue_free0 (_tmp33_);
				_tmp37_ = name;
				_tmp38_ = folks_name_details_get_nickname (_tmp37_);
				_tmp39_ = _tmp38_;
				_tmp40_ = s;
				g_assert (g_strcmp0 (_tmp39_, _tmp40_) == 0);
				_tmp41_ = self->priv->_c1;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp41_, "nickname", NULL);
				_tmp42_ = self->priv->_c1;
				_tmp43_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp42_, "contact_name_family");
				_tmp44_ = (GValue*) _tmp43_;
				_tmp45_ = *_tmp44_;
				_tmp46_ = g_value_get_string (&_tmp45_);
				_tmp47_ = g_strdup (_tmp46_);
				_g_free0 (s);
				s = _tmp47_;
				__vala_GValue_free0 (_tmp44_);
				_tmp48_ = name;
				_tmp49_ = folks_name_details_get_structured_name (_tmp48_);
				_tmp50_ = _tmp49_;
				_tmp51_ = folks_structured_name_get_family_name (_tmp50_);
				_tmp52_ = _tmp51_;
				_tmp53_ = s;
				g_assert (g_strcmp0 (_tmp52_, _tmp53_) == 0);
				_tmp54_ = self->priv->_c1;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp54_, "contact_name_family", NULL);
				_tmp55_ = self->priv->_c1;
				_tmp56_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp55_, "contact_name_given");
				_tmp57_ = (GValue*) _tmp56_;
				_tmp58_ = *_tmp57_;
				_tmp59_ = g_value_get_string (&_tmp58_);
				_tmp60_ = g_strdup (_tmp59_);
				_g_free0 (s);
				s = _tmp60_;
				__vala_GValue_free0 (_tmp57_);
				_tmp61_ = name;
				_tmp62_ = folks_name_details_get_structured_name (_tmp61_);
				_tmp63_ = _tmp62_;
				_tmp64_ = folks_structured_name_get_given_name (_tmp63_);
				_tmp65_ = _tmp64_;
				_tmp66_ = s;
				g_assert (g_strcmp0 (_tmp65_, _tmp66_) == 0);
				_tmp67_ = self->priv->_c1;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp67_, "contact_name_given", NULL);
				_tmp68_ = self->priv->_c1;
				_tmp69_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp68_, "contact_name_additional");
				_tmp70_ = (GValue*) _tmp69_;
				_tmp71_ = *_tmp70_;
				_tmp72_ = g_value_get_string (&_tmp71_);
				_tmp73_ = g_strdup (_tmp72_);
				_g_free0 (s);
				s = _tmp73_;
				__vala_GValue_free0 (_tmp70_);
				_tmp74_ = name;
				_tmp75_ = folks_name_details_get_structured_name (_tmp74_);
				_tmp76_ = _tmp75_;
				_tmp77_ = folks_structured_name_get_additional_names (_tmp76_);
				_tmp78_ = _tmp77_;
				_tmp79_ = s;
				g_assert (g_strcmp0 (_tmp78_, _tmp79_) == 0);
				_tmp80_ = self->priv->_c1;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp80_, "contact_name_additional", NULL);
				_tmp81_ = self->priv->_c1;
				_tmp82_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp81_, "contact_name_prefixes");
				_tmp83_ = (GValue*) _tmp82_;
				_tmp84_ = *_tmp83_;
				_tmp85_ = g_value_get_string (&_tmp84_);
				_tmp86_ = g_strdup (_tmp85_);
				_g_free0 (s);
				s = _tmp86_;
				__vala_GValue_free0 (_tmp83_);
				_tmp87_ = name;
				_tmp88_ = folks_name_details_get_structured_name (_tmp87_);
				_tmp89_ = _tmp88_;
				_tmp90_ = folks_structured_name_get_prefixes (_tmp89_);
				_tmp91_ = _tmp90_;
				_tmp92_ = s;
				g_assert (g_strcmp0 (_tmp91_, _tmp92_) == 0);
				_tmp93_ = self->priv->_c1;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp93_, "contact_name_prefixes", NULL);
				_tmp94_ = self->priv->_c1;
				_tmp95_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp94_, "contact_name_suffixes");
				_tmp96_ = (GValue*) _tmp95_;
				_tmp97_ = *_tmp96_;
				_tmp98_ = g_value_get_string (&_tmp97_);
				_tmp99_ = g_strdup (_tmp98_);
				_g_free0 (s);
				s = _tmp99_;
				__vala_GValue_free0 (_tmp96_);
				_tmp100_ = name;
				_tmp101_ = folks_name_details_get_structured_name (_tmp100_);
				_tmp102_ = _tmp101_;
				_tmp103_ = folks_structured_name_get_suffixes (_tmp102_);
				_tmp104_ = _tmp103_;
				_tmp105_ = s;
				g_assert (g_strcmp0 (_tmp104_, _tmp105_) == 0);
				_tmp106_ = self->priv->_c1;
				gee_abstract_map_unset ((GeeAbstractMap*) _tmp106_, "contact_name_suffixes", NULL);
			} else {
				FolksIndividual* _tmp107_;
				const gchar* _tmp108_;
				const gchar* _tmp109_;
				_tmp107_ = i;
				_tmp108_ = folks_name_details_get_full_name ((FolksNameDetails*) _tmp107_);
				_tmp109_ = _tmp108_;
				if (g_strcmp0 (_tmp109_, "richard m. stallman") == 0) {
					FolksNameDetails* _tmp110_;
					FolksStructuredName* _tmp111_;
					FolksStructuredName* _tmp112_;
					gboolean _tmp113_ = FALSE;
					GeeHashMap* _tmp114_;
					gpointer _tmp115_ = NULL;
					GValue* _tmp116_;
					GValue _tmp117_;
					const gchar* _tmp118_ = NULL;
					gchar* _tmp119_;
					FolksNameDetails* _tmp120_;
					const gchar* _tmp121_;
					const gchar* _tmp122_;
					const gchar* _tmp123_;
					GeeHashMap* _tmp124_;
					GeeHashMap* _tmp125_;
					gpointer _tmp126_ = NULL;
					GValue* _tmp127_;
					GValue _tmp128_;
					const gchar* _tmp129_ = NULL;
					gchar* _tmp130_;
					FolksNameDetails* _tmp131_;
					FolksStructuredName* _tmp132_;
					FolksStructuredName* _tmp133_;
					const gchar* _tmp134_;
					const gchar* _tmp135_;
					const gchar* _tmp136_;
					GeeHashMap* _tmp137_;
					GeeHashMap* _tmp138_;
					gpointer _tmp139_ = NULL;
					GValue* _tmp140_;
					GValue _tmp141_;
					const gchar* _tmp142_ = NULL;
					gchar* _tmp143_;
					FolksNameDetails* _tmp144_;
					FolksStructuredName* _tmp145_;
					FolksStructuredName* _tmp146_;
					const gchar* _tmp147_;
					const gchar* _tmp148_;
					const gchar* _tmp149_;
					GeeHashMap* _tmp150_;
					_tmp110_ = name;
					_tmp111_ = folks_name_details_get_structured_name (_tmp110_);
					_tmp112_ = _tmp111_;
					_tmp113_ = folks_structured_name_is_empty (_tmp112_);
					g_assert (_tmp113_ == FALSE);
					_tmp114_ = self->priv->_c2;
					_tmp115_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp114_, "full_name");
					_tmp116_ = (GValue*) _tmp115_;
					_tmp117_ = *_tmp116_;
					_tmp118_ = g_value_get_string (&_tmp117_);
					_tmp119_ = g_strdup (_tmp118_);
					_g_free0 (s);
					s = _tmp119_;
					__vala_GValue_free0 (_tmp116_);
					_tmp120_ = name;
					_tmp121_ = folks_name_details_get_full_name (_tmp120_);
					_tmp122_ = _tmp121_;
					_tmp123_ = s;
					g_assert (g_strcmp0 (_tmp122_, _tmp123_) == 0);
					_tmp124_ = self->priv->_c2;
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp124_, "full_name", NULL);
					_tmp125_ = self->priv->_c2;
					_tmp126_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp125_, "contact_name_family");
					_tmp127_ = (GValue*) _tmp126_;
					_tmp128_ = *_tmp127_;
					_tmp129_ = g_value_get_string (&_tmp128_);
					_tmp130_ = g_strdup (_tmp129_);
					_g_free0 (s);
					s = _tmp130_;
					__vala_GValue_free0 (_tmp127_);
					_tmp131_ = name;
					_tmp132_ = folks_name_details_get_structured_name (_tmp131_);
					_tmp133_ = _tmp132_;
					_tmp134_ = folks_structured_name_get_family_name (_tmp133_);
					_tmp135_ = _tmp134_;
					_tmp136_ = s;
					g_assert (g_strcmp0 (_tmp135_, _tmp136_) == 0);
					_tmp137_ = self->priv->_c2;
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp137_, "contact_name_family", NULL);
					_tmp138_ = self->priv->_c2;
					_tmp139_ = gee_abstract_map_get ((GeeAbstractMap*) _tmp138_, "contact_name_given");
					_tmp140_ = (GValue*) _tmp139_;
					_tmp141_ = *_tmp140_;
					_tmp142_ = g_value_get_string (&_tmp141_);
					_tmp143_ = g_strdup (_tmp142_);
					_g_free0 (s);
					s = _tmp143_;
					__vala_GValue_free0 (_tmp140_);
					_tmp144_ = name;
					_tmp145_ = folks_name_details_get_structured_name (_tmp144_);
					_tmp146_ = _tmp145_;
					_tmp147_ = folks_structured_name_get_given_name (_tmp146_);
					_tmp148_ = _tmp147_;
					_tmp149_ = s;
					g_assert (g_strcmp0 (_tmp148_, _tmp149_) == 0);
					_tmp150_ = self->priv->_c2;
					gee_abstract_map_unset ((GeeAbstractMap*) _tmp150_, "contact_name_given", NULL);
				}
			}
			_tmp151_ = self->priv->_names_count;
			self->priv->_names_count = _tmp151_ + 1;
			_g_object_unref0 (name);
			_g_free0 (s);
			_g_object_unref0 (i);
		}
		_g_object_unref0 (_i_it);
	}
	_tmp152_ = removed;
	_tmp153_ = gee_collection_get_size ((GeeCollection*) _tmp152_);
	_tmp154_ = _tmp153_;
	g_assert (_tmp154_ == 0);
	_tmp156_ = self->priv->_c1;
	_tmp157_ = gee_map_get_size ((GeeMap*) _tmp156_);
	_tmp158_ = _tmp157_;
	if (_tmp158_ == 0) {
		GeeHashMap* _tmp159_;
		gint _tmp160_;
		gint _tmp161_;
		_tmp159_ = self->priv->_c2;
		_tmp160_ = gee_map_get_size ((GeeMap*) _tmp159_);
		_tmp161_ = _tmp160_;
		_tmp155_ = _tmp161_ == 0;
	} else {
		_tmp155_ = FALSE;
	}
	_tmp162_ = _tmp155_;
	if (_tmp162_) {
		GMainLoop* _tmp163_;
		_tmp163_ = self->priv->_main_loop;
		g_main_loop_quit (_tmp163_);
	}
}


static void name_details_tests_class_init (NameDetailsTestsClass * klass) {
	name_details_tests_parent_class = g_type_class_peek_parent (klass);
	g_type_class_add_private (klass, sizeof (NameDetailsTestsPrivate));
	FOLKS_TEST_CASE_CLASS (klass)->set_up = name_details_tests_real_set_up;
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = name_details_tests_real_tear_down;
	G_OBJECT_CLASS (klass)->finalize = name_details_tests_finalize;
}


static void name_details_tests_instance_init (NameDetailsTests * self) {
	self->priv = NAME_DETAILS_TESTS_GET_PRIVATE (self);
}


static void name_details_tests_finalize (GObject* obj) {
	NameDetailsTests * self;
	self = NAME_DETAILS_TESTS (obj);
	_eds_test_backend_unref0 (self->priv->_eds_backend);
	_g_main_loop_unref0 (self->priv->_main_loop);
	_g_object_unref0 (self->priv->_aggregator);
	_g_object_unref0 (self->priv->_c1);
	_g_object_unref0 (self->priv->_c2);
	G_OBJECT_CLASS (name_details_tests_parent_class)->finalize (obj);
}


GType name_details_tests_get_type (void) {
	static volatile gsize name_details_tests_type_id__volatile = 0;
	if (g_once_init_enter (&name_details_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (NameDetailsTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) name_details_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (NameDetailsTests), 0, (GInstanceInitFunc) name_details_tests_instance_init, NULL };
		GType name_details_tests_type_id;
		name_details_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "NameDetailsTests", &g_define_type_info, 0);
		g_once_init_leave (&name_details_tests_type_id__volatile, name_details_tests_type_id);
	}
	return name_details_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	GTestSuite* _tmp1_;
	NameDetailsTests* _tmp2_;
	NameDetailsTests* _tmp3_;
	GTestSuite* _tmp4_ = NULL;
	g_test_init (&args_length1, &args, NULL);
	_tmp0_ = g_test_get_root ();
	root = _tmp0_;
	_tmp1_ = root;
	_tmp2_ = name_details_tests_new ();
	_tmp3_ = _tmp2_;
	_tmp4_ = folks_test_case_get_suite ((FolksTestCase*) _tmp3_);
	g_test_suite_add_suite (_tmp1_, _tmp4_);
	_g_object_unref0 (_tmp3_);
	g_test_run ();
	result = 0;
	return result;
}


int main (int argc, char ** argv) {
	g_type_init ();
	return _vala_main (argv, argc);
}



