/* tests-basic.c generated by valac 0.12.1.1-323029-dirty, the Vala compiler
 * generated from tests-basic.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <afrodite.h>
#include <valagee.h>
#include <gobject/gvaluecollector.h>


#define AFRODITE_TESTS_TYPE_BASIC (afrodite_tests_basic_get_type ())
#define AFRODITE_TESTS_BASIC(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AFRODITE_TESTS_TYPE_BASIC, AfroditeTestsBasic))
#define AFRODITE_TESTS_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AFRODITE_TESTS_TYPE_BASIC, AfroditeTestsBasicClass))
#define AFRODITE_TESTS_IS_BASIC(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AFRODITE_TESTS_TYPE_BASIC))
#define AFRODITE_TESTS_IS_BASIC_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AFRODITE_TESTS_TYPE_BASIC))
#define AFRODITE_TESTS_BASIC_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AFRODITE_TESTS_TYPE_BASIC, AfroditeTestsBasicClass))

typedef struct _AfroditeTestsBasic AfroditeTestsBasic;
typedef struct _AfroditeTestsBasicClass AfroditeTestsBasicClass;
typedef struct _AfroditeTestsBasicPrivate AfroditeTestsBasicPrivate;

#define AFRODITE_TESTS_TYPE_COMPLETION_MANAGER (afrodite_tests_completion_manager_get_type ())
#define AFRODITE_TESTS_COMPLETION_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER, AfroditeTestsCompletionManager))
#define AFRODITE_TESTS_COMPLETION_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER, AfroditeTestsCompletionManagerClass))
#define AFRODITE_TESTS_IS_COMPLETION_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER))
#define AFRODITE_TESTS_IS_COMPLETION_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER))
#define AFRODITE_TESTS_COMPLETION_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AFRODITE_TESTS_TYPE_COMPLETION_MANAGER, AfroditeTestsCompletionManagerClass))

typedef struct _AfroditeTestsCompletionManager AfroditeTestsCompletionManager;
typedef struct _AfroditeTestsCompletionManagerClass AfroditeTestsCompletionManagerClass;
#define _afrodite_result_item_unref0(var) ((var == NULL) ? NULL : (var = (afrodite_result_item_unref (var), NULL)))
#define _afrodite_query_result_unref0(var) ((var == NULL) ? NULL : (var = (afrodite_query_result_unref (var), NULL)))
#define _afrodite_tests_completion_manager_unref0(var) ((var == NULL) ? NULL : (var = (afrodite_tests_completion_manager_unref (var), NULL)))
typedef struct _AfroditeTestsParamSpecBasic AfroditeTestsParamSpecBasic;

struct _AfroditeTestsBasic {
	GTypeInstance parent_instance;
	volatile int ref_count;
	AfroditeTestsBasicPrivate * priv;
};

struct _AfroditeTestsBasicClass {
	GTypeClass parent_class;
	void (*finalize) (AfroditeTestsBasic *self);
};

struct _AfroditeTestsParamSpecBasic {
	GParamSpec parent_instance;
};


static gpointer afrodite_tests_basic_parent_class = NULL;
static AfroditeTestsCompletionManager* afrodite_tests_basic__manager;
static AfroditeTestsCompletionManager* afrodite_tests_basic__manager = NULL;

gpointer afrodite_tests_basic_ref (gpointer instance);
void afrodite_tests_basic_unref (gpointer instance);
GParamSpec* afrodite_tests_param_spec_basic (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void afrodite_tests_value_set_basic (GValue* value, gpointer v_object);
void afrodite_tests_value_take_basic (GValue* value, gpointer v_object);
gpointer afrodite_tests_value_get_basic (const GValue* value);
GType afrodite_tests_basic_get_type (void) G_GNUC_CONST;
enum  {
	AFRODITE_TESTS_BASIC_DUMMY_PROPERTY
};
gpointer afrodite_tests_completion_manager_ref (gpointer instance);
void afrodite_tests_completion_manager_unref (gpointer instance);
GParamSpec* afrodite_tests_param_spec_completion_manager (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void afrodite_tests_value_set_completion_manager (GValue* value, gpointer v_object);
void afrodite_tests_value_take_completion_manager (GValue* value, gpointer v_object);
gpointer afrodite_tests_value_get_completion_manager (const GValue* value);
GType afrodite_tests_completion_manager_get_type (void) G_GNUC_CONST;
void afrodite_tests_basic_test_this_field_string (void);
AfroditeQueryResult* afrodite_tests_completion_manager_lookup_symbol (AfroditeTestsCompletionManager* self, const gchar* name, gint at_line, gint at_column);
void afrodite_tests_basic_test_this_property_string (void);
void afrodite_tests_basic_test_this_method_invocation_int (void);
void afrodite_tests_basic_test_member_access_string (void);
void afrodite_tests_basic_test_static_factory_Test (void);
void afrodite_tests_basic_test_static_method_param_string (void);
void afrodite_tests_basic_test_method_array_param_int (void);
void afrodite_tests_basic_test_method_param_int (void);
void afrodite_tests_basic_test_foreach_iterator_param_int (void);
gint afrodite_tests_basic_main (gchar** args, int args_length1);
static void _afrodite_tests_basic_test_this_field_string_gcallback (void);
static void _afrodite_tests_basic_test_this_property_string_gcallback (void);
static void _afrodite_tests_basic_test_this_method_invocation_int_gcallback (void);
static void _afrodite_tests_basic_test_member_access_string_gcallback (void);
static void _afrodite_tests_basic_test_static_factory_Test_gcallback (void);
static void _afrodite_tests_basic_test_static_method_param_string_gcallback (void);
static void _afrodite_tests_basic_test_method_array_param_int_gcallback (void);
static void _afrodite_tests_basic_test_method_param_int_gcallback (void);
static void _afrodite_tests_basic_test_foreach_iterator_param_int_gcallback (void);
AfroditeTestsCompletionManager* afrodite_tests_completion_manager_new (const gchar* filename, gboolean absolute);
AfroditeTestsCompletionManager* afrodite_tests_completion_manager_construct (GType object_type, const gchar* filename, gboolean absolute);
void afrodite_tests_completion_manager_parse (AfroditeTestsCompletionManager* self);
AfroditeTestsBasic* afrodite_tests_basic_new (void);
AfroditeTestsBasic* afrodite_tests_basic_construct (GType object_type);
static void afrodite_tests_basic_finalize (AfroditeTestsBasic* obj);


void afrodite_tests_basic_test_this_field_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	AfroditeDataType* _tmp8_ = NULL;
	AfroditeSymbol* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_basic__manager, "this.field", 19, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_symbol_type (_tmp7_);
	_tmp9_ = afrodite_data_type_get_symbol (_tmp8_);
	_tmp10_ = afrodite_symbol_get_name (_tmp9_);
	g_assert_cmpstr (_tmp10_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_basic_test_this_property_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	AfroditeDataType* _tmp8_ = NULL;
	AfroditeSymbol* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_basic__manager, "this.property", 19, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_symbol_type (_tmp7_);
	_tmp9_ = afrodite_data_type_get_symbol (_tmp8_);
	_tmp10_ = afrodite_symbol_get_name (_tmp9_);
	g_assert_cmpstr (_tmp10_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_basic_test_this_method_invocation_int (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	AfroditeDataType* _tmp8_ = NULL;
	AfroditeSymbol* _tmp9_ = NULL;
	const gchar* _tmp10_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_basic__manager, "this.do_computation", 19, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_symbol_type (_tmp7_);
	_tmp9_ = afrodite_data_type_get_symbol (_tmp8_);
	_tmp10_ = afrodite_symbol_get_name (_tmp9_);
	g_assert_cmpstr (_tmp10_, ==, "int");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_basic_test_member_access_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_basic__manager, "member_access_str", 45, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_basic_test_static_factory_Test (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_basic__manager, "test", 45, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "Test");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_basic_test_static_method_param_string (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_basic__manager, "param_str", 38, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "string");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_basic_test_method_array_param_int (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_basic__manager, "array_param_int", 28, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "int");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_basic_test_method_param_int (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_basic__manager, "result", 28, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "int");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


void afrodite_tests_basic_test_foreach_iterator_param_int (void) {
	AfroditeQueryResult* _tmp0_ = NULL;
	AfroditeQueryResult* s;
	gboolean _tmp1_;
	ValaList* _tmp2_ = NULL;
	gint _tmp3_;
	ValaList* _tmp4_ = NULL;
	gpointer _tmp5_ = NULL;
	AfroditeResultItem* _tmp6_;
	AfroditeSymbol* _tmp7_ = NULL;
	const gchar* _tmp8_ = NULL;
	_tmp0_ = afrodite_tests_completion_manager_lookup_symbol (afrodite_tests_basic__manager, "param_int", 31, 1);
	s = _tmp0_;
	_tmp1_ = afrodite_query_result_get_is_empty (s);
	g_assert (_tmp1_ == FALSE);
	_tmp2_ = afrodite_query_result_get_children (s);
	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
	g_assert_cmpint (_tmp3_, ==, 1);
	_tmp4_ = afrodite_query_result_get_children (s);
	_tmp5_ = vala_list_get (_tmp4_, 0);
	_tmp6_ = (AfroditeResultItem*) _tmp5_;
	_tmp7_ = afrodite_result_item_get_symbol (_tmp6_);
	_tmp8_ = afrodite_symbol_get_name (_tmp7_);
	g_assert_cmpstr (_tmp8_, ==, "int");
	_afrodite_result_item_unref0 (_tmp6_);
	_afrodite_query_result_unref0 (s);
}


static void _afrodite_tests_basic_test_this_field_string_gcallback (void) {
	afrodite_tests_basic_test_this_field_string ();
}


static void _afrodite_tests_basic_test_this_property_string_gcallback (void) {
	afrodite_tests_basic_test_this_property_string ();
}


static void _afrodite_tests_basic_test_this_method_invocation_int_gcallback (void) {
	afrodite_tests_basic_test_this_method_invocation_int ();
}


static void _afrodite_tests_basic_test_member_access_string_gcallback (void) {
	afrodite_tests_basic_test_member_access_string ();
}


static void _afrodite_tests_basic_test_static_factory_Test_gcallback (void) {
	afrodite_tests_basic_test_static_factory_Test ();
}


static void _afrodite_tests_basic_test_static_method_param_string_gcallback (void) {
	afrodite_tests_basic_test_static_method_param_string ();
}


static void _afrodite_tests_basic_test_method_array_param_int_gcallback (void) {
	afrodite_tests_basic_test_method_array_param_int ();
}


static void _afrodite_tests_basic_test_method_param_int_gcallback (void) {
	afrodite_tests_basic_test_method_param_int ();
}


static void _afrodite_tests_basic_test_foreach_iterator_param_int_gcallback (void) {
	afrodite_tests_basic_test_foreach_iterator_param_int ();
}


gint afrodite_tests_basic_main (gchar** args, int args_length1) {
	gint result = 0;
	AfroditeTestsCompletionManager* _tmp0_ = NULL;
	gint _tmp1_;
	g_test_init (&args_length1, &args, NULL);
	g_test_add_func ("/afrodite/basic-test-this-field-string", _afrodite_tests_basic_test_this_field_string_gcallback);
	g_test_add_func ("/afrodite/basic-test-this-property-string", _afrodite_tests_basic_test_this_property_string_gcallback);
	g_test_add_func ("/afrodite/basic-test-this-method-invocation-int", _afrodite_tests_basic_test_this_method_invocation_int_gcallback);
	g_test_add_func ("/afrodite/basic-test-member-access-string", _afrodite_tests_basic_test_member_access_string_gcallback);
	g_test_add_func ("/afrodite/basic-test-static-factory-Test", _afrodite_tests_basic_test_static_factory_Test_gcallback);
	g_test_add_func ("/afrodite/basic-test-static-method-param-string", _afrodite_tests_basic_test_static_method_param_string_gcallback);
	g_test_add_func ("/afrodite/basic-test-method-array-param-int", _afrodite_tests_basic_test_method_array_param_int_gcallback);
	g_test_add_func ("/afrodite/basic-test-method-param-int", _afrodite_tests_basic_test_method_param_int_gcallback);
	g_test_add_func ("/afrodite/basic-test-foreach-iterator-param-int", _afrodite_tests_basic_test_foreach_iterator_param_int_gcallback);
	_tmp0_ = afrodite_tests_completion_manager_new ("tests-basic-source.vala", FALSE);
	_afrodite_tests_completion_manager_unref0 (afrodite_tests_basic__manager);
	afrodite_tests_basic__manager = _tmp0_;
	afrodite_tests_completion_manager_parse (afrodite_tests_basic__manager);
	_tmp1_ = g_test_run ();
	result = _tmp1_;
	return result;
}


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


AfroditeTestsBasic* afrodite_tests_basic_construct (GType object_type) {
	AfroditeTestsBasic* self = NULL;
	self = (AfroditeTestsBasic*) g_type_create_instance (object_type);
	return self;
}


AfroditeTestsBasic* afrodite_tests_basic_new (void) {
	return afrodite_tests_basic_construct (AFRODITE_TESTS_TYPE_BASIC);
}


static void afrodite_tests_value_basic_init (GValue* value) {
	value->data[0].v_pointer = NULL;
}


static void afrodite_tests_value_basic_free_value (GValue* value) {
	if (value->data[0].v_pointer) {
		afrodite_tests_basic_unref (value->data[0].v_pointer);
	}
}


static void afrodite_tests_value_basic_copy_value (const GValue* src_value, GValue* dest_value) {
	if (src_value->data[0].v_pointer) {
		dest_value->data[0].v_pointer = afrodite_tests_basic_ref (src_value->data[0].v_pointer);
	} else {
		dest_value->data[0].v_pointer = NULL;
	}
}


static gpointer afrodite_tests_value_basic_peek_pointer (const GValue* value) {
	return value->data[0].v_pointer;
}


static gchar* afrodite_tests_value_basic_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	if (collect_values[0].v_pointer) {
		AfroditeTestsBasic* object;
		object = collect_values[0].v_pointer;
		if (object->parent_instance.g_class == NULL) {
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
		}
		value->data[0].v_pointer = afrodite_tests_basic_ref (object);
	} else {
		value->data[0].v_pointer = NULL;
	}
	return NULL;
}


static gchar* afrodite_tests_value_basic_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	AfroditeTestsBasic** object_p;
	object_p = collect_values[0].v_pointer;
	if (!object_p) {
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
	}
	if (!value->data[0].v_pointer) {
		*object_p = NULL;
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
		*object_p = value->data[0].v_pointer;
	} else {
		*object_p = afrodite_tests_basic_ref (value->data[0].v_pointer);
	}
	return NULL;
}


GParamSpec* afrodite_tests_param_spec_basic (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	AfroditeTestsParamSpecBasic* spec;
	g_return_val_if_fail (g_type_is_a (object_type, AFRODITE_TESTS_TYPE_BASIC), NULL);
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
	G_PARAM_SPEC (spec)->value_type = object_type;
	return G_PARAM_SPEC (spec);
}


gpointer afrodite_tests_value_get_basic (const GValue* value) {
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, AFRODITE_TESTS_TYPE_BASIC), NULL);
	return value->data[0].v_pointer;
}


void afrodite_tests_value_set_basic (GValue* value, gpointer v_object) {
	AfroditeTestsBasic* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, AFRODITE_TESTS_TYPE_BASIC));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, AFRODITE_TESTS_TYPE_BASIC));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
		afrodite_tests_basic_ref (value->data[0].v_pointer);
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		afrodite_tests_basic_unref (old);
	}
}


void afrodite_tests_value_take_basic (GValue* value, gpointer v_object) {
	AfroditeTestsBasic* old;
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, AFRODITE_TESTS_TYPE_BASIC));
	old = value->data[0].v_pointer;
	if (v_object) {
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, AFRODITE_TESTS_TYPE_BASIC));
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
		value->data[0].v_pointer = v_object;
	} else {
		value->data[0].v_pointer = NULL;
	}
	if (old) {
		afrodite_tests_basic_unref (old);
	}
}


static void afrodite_tests_basic_class_init (AfroditeTestsBasicClass * klass) {
	afrodite_tests_basic_parent_class = g_type_class_peek_parent (klass);
	AFRODITE_TESTS_BASIC_CLASS (klass)->finalize = afrodite_tests_basic_finalize;
}


static void afrodite_tests_basic_instance_init (AfroditeTestsBasic * self) {
	self->ref_count = 1;
}


static void afrodite_tests_basic_finalize (AfroditeTestsBasic* obj) {
	AfroditeTestsBasic * self;
	self = AFRODITE_TESTS_BASIC (obj);
}


GType afrodite_tests_basic_get_type (void) {
	static volatile gsize afrodite_tests_basic_type_id__volatile = 0;
	if (g_once_init_enter (&afrodite_tests_basic_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { afrodite_tests_value_basic_init, afrodite_tests_value_basic_free_value, afrodite_tests_value_basic_copy_value, afrodite_tests_value_basic_peek_pointer, "p", afrodite_tests_value_basic_collect_value, "p", afrodite_tests_value_basic_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (AfroditeTestsBasicClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) afrodite_tests_basic_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (AfroditeTestsBasic), 0, (GInstanceInitFunc) afrodite_tests_basic_instance_init, &g_define_type_value_table };
		static const GTypeFundamentalInfo g_define_type_fundamental_info = { (G_TYPE_FLAG_CLASSED | G_TYPE_FLAG_INSTANTIATABLE | G_TYPE_FLAG_DERIVABLE | G_TYPE_FLAG_DEEP_DERIVABLE) };
		GType afrodite_tests_basic_type_id;
		afrodite_tests_basic_type_id = g_type_register_fundamental (g_type_fundamental_next (), "AfroditeTestsBasic", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&afrodite_tests_basic_type_id__volatile, afrodite_tests_basic_type_id);
	}
	return afrodite_tests_basic_type_id__volatile;
}


gpointer afrodite_tests_basic_ref (gpointer instance) {
	AfroditeTestsBasic* self;
	self = instance;
	g_atomic_int_inc (&self->ref_count);
	return instance;
}


void afrodite_tests_basic_unref (gpointer instance) {
	AfroditeTestsBasic* self;
	self = instance;
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
		AFRODITE_TESTS_BASIC_GET_CLASS (self)->finalize (self);
		g_type_free_instance ((GTypeInstance *) self);
	}
}



