/* object-cache.c generated by valac 0.13.4, the Vala compiler
 * generated from object-cache.vala, do not modify */


#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <folks/folks.h>
#include <folks-test.h>
#include <gio/gio.h>
#include <gee.h>
#include <float.h>
#include <math.h>
#include <gobject/gvaluecollector.h>


#define TYPE_TEST_OBJECT (test_object_get_type ())
#define TEST_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEST_OBJECT, TestObject))
#define TEST_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEST_OBJECT, TestObjectClass))
#define IS_TEST_OBJECT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEST_OBJECT))
#define IS_TEST_OBJECT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEST_OBJECT))
#define TEST_OBJECT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEST_OBJECT, TestObjectClass))

typedef struct _TestObject TestObject;
typedef struct _TestObjectClass TestObjectClass;
typedef struct _TestObjectPrivate TestObjectPrivate;
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _ParamSpecTestObject ParamSpecTestObject;

#define TYPE_TEST_CACHE (test_cache_get_type ())
#define TEST_CACHE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_TEST_CACHE, TestCache))
#define TEST_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_TEST_CACHE, TestCacheClass))
#define IS_TEST_CACHE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_TEST_CACHE))
#define IS_TEST_CACHE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_TEST_CACHE))
#define TEST_CACHE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_TEST_CACHE, TestCacheClass))

typedef struct _TestCache TestCache;
typedef struct _TestCacheClass TestCacheClass;
typedef struct _TestCachePrivate TestCachePrivate;
#define _g_variant_unref0(var) ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))

#define TYPE_OBJECT_CACHE_TESTS (object_cache_tests_get_type ())
#define OBJECT_CACHE_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_OBJECT_CACHE_TESTS, ObjectCacheTests))
#define OBJECT_CACHE_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_OBJECT_CACHE_TESTS, ObjectCacheTestsClass))
#define IS_OBJECT_CACHE_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_OBJECT_CACHE_TESTS))
#define IS_OBJECT_CACHE_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_OBJECT_CACHE_TESTS))
#define OBJECT_CACHE_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_OBJECT_CACHE_TESTS, ObjectCacheTestsClass))

typedef struct _ObjectCacheTests ObjectCacheTests;
typedef struct _ObjectCacheTestsClass ObjectCacheTestsClass;
typedef struct _ObjectCacheTestsPrivate ObjectCacheTestsPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
typedef struct _Block1Data Block1Data;
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _test_object_unref0(var) ((var == NULL) ? NULL : (var = (test_object_unref (var), NULL)))
typedef struct _Block2Data Block2Data;
typedef struct _Block3Data Block3Data;
typedef struct _Block4Data Block4Data;
typedef struct _Block5Data Block5Data;
typedef struct _Block6Data Block6Data;
typedef struct _Block7Data Block7Data;
typedef struct _Block8Data Block8Data;
typedef struct _Block9Data Block9Data;
typedef struct _Block10Data Block10Data;
typedef struct _Block11Data Block11Data;

struct _TestObject {
	GTypeInstance parent_instance;
	volatile int ref_count;
	TestObjectPrivate * priv;
};

struct _TestObjectClass {
	GTypeClass parent_class;
	void (*finalize) (TestObject *self);
};

struct _TestObjectPrivate {
	gchar* _my_string;
	guint _my_int;
};

struct _ParamSpecTestObject {
	GParamSpec parent_instance;
};

struct _TestCache {
	FolksObjectCache parent_instance;
	TestCachePrivate * priv;
};

struct _TestCacheClass {
	FolksObjectCacheClass parent_class;
};

struct _ObjectCacheTests {
	FolksTestCase parent_instance;
	ObjectCacheTestsPrivate * priv;
};

struct _ObjectCacheTestsClass {
	FolksTestCaseClass parent_class;
};

struct _ObjectCacheTestsPrivate {
	GFile* _cache_dir;
};

struct _Block1Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
};

struct _Block2Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
};

struct _Block3Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
	GeeSet* new_obj_set;
};

struct _Block4Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
	GeeSet* new_obj_set;
};

struct _Block5Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
	GeeSet* new_obj_set;
};

struct _Block6Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
	GeeSet* new_obj_set;
};

struct _Block7Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
	GeeSet* new_obj_set;
};

struct _Block8Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
	GeeSet* new_obj_set;
};

struct _Block9Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
	GeeSet* new_obj_set;
};

struct _Block10Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
	GeeSet* new_obj_set;
};

struct _Block11Data {
	int _ref_count_;
	ObjectCacheTests * self;
	GMainLoop* main_loop;
	TestCache* cache;
	gint obj_count;
	GeeSet* new_obj_set;
};


static gpointer test_object_parent_class = NULL;
static gpointer test_cache_parent_class = NULL;
static gpointer object_cache_tests_parent_class = NULL;

gpointer test_object_ref (gpointer instance);
void test_object_unref (gpointer instance);
GParamSpec* param_spec_test_object (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void value_set_test_object (GValue* value, gpointer v_object);
void value_take_test_object (GValue* value, gpointer v_object);
gpointer value_get_test_object (const GValue* value);
GType test_object_get_type (void) G_GNUC_CONST;
#define TEST_OBJECT_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_TEST_OBJECT, TestObjectPrivate))
enum  {
	TEST_OBJECT_DUMMY_PROPERTY
};
TestObject* test_object_new (const gchar* my_string, guint my_int);
TestObject* test_object_construct (GType object_type, const gchar* my_string, guint my_int);
void test_object_set_my_string (TestObject* self, const gchar* value);
void test_object_set_my_int (TestObject* self, guint value);
const gchar* test_object_get_my_string (TestObject* self);
guint test_object_get_my_int (TestObject* self);
static void test_object_finalize (TestObject* obj);
GType test_cache_get_type (void) G_GNUC_CONST;
enum  {
	TEST_CACHE_DUMMY_PROPERTY
};
TestCache* test_cache_new (const gchar* id);
TestCache* test_cache_construct (GType object_type, const gchar* id);
static GVariantType* test_cache_real_get_serialised_object_type (FolksObjectCache* base);
static guint8 test_cache_real_get_serialised_object_version (FolksObjectCache* base);
static GVariant* test_cache_real_serialise_object (FolksObjectCache* base, TestObject* obj);
static TestObject* test_cache_real_deserialise_object (FolksObjectCache* base, GVariant* variant);
GType object_cache_tests_get_type (void) G_GNUC_CONST;
#define OBJECT_CACHE_TESTS_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), TYPE_OBJECT_CACHE_TESTS, ObjectCacheTestsPrivate))
enum  {
	OBJECT_CACHE_TESTS_DUMMY_PROPERTY
};
ObjectCacheTests* object_cache_tests_new (void);
ObjectCacheTests* object_cache_tests_construct (GType object_type);
void object_cache_tests_test_create (ObjectCacheTests* self);
static void _object_cache_tests_test_create_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_store_objects (ObjectCacheTests* self);
static void _object_cache_tests_test_store_objects_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_store_objects_empty (ObjectCacheTests* self);
static void _object_cache_tests_test_store_objects_empty_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_load_objects (ObjectCacheTests* self);
static void _object_cache_tests_test_load_objects_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_load_objects_empty (ObjectCacheTests* self);
static void _object_cache_tests_test_load_objects_empty_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_load_objects_nonexistent (ObjectCacheTests* self);
static void _object_cache_tests_test_load_objects_nonexistent_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_clear (ObjectCacheTests* self);
static void _object_cache_tests_test_clear_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_clear_empty (ObjectCacheTests* self);
static void _object_cache_tests_test_clear_empty_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_clear_nonexistent (ObjectCacheTests* self);
static void _object_cache_tests_test_clear_nonexistent_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_store_objects_cancellation (ObjectCacheTests* self);
static void _object_cache_tests_test_store_objects_cancellation_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_load_objects_cancellation (ObjectCacheTests* self);
static void _object_cache_tests_test_load_objects_cancellation_folks_test_case_test_method (gpointer self);
void object_cache_tests_test_stress (ObjectCacheTests* self);
static void _object_cache_tests_test_stress_folks_test_case_test_method (gpointer self);
static void object_cache_tests_real_set_up (FolksTestCase* base);
void _object_cache_tests_delete_cache_directory (ObjectCacheTests* self);
static void object_cache_tests_real_tear_down (FolksTestCase* base);
void _object_cache_tests_delete_directory (ObjectCacheTests* self, GFile* dir, GError** error);
static Block1Data* block1_data_ref (Block1Data* _data1_);
static void block1_data_unref (Block1Data* _data1_);
static void __lambda0_ (Block1Data* _data1_, GObject* o, GAsyncResult* r);
static void ___lambda0__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block2Data* block2_data_ref (Block2Data* _data2_);
static void block2_data_unref (Block2Data* _data2_);
static void __lambda1_ (Block2Data* _data2_, GObject* o, GAsyncResult* r);
static void ___lambda1__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block3Data* block3_data_ref (Block3Data* _data3_);
static void block3_data_unref (Block3Data* _data3_);
static void __lambda2_ (Block3Data* _data3_, GObject* o, GAsyncResult* r);
static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda3_ (Block3Data* _data3_, GObject* o, GAsyncResult* r);
static void ___lambda3__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block4Data* block4_data_ref (Block4Data* _data4_);
static void block4_data_unref (Block4Data* _data4_);
static void __lambda4_ (Block4Data* _data4_, GObject* o, GAsyncResult* r);
static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda5_ (Block4Data* _data4_, GObject* o, GAsyncResult* r);
static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block5Data* block5_data_ref (Block5Data* _data5_);
static void block5_data_unref (Block5Data* _data5_);
static void __lambda6_ (Block5Data* _data5_, GObject* o, GAsyncResult* r);
static void ___lambda6__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block6Data* block6_data_ref (Block6Data* _data6_);
static void block6_data_unref (Block6Data* _data6_);
static void __lambda7_ (Block6Data* _data6_, GObject* o, GAsyncResult* r);
static void ___lambda7__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda8_ (Block6Data* _data6_, GObject* o, GAsyncResult* r);
static void ___lambda8__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda9_ (Block6Data* _data6_, GObject* o, GAsyncResult* r);
static void ___lambda9__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block7Data* block7_data_ref (Block7Data* _data7_);
static void block7_data_unref (Block7Data* _data7_);
static void __lambda10_ (Block7Data* _data7_, GObject* o, GAsyncResult* r);
static void ___lambda10__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda11_ (Block7Data* _data7_, GObject* o, GAsyncResult* r);
static void ___lambda11__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda12_ (Block7Data* _data7_, GObject* o, GAsyncResult* r);
static void ___lambda12__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block8Data* block8_data_ref (Block8Data* _data8_);
static void block8_data_unref (Block8Data* _data8_);
static void __lambda13_ (Block8Data* _data8_, GObject* o, GAsyncResult* r);
static void ___lambda13__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda14_ (Block8Data* _data8_, GObject* o, GAsyncResult* r);
static void ___lambda14__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block9Data* block9_data_ref (Block9Data* _data9_);
static void block9_data_unref (Block9Data* _data9_);
static void __lambda15_ (Block9Data* _data9_, GObject* o, GAsyncResult* r);
static void ___lambda15__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda16_ (Block9Data* _data9_, GObject* o, GAsyncResult* r);
static void ___lambda16__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block10Data* block10_data_ref (Block10Data* _data10_);
static void block10_data_unref (Block10Data* _data10_);
static void __lambda17_ (Block10Data* _data10_, GObject* o, GAsyncResult* r);
static void ___lambda17__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda18_ (Block10Data* _data10_, GObject* o, GAsyncResult* r);
static void ___lambda18__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static Block11Data* block11_data_ref (Block11Data* _data11_);
static void block11_data_unref (Block11Data* _data11_);
static void __lambda19_ (Block11Data* _data11_, GObject* o, GAsyncResult* r);
static void ___lambda19__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void __lambda20_ (Block11Data* _data11_, GObject* o, GAsyncResult* r);
static void ___lambda20__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static void object_cache_tests_finalize (GObject* obj);
gint _vala_main (gchar** args, int args_length1);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


TestObject* test_object_construct (GType object_type, const gchar* my_string, guint my_int) {
	TestObject* self = NULL;
	const gchar* _tmp0_;
	guint _tmp1_;
#line 10 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_val_if_fail (my_string != NULL, NULL);
#line 10 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = (TestObject*) g_type_create_instance (object_type);
#line 12 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = my_string;
#line 12 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	test_object_set_my_string (self, _tmp0_);
#line 13 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = my_int;
#line 13 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	test_object_set_my_int (self, _tmp1_);
#line 10 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return self;
#line 355 "object-cache.c"
}


TestObject* test_object_new (const gchar* my_string, guint my_int) {
#line 10 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return test_object_construct (TYPE_TEST_OBJECT, my_string, my_int);
#line 362 "object-cache.c"
}


const gchar* test_object_get_my_string (TestObject* self) {
	const gchar* result;
	const gchar* _tmp0_;
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = self->priv->_my_string;
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	result = _tmp0_;
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return result;
#line 377 "object-cache.c"
}


void test_object_set_my_string (TestObject* self, const gchar* value) {
	const gchar* _tmp0_;
	gchar* _tmp1_;
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = value;
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_free0 (self->priv->_my_string);
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self->priv->_my_string = _tmp1_;
#line 394 "object-cache.c"
}


guint test_object_get_my_int (TestObject* self) {
	guint result;
	guint _tmp0_;
#line 8 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_val_if_fail (self != NULL, 0U);
#line 8 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = self->priv->_my_int;
#line 8 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	result = _tmp0_;
#line 8 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return result;
#line 409 "object-cache.c"
}


void test_object_set_my_int (TestObject* self, guint value) {
	guint _tmp0_;
#line 8 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 8 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = value;
#line 8 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self->priv->_my_int = _tmp0_;
#line 421 "object-cache.c"
}


static void value_test_object_init (GValue* value) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	value->data[0].v_pointer = NULL;
#line 428 "object-cache.c"
}


static void value_test_object_free_value (GValue* value) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (value->data[0].v_pointer) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		test_object_unref (value->data[0].v_pointer);
#line 437 "object-cache.c"
	}
}


static void value_test_object_copy_value (const GValue* src_value, GValue* dest_value) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (src_value->data[0].v_pointer) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		dest_value->data[0].v_pointer = test_object_ref (src_value->data[0].v_pointer);
#line 447 "object-cache.c"
	} else {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		dest_value->data[0].v_pointer = NULL;
#line 451 "object-cache.c"
	}
}


static gpointer value_test_object_peek_pointer (const GValue* value) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return value->data[0].v_pointer;
#line 459 "object-cache.c"
}


static gchar* value_test_object_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (collect_values[0].v_pointer) {
#line 466 "object-cache.c"
		TestObject* object;
		object = collect_values[0].v_pointer;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		if (object->parent_instance.g_class == NULL) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 473 "object-cache.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 477 "object-cache.c"
		}
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		value->data[0].v_pointer = test_object_ref (object);
#line 481 "object-cache.c"
	} else {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		value->data[0].v_pointer = NULL;
#line 485 "object-cache.c"
	}
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return NULL;
#line 489 "object-cache.c"
}


static gchar* value_test_object_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	TestObject** object_p;
	object_p = collect_values[0].v_pointer;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (!object_p) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 500 "object-cache.c"
	}
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (!value->data[0].v_pointer) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		*object_p = NULL;
#line 506 "object-cache.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		*object_p = value->data[0].v_pointer;
#line 510 "object-cache.c"
	} else {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		*object_p = test_object_ref (value->data[0].v_pointer);
#line 514 "object-cache.c"
	}
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return NULL;
#line 518 "object-cache.c"
}


GParamSpec* param_spec_test_object (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	ParamSpecTestObject* spec;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_val_if_fail (g_type_is_a (object_type, TYPE_TEST_OBJECT), NULL);
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return G_PARAM_SPEC (spec);
#line 532 "object-cache.c"
}


gpointer value_get_test_object (const GValue* value) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_OBJECT), NULL);
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return value->data[0].v_pointer;
#line 541 "object-cache.c"
}


void value_set_test_object (GValue* value, gpointer v_object) {
	TestObject* old;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_OBJECT));
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	old = value->data[0].v_pointer;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (v_object) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEST_OBJECT));
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		value->data[0].v_pointer = v_object;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		test_object_ref (value->data[0].v_pointer);
#line 561 "object-cache.c"
	} else {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		value->data[0].v_pointer = NULL;
#line 565 "object-cache.c"
	}
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (old) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		test_object_unref (old);
#line 571 "object-cache.c"
	}
}


void value_take_test_object (GValue* value, gpointer v_object) {
	TestObject* old;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, TYPE_TEST_OBJECT));
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	old = value->data[0].v_pointer;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (v_object) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, TYPE_TEST_OBJECT));
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		value->data[0].v_pointer = v_object;
#line 590 "object-cache.c"
	} else {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		value->data[0].v_pointer = NULL;
#line 594 "object-cache.c"
	}
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (old) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		test_object_unref (old);
#line 600 "object-cache.c"
	}
}


static void test_object_class_init (TestObjectClass * klass) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	test_object_parent_class = g_type_class_peek_parent (klass);
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	TEST_OBJECT_CLASS (klass)->finalize = test_object_finalize;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_type_class_add_private (klass, sizeof (TestObjectPrivate));
#line 612 "object-cache.c"
}


static void test_object_instance_init (TestObject * self) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self->priv = TEST_OBJECT_GET_PRIVATE (self);
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self->ref_count = 1;
#line 621 "object-cache.c"
}


static void test_object_finalize (TestObject* obj) {
	TestObject * self;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = TEST_OBJECT (obj);
#line 7 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_free0 (self->priv->_my_string);
#line 631 "object-cache.c"
}


GType test_object_get_type (void) {
	static volatile gsize test_object_type_id__volatile = 0;
	if (g_once_init_enter (&test_object_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { value_test_object_init, value_test_object_free_value, value_test_object_copy_value, value_test_object_peek_pointer, "p", value_test_object_collect_value, "p", value_test_object_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (TestObjectClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) test_object_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TestObject), 0, (GInstanceInitFunc) test_object_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 test_object_type_id;
		test_object_type_id = g_type_register_fundamental (g_type_fundamental_next (), "TestObject", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&test_object_type_id__volatile, test_object_type_id);
	}
	return test_object_type_id__volatile;
}


gpointer test_object_ref (gpointer instance) {
	TestObject* self;
	self = instance;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&self->ref_count);
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return instance;
#line 656 "object-cache.c"
}


void test_object_unref (gpointer instance) {
	TestObject* self;
	self = instance;
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		TEST_OBJECT_GET_CLASS (self)->finalize (self);
#line 5 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 669 "object-cache.c"
	}
}


TestCache* test_cache_construct (GType object_type, const gchar* id) {
	TestCache * self = NULL;
	const gchar* _tmp0_;
#line 19 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 21 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = id;
#line 21 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = (TestCache*) folks_object_cache_construct (object_type, TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, "test", _tmp0_);
#line 19 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return self;
#line 685 "object-cache.c"
}


TestCache* test_cache_new (const gchar* id) {
#line 19 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return test_cache_construct (TYPE_TEST_CACHE, id);
#line 692 "object-cache.c"
}


static gpointer _g_variant_type_copy0 (gpointer self) {
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return self ? g_variant_type_copy (self) : NULL;
#line 699 "object-cache.c"
}


static GVariantType* test_cache_real_get_serialised_object_type (FolksObjectCache* base) {
	TestCache * self;
	GVariantType* result = NULL;
	const GVariantType* _tmp0_;
	GVariantType* _tmp1_;
	const GVariantType* _tmp2_;
	GVariantType* _tmp3_;
	GVariantType** _tmp4_ = NULL;
	GVariantType** _tmp5_;
	gint _tmp5__length1;
	GVariantType* _tmp6_;
	GVariantType* _tmp7_;
#line 24 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = (TestCache*) base;
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = G_VARIANT_TYPE_STRING;
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = _g_variant_type_copy0 (_tmp0_);
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = G_VARIANT_TYPE_UINT32;
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = _g_variant_type_copy0 (_tmp2_);
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = g_new0 (GVariantType*, 2 + 1);
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_[0] = _tmp1_;
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_[1] = _tmp3_;
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = _tmp4_;
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5__length1 = 2;
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp6_ = g_variant_type_new_tuple (_tmp5_, 2);
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp7_ = _tmp6_;
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = (_vala_array_free (_tmp5_, _tmp5__length1, (GDestroyNotify) g_variant_type_free), NULL);
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	result = _tmp7_;
#line 26 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return result;
#line 745 "object-cache.c"
}


static guint8 test_cache_real_get_serialised_object_version (FolksObjectCache* base) {
	TestCache * self;
	guint8 result = 0U;
#line 32 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = (TestCache*) base;
#line 34 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	result = (guint8) 1;
#line 34 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return result;
#line 758 "object-cache.c"
}


static GVariant* test_cache_real_serialise_object (FolksObjectCache* base, TestObject* obj) {
	TestCache * self;
	GVariant* result = NULL;
	TestObject* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	GVariant* _tmp3_;
	GVariant* _tmp4_;
	TestObject* _tmp5_;
	guint _tmp6_;
	guint _tmp7_;
	GVariant* _tmp8_;
	GVariant* _tmp9_;
	GVariant** _tmp10_ = NULL;
	GVariant** _tmp11_;
	gint _tmp11__length1;
	GVariant* _tmp12_;
	GVariant* _tmp13_;
	GVariant* _tmp14_;
#line 37 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = (TestCache*) base;
#line 37 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_val_if_fail (obj != NULL, NULL);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = obj;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_object_get_my_string (_tmp0_);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = _tmp1_;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = g_variant_new_string (_tmp2_);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = g_variant_ref_sink (_tmp3_);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = obj;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp6_ = test_object_get_my_int (_tmp5_);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp7_ = _tmp6_;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp8_ = g_variant_new_uint32 ((guint32) _tmp7_);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp9_ = g_variant_ref_sink (_tmp8_);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp10_ = g_new0 (GVariant*, 2 + 1);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp10_[0] = _tmp4_;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp10_[1] = _tmp9_;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp11_ = _tmp10_;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp11__length1 = 2;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp12_ = g_variant_new_tuple (_tmp11_, 2);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp13_ = g_variant_ref_sink (_tmp12_);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp14_ = _tmp13_;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp11_ = (_vala_array_free (_tmp11_, _tmp11__length1, (GDestroyNotify) g_variant_unref), NULL);
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	result = _tmp14_;
#line 39 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return result;
#line 827 "object-cache.c"
}


static TestObject* test_cache_real_deserialise_object (FolksObjectCache* base, GVariant* variant) {
	TestCache * self;
	TestObject* result = NULL;
	GVariant* _tmp0_;
	GVariant* _tmp1_ = NULL;
	GVariant* _tmp2_;
	const gchar* _tmp3_ = NULL;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* my_string;
	GVariant* _tmp6_;
	GVariant* _tmp7_ = NULL;
	GVariant* _tmp8_;
	guint32 _tmp9_ = 0U;
	guint32 _tmp10_;
	guint32 my_int;
	TestObject* _tmp11_;
#line 45 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = (TestCache*) base;
#line 45 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_val_if_fail (variant != NULL, NULL);
#line 48 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = variant;
#line 48 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = g_variant_get_child_value (_tmp0_, (gsize) 0);
#line 48 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = _tmp1_;
#line 48 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = g_variant_get_string (_tmp2_, NULL);
#line 48 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = g_strdup (_tmp3_);
#line 48 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = _tmp4_;
#line 48 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_variant_unref0 (_tmp2_);
#line 48 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	my_string = _tmp5_;
#line 49 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp6_ = variant;
#line 49 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp7_ = g_variant_get_child_value (_tmp6_, (gsize) 1);
#line 49 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp8_ = _tmp7_;
#line 49 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp9_ = g_variant_get_uint32 (_tmp8_);
#line 49 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp10_ = _tmp9_;
#line 49 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_variant_unref0 (_tmp8_);
#line 49 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	my_int = _tmp10_;
#line 51 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp11_ = test_object_new (my_string, (guint) my_int);
#line 51 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	result = _tmp11_;
#line 51 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_free0 (my_string);
#line 51 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return result;
#line 890 "object-cache.c"
}


static void test_cache_class_init (TestCacheClass * klass) {
#line 17 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	test_cache_parent_class = g_type_class_peek_parent (klass);
#line 17 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	FOLKS_OBJECT_CACHE_CLASS (klass)->get_serialised_object_type = test_cache_real_get_serialised_object_type;
#line 17 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	FOLKS_OBJECT_CACHE_CLASS (klass)->get_serialised_object_version = test_cache_real_get_serialised_object_version;
#line 17 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	FOLKS_OBJECT_CACHE_CLASS (klass)->serialise_object = test_cache_real_serialise_object;
#line 17 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	FOLKS_OBJECT_CACHE_CLASS (klass)->deserialise_object = test_cache_real_deserialise_object;
#line 905 "object-cache.c"
}


static void test_cache_instance_init (TestCache * self) {
}


GType test_cache_get_type (void) {
	static volatile gsize test_cache_type_id__volatile = 0;
	if (g_once_init_enter (&test_cache_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (TestCacheClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) test_cache_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (TestCache), 0, (GInstanceInitFunc) test_cache_instance_init, NULL };
		GType test_cache_type_id;
		test_cache_type_id = g_type_register_static (FOLKS_TYPE_OBJECT_CACHE, "TestCache", &g_define_type_info, 0);
		g_once_init_leave (&test_cache_type_id__volatile, test_cache_type_id);
	}
	return test_cache_type_id__volatile;
}


static void _object_cache_tests_test_create_folks_test_case_test_method (gpointer self) {
#line 70 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_create (self);
#line 928 "object-cache.c"
}


static void _object_cache_tests_test_store_objects_folks_test_case_test_method (gpointer self) {
#line 71 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_store_objects (self);
#line 935 "object-cache.c"
}


static void _object_cache_tests_test_store_objects_empty_folks_test_case_test_method (gpointer self) {
#line 72 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_store_objects_empty (self);
#line 942 "object-cache.c"
}


static void _object_cache_tests_test_load_objects_folks_test_case_test_method (gpointer self) {
#line 73 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_load_objects (self);
#line 949 "object-cache.c"
}


static void _object_cache_tests_test_load_objects_empty_folks_test_case_test_method (gpointer self) {
#line 74 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_load_objects_empty (self);
#line 956 "object-cache.c"
}


static void _object_cache_tests_test_load_objects_nonexistent_folks_test_case_test_method (gpointer self) {
#line 75 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_load_objects_nonexistent (self);
#line 963 "object-cache.c"
}


static void _object_cache_tests_test_clear_folks_test_case_test_method (gpointer self) {
#line 77 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_clear (self);
#line 970 "object-cache.c"
}


static void _object_cache_tests_test_clear_empty_folks_test_case_test_method (gpointer self) {
#line 78 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_clear_empty (self);
#line 977 "object-cache.c"
}


static void _object_cache_tests_test_clear_nonexistent_folks_test_case_test_method (gpointer self) {
#line 79 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_clear_nonexistent (self);
#line 984 "object-cache.c"
}


static void _object_cache_tests_test_store_objects_cancellation_folks_test_case_test_method (gpointer self) {
#line 82 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_store_objects_cancellation (self);
#line 991 "object-cache.c"
}


static void _object_cache_tests_test_load_objects_cancellation_folks_test_case_test_method (gpointer self) {
#line 84 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_load_objects_cancellation (self);
#line 998 "object-cache.c"
}


static void _object_cache_tests_test_stress_folks_test_case_test_method (gpointer self) {
#line 88 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_test_stress (self);
#line 1005 "object-cache.c"
}


ObjectCacheTests* object_cache_tests_construct (GType object_type) {
	ObjectCacheTests * self = NULL;
	const gchar* _tmp0_ = NULL;
	GFile* _tmp1_ = NULL;
	GFile* _tmp2_;
	GFile* _tmp3_ = NULL;
#line 62 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = (ObjectCacheTests*) folks_test_case_construct (object_type, "ObjectCache");
#line 65 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_get_tmp_dir ();
#line 65 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = g_file_new_for_path (_tmp0_);
#line 65 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = _tmp1_;
#line 65 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = g_file_get_child (_tmp2_, "folks-object-cache-tests");
#line 65 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (self->priv->_cache_dir);
#line 65 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self->priv->_cache_dir = _tmp3_;
#line 65 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_tmp2_);
#line 70 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "create", _object_cache_tests_test_create_folks_test_case_test_method, self);
#line 71 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "store-objects", _object_cache_tests_test_store_objects_folks_test_case_test_method, self);
#line 72 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "store-objects-empty", _object_cache_tests_test_store_objects_empty_folks_test_case_test_method, self);
#line 73 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "load-objects", _object_cache_tests_test_load_objects_folks_test_case_test_method, self);
#line 74 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "load-objects-empty", _object_cache_tests_test_load_objects_empty_folks_test_case_test_method, self);
#line 75 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "load-objects-nonexistent", _object_cache_tests_test_load_objects_nonexistent_folks_test_case_test_method, self);
#line 77 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "clear", _object_cache_tests_test_clear_folks_test_case_test_method, self);
#line 78 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "clear-empty", _object_cache_tests_test_clear_empty_folks_test_case_test_method, self);
#line 79 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "clear-nonexistent", _object_cache_tests_test_clear_nonexistent_folks_test_case_test_method, self);
#line 82 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "store-objects-cancellation", _object_cache_tests_test_store_objects_cancellation_folks_test_case_test_method, self);
#line 84 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "load-objects-cancellation", _object_cache_tests_test_load_objects_cancellation_folks_test_case_test_method, self);
#line 88 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_test_case_add_test ((FolksTestCase*) self, "stress", _object_cache_tests_test_stress_folks_test_case_test_method, self);
#line 60 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return self;
#line 1057 "object-cache.c"
}


ObjectCacheTests* object_cache_tests_new (void) {
#line 60 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return object_cache_tests_construct (TYPE_OBJECT_CACHE_TESTS);
#line 1064 "object-cache.c"
}


static void object_cache_tests_real_set_up (FolksTestCase* base) {
	ObjectCacheTests * self;
	GFile* _tmp0_;
	gchar* _tmp1_ = NULL;
	gchar* _tmp2_;
#line 91 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = (ObjectCacheTests*) base;
#line 93 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_object_cache_tests_delete_cache_directory (self);
#line 94 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = self->priv->_cache_dir;
#line 94 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = g_file_get_path (_tmp0_);
#line 94 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = _tmp1_;
#line 94 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_setenv ("XDG_CACHE_HOME", _tmp2_, TRUE);
#line 94 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_free0 (_tmp2_);
#line 1087 "object-cache.c"
}


static void object_cache_tests_real_tear_down (FolksTestCase* base) {
	ObjectCacheTests * self;
#line 98 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = (ObjectCacheTests*) base;
#line 100 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_object_cache_tests_delete_cache_directory (self);
#line 1097 "object-cache.c"
}


void _object_cache_tests_delete_directory (ObjectCacheTests* self, GFile* dir, GError** error) {
	GFile* _tmp0_;
	GFileEnumerator* _tmp1_ = NULL;
	GFileEnumerator* enumerator;
	GFileEnumerator* _tmp2_;
	GFileInfo* _tmp3_ = NULL;
	GFileInfo* file_info;
	GFileEnumerator* _tmp16_;
	GFile* _tmp17_;
	GError * _inner_error_ = NULL;
#line 103 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 103 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (dir != NULL);
#line 106 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = dir;
#line 106 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = g_file_enumerate_children (_tmp0_, G_FILE_ATTRIBUTE_STANDARD_NAME, G_FILE_QUERY_INFO_NONE, NULL, &_inner_error_);
#line 106 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	enumerator = _tmp1_;
#line 106 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (_inner_error_ != NULL) {
#line 106 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_propagate_error (error, _inner_error_);
#line 106 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		return;
#line 1127 "object-cache.c"
	}
#line 110 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = enumerator;
#line 110 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = g_file_enumerator_next_file (_tmp2_, NULL, &_inner_error_);
#line 110 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	file_info = _tmp3_;
#line 110 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (_inner_error_ != NULL) {
#line 110 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_propagate_error (error, _inner_error_);
#line 110 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (enumerator);
#line 110 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		return;
#line 1143 "object-cache.c"
	}
#line 111 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	while (TRUE) {
#line 1147 "object-cache.c"
		GFileInfo* _tmp4_;
		GFile* _tmp5_;
		GFileInfo* _tmp6_;
		const gchar* _tmp7_ = NULL;
		GFile* _tmp8_ = NULL;
		GFile* child_file;
		GFile* _tmp9_;
		GFileType _tmp10_ = 0;
		GFileEnumerator* _tmp13_;
		GFileInfo* _tmp14_ = NULL;
		GFileInfo* _tmp15_;
#line 111 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp4_ = file_info;
#line 111 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		if (!(_tmp4_ != NULL)) {
#line 111 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			break;
#line 1165 "object-cache.c"
		}
#line 113 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp5_ = dir;
#line 113 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp6_ = file_info;
#line 113 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp7_ = g_file_info_get_name (_tmp6_);
#line 113 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp8_ = g_file_get_child (_tmp5_, _tmp7_);
#line 113 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		child_file = _tmp8_;
#line 115 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp9_ = child_file;
#line 115 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp10_ = g_file_query_file_type (_tmp9_, G_FILE_QUERY_INFO_NONE, NULL);
#line 115 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		if (_tmp10_ == G_FILE_TYPE_DIRECTORY) {
#line 1183 "object-cache.c"
			GFile* _tmp11_;
#line 118 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_tmp11_ = child_file;
#line 118 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_object_cache_tests_delete_directory (self, _tmp11_, &_inner_error_);
#line 118 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			if (_inner_error_ != NULL) {
#line 118 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				g_propagate_error (error, _inner_error_);
#line 118 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_g_object_unref0 (child_file);
#line 118 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_g_object_unref0 (file_info);
#line 118 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_g_object_unref0 (enumerator);
#line 118 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				return;
#line 1201 "object-cache.c"
			}
		} else {
			GFile* _tmp12_;
#line 122 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_tmp12_ = child_file;
#line 122 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			g_file_delete (_tmp12_, NULL, &_inner_error_);
#line 122 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			if (_inner_error_ != NULL) {
#line 122 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				g_propagate_error (error, _inner_error_);
#line 122 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_g_object_unref0 (child_file);
#line 122 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_g_object_unref0 (file_info);
#line 122 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_g_object_unref0 (enumerator);
#line 122 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				return;
#line 1221 "object-cache.c"
			}
		}
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp13_ = enumerator;
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp14_ = g_file_enumerator_next_file (_tmp13_, NULL, &_inner_error_);
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp15_ = _tmp14_;
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		if (_inner_error_ != NULL) {
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			g_propagate_error (error, _inner_error_);
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_g_object_unref0 (child_file);
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_g_object_unref0 (file_info);
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_g_object_unref0 (enumerator);
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			return;
#line 1242 "object-cache.c"
		}
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (file_info);
#line 125 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		file_info = _tmp15_;
#line 111 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (child_file);
#line 1250 "object-cache.c"
	}
#line 127 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp16_ = enumerator;
#line 127 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_file_enumerator_close (_tmp16_, NULL, &_inner_error_);
#line 127 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (_inner_error_ != NULL) {
#line 127 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_propagate_error (error, _inner_error_);
#line 127 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (file_info);
#line 127 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (enumerator);
#line 127 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		return;
#line 1266 "object-cache.c"
	}
#line 130 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp17_ = dir;
#line 130 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_file_delete (_tmp17_, NULL, &_inner_error_);
#line 130 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (_inner_error_ != NULL) {
#line 130 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_propagate_error (error, _inner_error_);
#line 130 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (file_info);
#line 130 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (enumerator);
#line 130 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		return;
#line 1282 "object-cache.c"
	}
#line 103 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (file_info);
#line 103 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (enumerator);
#line 1288 "object-cache.c"
}


void _object_cache_tests_delete_cache_directory (ObjectCacheTests* self) {
	GError * _inner_error_ = NULL;
#line 133 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 1296 "object-cache.c"
	{
		GFile* _tmp0_;
#line 137 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp0_ = self->priv->_cache_dir;
#line 137 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_object_cache_tests_delete_directory (self, _tmp0_, &_inner_error_);
#line 137 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		if (_inner_error_ != NULL) {
#line 1305 "object-cache.c"
			goto __catch0_g_error;
		}
	}
	goto __finally0;
	__catch0_g_error:
	{
		GError* e = NULL;
#line 135 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		e = _inner_error_;
#line 135 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_inner_error_ = NULL;
#line 135 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_error_free0 (e);
#line 1319 "object-cache.c"
	}
	__finally0:
#line 135 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (_inner_error_ != NULL) {
#line 135 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 135 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_clear_error (&_inner_error_);
#line 135 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		return;
#line 1330 "object-cache.c"
	}
}


void object_cache_tests_test_create (ObjectCacheTests* self) {
	TestCache* _tmp0_;
	TestCache* cache;
#line 145 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 148 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = test_cache_new ("test-create");
#line 148 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	cache = _tmp0_;
#line 150 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (cache != NULL);
#line 145 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (cache);
#line 1348 "object-cache.c"
}


static Block1Data* block1_data_ref (Block1Data* _data1_) {
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data1_->_ref_count_);
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data1_;
#line 1357 "object-cache.c"
}


static void block1_data_unref (Block1Data* _data1_) {
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data1_->self);
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data1_->cache);
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data1_->main_loop);
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block1Data, _data1_);
#line 1372 "object-cache.c"
	}
}


static void __lambda0_ (Block1Data* _data1_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 164 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data1_->self;
#line 164 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 166 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 166 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects_finish ((FolksObjectCache*) _data1_->cache, _tmp0_);
#line 167 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data1_->main_loop);
#line 1390 "object-cache.c"
}


static void ___lambda0__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 164 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda0_ (self, source_object, res);
#line 164 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block1_data_unref (self);
#line 1399 "object-cache.c"
}


void object_cache_tests_test_store_objects (ObjectCacheTests* self) {
	Block1Data* _data1_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashSet* obj_set;
	TestObject* _tmp3_;
	TestObject* _tmp4_;
	TestObject* _tmp5_;
	TestObject* _tmp6_;
	TestObject* _tmp7_;
	TestObject* _tmp8_;
	TestObject* _tmp9_;
	TestObject* _tmp10_;
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data1_ = g_slice_new0 (Block1Data);
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data1_->_ref_count_ = 1;
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data1_->self = g_object_ref (self);
#line 155 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 155 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data1_->main_loop = _tmp0_;
#line 156 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-store-objects");
#line 156 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data1_->cache = _tmp1_;
#line 158 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = gee_hash_set_new (TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, NULL, NULL);
#line 158 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj_set = _tmp2_;
#line 159 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = test_object_new ("Foo", (guint) 1);
#line 159 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = _tmp3_;
#line 159 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, _tmp4_);
#line 159 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (_tmp4_);
#line 160 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = test_object_new ("Bar", (guint) 2);
#line 160 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp6_ = _tmp5_;
#line 160 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, _tmp6_);
#line 160 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (_tmp6_);
#line 161 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp7_ = test_object_new ("De", (guint) 3);
#line 161 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp8_ = _tmp7_;
#line 161 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, _tmp8_);
#line 161 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (_tmp8_);
#line 162 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp9_ = test_object_new ("Baz", (guint) 4);
#line 162 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp10_ = _tmp9_;
#line 162 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, _tmp10_);
#line 162 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (_tmp10_);
#line 164 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects ((FolksObjectCache*) _data1_->cache, (GeeSet*) obj_set, NULL, ___lambda0__gasync_ready_callback, block1_data_ref (_data1_));
#line 170 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data1_->main_loop);
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (obj_set);
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block1_data_unref (_data1_);
#line 153 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data1_ = NULL;
#line 1479 "object-cache.c"
}


static Block2Data* block2_data_ref (Block2Data* _data2_) {
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data2_->_ref_count_);
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data2_;
#line 1488 "object-cache.c"
}


static void block2_data_unref (Block2Data* _data2_) {
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data2_->self);
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data2_->cache);
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data2_->main_loop);
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block2Data, _data2_);
#line 1503 "object-cache.c"
	}
}


static void __lambda1_ (Block2Data* _data2_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 178 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data2_->self;
#line 178 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 180 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 180 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects_finish ((FolksObjectCache*) _data2_->cache, _tmp0_);
#line 181 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data2_->main_loop);
#line 1521 "object-cache.c"
}


static void ___lambda1__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 178 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda1_ (self, source_object, res);
#line 178 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block2_data_unref (self);
#line 1530 "object-cache.c"
}


void object_cache_tests_test_store_objects_empty (ObjectCacheTests* self) {
	Block2Data* _data2_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashSet* _tmp3_;
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data2_ = g_slice_new0 (Block2Data);
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data2_->_ref_count_ = 1;
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data2_->self = g_object_ref (self);
#line 175 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 175 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data2_->main_loop = _tmp0_;
#line 176 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-store-objects-empty");
#line 176 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data2_->cache = _tmp1_;
#line 178 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = gee_hash_set_new (TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, NULL, NULL);
#line 178 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = _tmp2_;
#line 178 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects ((FolksObjectCache*) _data2_->cache, (GeeSet*) _tmp3_, NULL, ___lambda1__gasync_ready_callback, block2_data_ref (_data2_));
#line 178 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_tmp3_);
#line 184 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data2_->main_loop);
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block2_data_unref (_data2_);
#line 173 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data2_ = NULL;
#line 1570 "object-cache.c"
}


static Block3Data* block3_data_ref (Block3Data* _data3_) {
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data3_->_ref_count_);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data3_;
#line 1579 "object-cache.c"
}


static void block3_data_unref (Block3Data* _data3_) {
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data3_->self);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data3_->new_obj_set);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data3_->cache);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data3_->main_loop);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block3Data, _data3_);
#line 1596 "object-cache.c"
	}
}


static void __lambda2_ (Block3Data* _data3_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	TestCache* _tmp0_;
	GAsyncResult* _tmp1_;
	GMainLoop* _tmp2_;
#line 201 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data3_->self;
#line 201 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 203 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = _data3_->cache;
#line 203 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = r;
#line 203 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects_finish ((FolksObjectCache*) _tmp0_, _tmp1_);
#line 204 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = _data3_->main_loop;
#line 204 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_tmp2_);
#line 1620 "object-cache.c"
}


static void ___lambda2__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 201 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda2_ (self, source_object, res);
#line 201 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block3_data_unref (self);
#line 1629 "object-cache.c"
}


static void __lambda3_ (Block3Data* _data3_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	TestCache* _tmp0_;
	GAsyncResult* _tmp1_;
	GeeSet* _tmp2_ = NULL;
	GMainLoop* _tmp3_;
#line 211 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data3_->self;
#line 211 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 213 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = _data3_->cache;
#line 213 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = r;
#line 213 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = folks_object_cache_load_objects_finish ((FolksObjectCache*) _tmp0_, _tmp1_);
#line 213 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_data3_->new_obj_set);
#line 213 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data3_->new_obj_set = _tmp2_;
#line 214 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = _data3_->main_loop;
#line 214 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_tmp3_);
#line 1657 "object-cache.c"
}


static void ___lambda3__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 211 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda3_ (self, source_object, res);
#line 211 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block3_data_unref (self);
#line 1666 "object-cache.c"
}


void object_cache_tests_test_load_objects (ObjectCacheTests* self) {
	Block3Data* _data3_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
	TestObject* _tmp2_;
	TestObject* obj1;
	TestObject* _tmp3_;
	TestObject* obj2;
	GeeHashSet* _tmp4_;
	GeeHashSet* obj_set;
	GeeHashSet* _tmp5_;
	TestObject* _tmp6_;
	GeeHashSet* _tmp7_;
	TestObject* _tmp8_;
	TestCache* _tmp9_;
	GeeHashSet* _tmp10_;
	GMainLoop* _tmp11_;
	TestCache* _tmp12_;
	GMainLoop* _tmp13_;
	GeeSet* _tmp14_;
	GeeSet* _tmp15_;
	gint _tmp16_;
	gint _tmp17_;
	GeeHashSet* _tmp18_;
	gint _tmp19_;
	gint _tmp20_;
	GeeHashSet* _tmp50_;
	gint _tmp51_;
	gint _tmp52_;
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data3_ = g_slice_new0 (Block3Data);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data3_->_ref_count_ = 1;
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data3_->self = g_object_ref (self);
#line 189 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 189 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data3_->main_loop = _tmp0_;
#line 190 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-load-objects");
#line 190 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data3_->cache = _tmp1_;
#line 193 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = test_object_new ("Foo", (guint) 1);
#line 193 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj1 = _tmp2_;
#line 194 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = test_object_new ("Bar", (guint) 2);
#line 194 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj2 = _tmp3_;
#line 196 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = gee_hash_set_new (TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, NULL, NULL);
#line 196 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj_set = _tmp4_;
#line 197 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = obj_set;
#line 197 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp6_ = obj1;
#line 197 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp5_, _tmp6_);
#line 198 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp7_ = obj_set;
#line 198 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp8_ = obj2;
#line 198 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) _tmp7_, _tmp8_);
#line 201 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp9_ = _data3_->cache;
#line 201 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp10_ = obj_set;
#line 201 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects ((FolksObjectCache*) _tmp9_, (GeeSet*) _tmp10_, NULL, ___lambda2__gasync_ready_callback, block3_data_ref (_data3_));
#line 207 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp11_ = _data3_->main_loop;
#line 207 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_tmp11_);
#line 210 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data3_->new_obj_set = NULL;
#line 211 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp12_ = _data3_->cache;
#line 211 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_load_objects ((FolksObjectCache*) _tmp12_, NULL, ___lambda3__gasync_ready_callback, block3_data_ref (_data3_));
#line 217 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp13_ = _data3_->main_loop;
#line 217 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_tmp13_);
#line 220 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp14_ = _data3_->new_obj_set;
#line 220 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_tmp14_ != NULL);
#line 221 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp15_ = _data3_->new_obj_set;
#line 221 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp16_ = gee_collection_get_size ((GeeCollection*) _tmp15_);
#line 221 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp17_ = _tmp16_;
#line 221 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp18_ = obj_set;
#line 221 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp19_ = gee_collection_get_size ((GeeCollection*) _tmp18_);
#line 221 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp20_ = _tmp19_;
#line 221 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_tmp17_ == _tmp20_);
#line 1777 "object-cache.c"
	{
		GeeSet* _tmp21_;
		GeeIterator* _tmp22_ = NULL;
		GeeIterator* _new_obj_it;
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp21_ = _data3_->new_obj_set;
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_tmp22_ = gee_iterable_iterator ((GeeIterable*) _tmp21_);
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_new_obj_it = _tmp22_;
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		while (TRUE) {
#line 1790 "object-cache.c"
			GeeIterator* _tmp23_;
			gboolean _tmp24_ = FALSE;
			GeeIterator* _tmp25_;
			gpointer _tmp26_ = NULL;
			TestObject* new_obj;
			gboolean partner_found;
			gboolean _tmp49_;
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_tmp23_ = _new_obj_it;
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_tmp24_ = gee_iterator_next (_tmp23_);
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			if (!_tmp24_) {
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				break;
#line 1806 "object-cache.c"
			}
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_tmp25_ = _new_obj_it;
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_tmp26_ = gee_iterator_get (_tmp25_);
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			new_obj = (TestObject*) _tmp26_;
#line 225 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			partner_found = FALSE;
#line 1816 "object-cache.c"
			{
				GeeHashSet* _tmp27_;
				GeeIterator* _tmp28_ = NULL;
				GeeIterator* _original_obj_it;
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp27_ = obj_set;
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp28_ = gee_abstract_collection_iterator ((GeeAbstractCollection*) _tmp27_);
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_original_obj_it = _tmp28_;
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				while (TRUE) {
#line 1829 "object-cache.c"
					GeeIterator* _tmp29_;
					gboolean _tmp30_ = FALSE;
					GeeIterator* _tmp31_;
					gpointer _tmp32_ = NULL;
					TestObject* original_obj;
					gboolean _tmp33_ = FALSE;
					TestObject* _tmp34_;
					const gchar* _tmp35_;
					const gchar* _tmp36_;
					TestObject* _tmp37_;
					const gchar* _tmp38_;
					const gchar* _tmp39_;
					gboolean _tmp46_;
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp29_ = _original_obj_it;
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp30_ = gee_iterator_next (_tmp29_);
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					if (!_tmp30_) {
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						break;
#line 1851 "object-cache.c"
					}
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp31_ = _original_obj_it;
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp32_ = gee_iterator_get (_tmp31_);
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					original_obj = (TestObject*) _tmp32_;
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp34_ = new_obj;
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp35_ = test_object_get_my_string (_tmp34_);
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp36_ = _tmp35_;
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp37_ = original_obj;
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp38_ = test_object_get_my_string (_tmp37_);
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp39_ = _tmp38_;
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					if (g_strcmp0 (_tmp36_, _tmp39_) == 0) {
#line 1873 "object-cache.c"
						TestObject* _tmp40_;
						guint _tmp41_;
						guint _tmp42_;
						TestObject* _tmp43_;
						guint _tmp44_;
						guint _tmp45_;
#line 230 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp40_ = new_obj;
#line 230 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp41_ = test_object_get_my_int (_tmp40_);
#line 230 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp42_ = _tmp41_;
#line 230 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp43_ = original_obj;
#line 230 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp44_ = test_object_get_my_int (_tmp43_);
#line 230 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp45_ = _tmp44_;
#line 230 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp33_ = _tmp42_ == _tmp45_;
#line 1894 "object-cache.c"
					} else {
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp33_ = FALSE;
#line 1898 "object-cache.c"
					}
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp46_ = _tmp33_;
#line 229 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					if (_tmp46_) {
#line 1904 "object-cache.c"
						GeeHashSet* _tmp47_;
						TestObject* _tmp48_;
#line 232 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp47_ = obj_set;
#line 232 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_tmp48_ = original_obj;
#line 232 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						gee_abstract_collection_remove ((GeeAbstractCollection*) _tmp47_, _tmp48_);
#line 233 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						partner_found = TRUE;
#line 234 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						_test_object_unref0 (original_obj);
#line 234 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
						break;
#line 1919 "object-cache.c"
					}
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_test_object_unref0 (original_obj);
#line 1923 "object-cache.c"
				}
#line 227 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_g_object_unref0 (_original_obj_it);
#line 1927 "object-cache.c"
			}
#line 238 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_tmp49_ = partner_found;
#line 238 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			g_assert (_tmp49_);
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_test_object_unref0 (new_obj);
#line 1935 "object-cache.c"
		}
#line 223 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_new_obj_it);
#line 1939 "object-cache.c"
	}
#line 241 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp50_ = obj_set;
#line 241 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp51_ = gee_collection_get_size ((GeeCollection*) _tmp50_);
#line 241 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp52_ = _tmp51_;
#line 241 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_tmp52_ == 0);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (obj_set);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (obj2);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (obj1);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block3_data_unref (_data3_);
#line 187 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data3_ = NULL;
#line 1959 "object-cache.c"
}


static Block4Data* block4_data_ref (Block4Data* _data4_) {
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data4_->_ref_count_);
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data4_;
#line 1968 "object-cache.c"
}


static void block4_data_unref (Block4Data* _data4_) {
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data4_->self);
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data4_->new_obj_set);
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data4_->cache);
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data4_->main_loop);
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block4Data, _data4_);
#line 1985 "object-cache.c"
	}
}


static void __lambda4_ (Block4Data* _data4_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 250 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data4_->self;
#line 250 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 252 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 252 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects_finish ((FolksObjectCache*) _data4_->cache, _tmp0_);
#line 253 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data4_->main_loop);
#line 2003 "object-cache.c"
}


static void ___lambda4__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 250 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda4_ (self, source_object, res);
#line 250 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block4_data_unref (self);
#line 2012 "object-cache.c"
}


static void __lambda5_ (Block4Data* _data4_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
	GeeSet* _tmp1_ = NULL;
#line 260 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data4_->self;
#line 260 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 262 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 262 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = folks_object_cache_load_objects_finish ((FolksObjectCache*) _data4_->cache, _tmp0_);
#line 262 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_data4_->new_obj_set);
#line 262 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data4_->new_obj_set = _tmp1_;
#line 263 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data4_->main_loop);
#line 2034 "object-cache.c"
}


static void ___lambda5__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 260 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda5_ (self, source_object, res);
#line 260 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block4_data_unref (self);
#line 2043 "object-cache.c"
}


void object_cache_tests_test_load_objects_empty (ObjectCacheTests* self) {
	Block4Data* _data4_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashSet* _tmp3_;
	gint _tmp4_;
	gint _tmp5_;
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data4_ = g_slice_new0 (Block4Data);
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data4_->_ref_count_ = 1;
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data4_->self = g_object_ref (self);
#line 246 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 246 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data4_->main_loop = _tmp0_;
#line 247 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-load-objects-empty");
#line 247 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data4_->cache = _tmp1_;
#line 250 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = gee_hash_set_new (TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, NULL, NULL);
#line 250 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = _tmp2_;
#line 250 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects ((FolksObjectCache*) _data4_->cache, (GeeSet*) _tmp3_, NULL, ___lambda4__gasync_ready_callback, block4_data_ref (_data4_));
#line 250 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_tmp3_);
#line 256 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data4_->main_loop);
#line 259 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data4_->new_obj_set = NULL;
#line 260 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_load_objects ((FolksObjectCache*) _data4_->cache, NULL, ___lambda5__gasync_ready_callback, block4_data_ref (_data4_));
#line 266 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data4_->main_loop);
#line 269 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_data4_->new_obj_set != NULL);
#line 270 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = gee_collection_get_size ((GeeCollection*) _data4_->new_obj_set);
#line 270 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = _tmp4_;
#line 270 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_tmp5_ == 0);
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block4_data_unref (_data4_);
#line 244 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data4_ = NULL;
#line 2099 "object-cache.c"
}


static Block5Data* block5_data_ref (Block5Data* _data5_) {
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data5_->_ref_count_);
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data5_;
#line 2108 "object-cache.c"
}


static void block5_data_unref (Block5Data* _data5_) {
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data5_->self);
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data5_->new_obj_set);
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data5_->cache);
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data5_->main_loop);
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block5Data, _data5_);
#line 2125 "object-cache.c"
	}
}


static void __lambda6_ (Block5Data* _data5_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
	GeeSet* _tmp1_ = NULL;
#line 283 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data5_->self;
#line 283 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 285 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 285 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = folks_object_cache_load_objects_finish ((FolksObjectCache*) _data5_->cache, _tmp0_);
#line 285 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_data5_->new_obj_set);
#line 285 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data5_->new_obj_set = _tmp1_;
#line 286 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data5_->main_loop);
#line 2148 "object-cache.c"
}


static void ___lambda6__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 283 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda6_ (self, source_object, res);
#line 283 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block5_data_unref (self);
#line 2157 "object-cache.c"
}


void object_cache_tests_test_load_objects_nonexistent (ObjectCacheTests* self) {
	Block5Data* _data5_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data5_ = g_slice_new0 (Block5Data);
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data5_->_ref_count_ = 1;
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data5_->self = g_object_ref (self);
#line 275 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 275 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data5_->main_loop = _tmp0_;
#line 276 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-load-objects-nonexistent");
#line 276 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data5_->cache = _tmp1_;
#line 279 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_object_cache_tests_delete_cache_directory (self);
#line 282 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data5_->new_obj_set = NULL;
#line 283 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_load_objects ((FolksObjectCache*) _data5_->cache, NULL, ___lambda6__gasync_ready_callback, block5_data_ref (_data5_));
#line 289 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data5_->main_loop);
#line 292 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_data5_->new_obj_set == NULL);
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block5_data_unref (_data5_);
#line 273 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data5_ = NULL;
#line 2195 "object-cache.c"
}


static Block6Data* block6_data_ref (Block6Data* _data6_) {
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data6_->_ref_count_);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data6_;
#line 2204 "object-cache.c"
}


static void block6_data_unref (Block6Data* _data6_) {
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data6_->self);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data6_->new_obj_set);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data6_->cache);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data6_->main_loop);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block6Data, _data6_);
#line 2221 "object-cache.c"
	}
}


static void __lambda7_ (Block6Data* _data6_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 309 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data6_->self;
#line 309 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 311 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 311 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects_finish ((FolksObjectCache*) _data6_->cache, _tmp0_);
#line 312 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data6_->main_loop);
#line 2239 "object-cache.c"
}


static void ___lambda7__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 309 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda7_ (self, source_object, res);
#line 309 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block6_data_unref (self);
#line 2248 "object-cache.c"
}


static void __lambda8_ (Block6Data* _data6_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 318 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data6_->self;
#line 318 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 320 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 320 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_clear_cache_finish ((FolksObjectCache*) _data6_->cache, _tmp0_);
#line 321 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data6_->main_loop);
#line 2265 "object-cache.c"
}


static void ___lambda8__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 318 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda8_ (self, source_object, res);
#line 318 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block6_data_unref (self);
#line 2274 "object-cache.c"
}


static void __lambda9_ (Block6Data* _data6_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
	GeeSet* _tmp1_ = NULL;
#line 328 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data6_->self;
#line 328 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 330 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 330 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = folks_object_cache_load_objects_finish ((FolksObjectCache*) _data6_->cache, _tmp0_);
#line 330 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_data6_->new_obj_set);
#line 330 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data6_->new_obj_set = _tmp1_;
#line 331 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data6_->main_loop);
#line 2296 "object-cache.c"
}


static void ___lambda9__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 328 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda9_ (self, source_object, res);
#line 328 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block6_data_unref (self);
#line 2305 "object-cache.c"
}


void object_cache_tests_test_clear (ObjectCacheTests* self) {
	Block6Data* _data6_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
	TestObject* _tmp2_;
	TestObject* obj1;
	TestObject* _tmp3_;
	TestObject* obj2;
	GeeHashSet* _tmp4_;
	GeeHashSet* obj_set;
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data6_ = g_slice_new0 (Block6Data);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data6_->_ref_count_ = 1;
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data6_->self = g_object_ref (self);
#line 297 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 297 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data6_->main_loop = _tmp0_;
#line 298 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-clear");
#line 298 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data6_->cache = _tmp1_;
#line 301 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = test_object_new ("Foo", (guint) 1);
#line 301 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj1 = _tmp2_;
#line 302 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = test_object_new ("Bar", (guint) 2);
#line 302 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj2 = _tmp3_;
#line 304 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = gee_hash_set_new (TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, NULL, NULL);
#line 304 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj_set = _tmp4_;
#line 305 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, obj1);
#line 306 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, obj2);
#line 309 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects ((FolksObjectCache*) _data6_->cache, (GeeSet*) obj_set, NULL, ___lambda7__gasync_ready_callback, block6_data_ref (_data6_));
#line 315 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data6_->main_loop);
#line 318 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_clear_cache ((FolksObjectCache*) _data6_->cache, ___lambda8__gasync_ready_callback, block6_data_ref (_data6_));
#line 324 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data6_->main_loop);
#line 327 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data6_->new_obj_set = NULL;
#line 328 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_load_objects ((FolksObjectCache*) _data6_->cache, NULL, ___lambda9__gasync_ready_callback, block6_data_ref (_data6_));
#line 334 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data6_->main_loop);
#line 336 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_data6_->new_obj_set == NULL);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (obj_set);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (obj2);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (obj1);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block6_data_unref (_data6_);
#line 295 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data6_ = NULL;
#line 2377 "object-cache.c"
}


static Block7Data* block7_data_ref (Block7Data* _data7_) {
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data7_->_ref_count_);
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data7_;
#line 2386 "object-cache.c"
}


static void block7_data_unref (Block7Data* _data7_) {
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data7_->self);
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data7_->new_obj_set);
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data7_->cache);
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data7_->main_loop);
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block7Data, _data7_);
#line 2403 "object-cache.c"
	}
}


static void __lambda10_ (Block7Data* _data7_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 345 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data7_->self;
#line 345 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 347 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 347 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects_finish ((FolksObjectCache*) _data7_->cache, _tmp0_);
#line 348 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data7_->main_loop);
#line 2421 "object-cache.c"
}


static void ___lambda10__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 345 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda10_ (self, source_object, res);
#line 345 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block7_data_unref (self);
#line 2430 "object-cache.c"
}


static void __lambda11_ (Block7Data* _data7_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 354 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data7_->self;
#line 354 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 356 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 356 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_clear_cache_finish ((FolksObjectCache*) _data7_->cache, _tmp0_);
#line 357 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data7_->main_loop);
#line 2447 "object-cache.c"
}


static void ___lambda11__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 354 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda11_ (self, source_object, res);
#line 354 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block7_data_unref (self);
#line 2456 "object-cache.c"
}


static void __lambda12_ (Block7Data* _data7_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
	GeeSet* _tmp1_ = NULL;
#line 364 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data7_->self;
#line 364 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 366 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 366 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = folks_object_cache_load_objects_finish ((FolksObjectCache*) _data7_->cache, _tmp0_);
#line 366 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_data7_->new_obj_set);
#line 366 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data7_->new_obj_set = _tmp1_;
#line 367 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data7_->main_loop);
#line 2478 "object-cache.c"
}


static void ___lambda12__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 364 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda12_ (self, source_object, res);
#line 364 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block7_data_unref (self);
#line 2487 "object-cache.c"
}


void object_cache_tests_test_clear_empty (ObjectCacheTests* self) {
	Block7Data* _data7_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashSet* _tmp3_;
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data7_ = g_slice_new0 (Block7Data);
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data7_->_ref_count_ = 1;
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data7_->self = g_object_ref (self);
#line 341 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 341 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data7_->main_loop = _tmp0_;
#line 342 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-clear-empty");
#line 342 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data7_->cache = _tmp1_;
#line 345 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = gee_hash_set_new (TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, NULL, NULL);
#line 345 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = _tmp2_;
#line 345 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects ((FolksObjectCache*) _data7_->cache, (GeeSet*) _tmp3_, NULL, ___lambda10__gasync_ready_callback, block7_data_ref (_data7_));
#line 345 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_tmp3_);
#line 351 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data7_->main_loop);
#line 354 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_clear_cache ((FolksObjectCache*) _data7_->cache, ___lambda11__gasync_ready_callback, block7_data_ref (_data7_));
#line 360 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data7_->main_loop);
#line 363 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data7_->new_obj_set = NULL;
#line 364 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_load_objects ((FolksObjectCache*) _data7_->cache, NULL, ___lambda12__gasync_ready_callback, block7_data_ref (_data7_));
#line 370 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data7_->main_loop);
#line 372 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_data7_->new_obj_set == NULL);
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block7_data_unref (_data7_);
#line 339 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data7_ = NULL;
#line 2539 "object-cache.c"
}


static Block8Data* block8_data_ref (Block8Data* _data8_) {
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data8_->_ref_count_);
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data8_;
#line 2548 "object-cache.c"
}


static void block8_data_unref (Block8Data* _data8_) {
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) {
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data8_->self);
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data8_->new_obj_set);
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data8_->cache);
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data8_->main_loop);
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block8Data, _data8_);
#line 2565 "object-cache.c"
	}
}


static void __lambda13_ (Block8Data* _data8_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 384 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data8_->self;
#line 384 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 386 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 386 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_clear_cache_finish ((FolksObjectCache*) _data8_->cache, _tmp0_);
#line 387 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data8_->main_loop);
#line 2583 "object-cache.c"
}


static void ___lambda13__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 384 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda13_ (self, source_object, res);
#line 384 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block8_data_unref (self);
#line 2592 "object-cache.c"
}


static void __lambda14_ (Block8Data* _data8_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
	GeeSet* _tmp1_ = NULL;
#line 394 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data8_->self;
#line 394 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 396 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 396 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = folks_object_cache_load_objects_finish ((FolksObjectCache*) _data8_->cache, _tmp0_);
#line 396 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_data8_->new_obj_set);
#line 396 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data8_->new_obj_set = _tmp1_;
#line 397 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data8_->main_loop);
#line 2614 "object-cache.c"
}


static void ___lambda14__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 394 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda14_ (self, source_object, res);
#line 394 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block8_data_unref (self);
#line 2623 "object-cache.c"
}


void object_cache_tests_test_clear_nonexistent (ObjectCacheTests* self) {
	Block8Data* _data8_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data8_ = g_slice_new0 (Block8Data);
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data8_->_ref_count_ = 1;
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data8_->self = g_object_ref (self);
#line 377 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 377 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data8_->main_loop = _tmp0_;
#line 378 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-clear-nonexistent");
#line 378 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data8_->cache = _tmp1_;
#line 381 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_object_cache_tests_delete_cache_directory (self);
#line 384 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_clear_cache ((FolksObjectCache*) _data8_->cache, ___lambda13__gasync_ready_callback, block8_data_ref (_data8_));
#line 390 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data8_->main_loop);
#line 393 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data8_->new_obj_set = NULL;
#line 394 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_load_objects ((FolksObjectCache*) _data8_->cache, NULL, ___lambda14__gasync_ready_callback, block8_data_ref (_data8_));
#line 400 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data8_->main_loop);
#line 402 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_data8_->new_obj_set == NULL);
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block8_data_unref (_data8_);
#line 375 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data8_ = NULL;
#line 2665 "object-cache.c"
}


static Block9Data* block9_data_ref (Block9Data* _data9_) {
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data9_->_ref_count_);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data9_;
#line 2674 "object-cache.c"
}


static void block9_data_unref (Block9Data* _data9_) {
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data9_->self);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data9_->new_obj_set);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data9_->cache);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data9_->main_loop);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block9Data, _data9_);
#line 2691 "object-cache.c"
	}
}


static void __lambda15_ (Block9Data* _data9_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 418 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data9_->self;
#line 418 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 420 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 420 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects_finish ((FolksObjectCache*) _data9_->cache, _tmp0_);
#line 421 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data9_->main_loop);
#line 2709 "object-cache.c"
}


static void ___lambda15__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 418 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda15_ (self, source_object, res);
#line 418 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block9_data_unref (self);
#line 2718 "object-cache.c"
}


static void __lambda16_ (Block9Data* _data9_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
	GeeSet* _tmp1_ = NULL;
#line 430 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data9_->self;
#line 430 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 432 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 432 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = folks_object_cache_load_objects_finish ((FolksObjectCache*) _data9_->cache, _tmp0_);
#line 432 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_data9_->new_obj_set);
#line 432 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data9_->new_obj_set = _tmp1_;
#line 433 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data9_->main_loop);
#line 2740 "object-cache.c"
}


static void ___lambda16__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 430 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda16_ (self, source_object, res);
#line 430 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block9_data_unref (self);
#line 2749 "object-cache.c"
}


void object_cache_tests_test_store_objects_cancellation (ObjectCacheTests* self) {
	Block9Data* _data9_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashSet* obj_set;
	TestObject* _tmp3_;
	TestObject* _tmp4_;
	TestObject* _tmp5_;
	TestObject* _tmp6_;
	TestObject* _tmp7_;
	TestObject* _tmp8_;
	TestObject* _tmp9_;
	TestObject* _tmp10_;
	GCancellable* _tmp11_;
	GCancellable* cancellable;
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data9_ = g_slice_new0 (Block9Data);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data9_->_ref_count_ = 1;
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data9_->self = g_object_ref (self);
#line 407 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 407 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data9_->main_loop = _tmp0_;
#line 408 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-store-objects-cancellation");
#line 408 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data9_->cache = _tmp1_;
#line 410 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = gee_hash_set_new (TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, NULL, NULL);
#line 410 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj_set = _tmp2_;
#line 411 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = test_object_new ("Foo", (guint) 1);
#line 411 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = _tmp3_;
#line 411 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, _tmp4_);
#line 411 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (_tmp4_);
#line 412 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = test_object_new ("Bar", (guint) 2);
#line 412 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp6_ = _tmp5_;
#line 412 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, _tmp6_);
#line 412 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (_tmp6_);
#line 413 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp7_ = test_object_new ("De", (guint) 3);
#line 413 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp8_ = _tmp7_;
#line 413 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, _tmp8_);
#line 413 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (_tmp8_);
#line 414 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp9_ = test_object_new ("Baz", (guint) 4);
#line 414 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp10_ = _tmp9_;
#line 414 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, _tmp10_);
#line 414 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (_tmp10_);
#line 416 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp11_ = g_cancellable_new ();
#line 416 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	cancellable = _tmp11_;
#line 418 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects ((FolksObjectCache*) _data9_->cache, (GeeSet*) obj_set, cancellable, ___lambda15__gasync_ready_callback, block9_data_ref (_data9_));
#line 425 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_cancellable_cancel (cancellable);
#line 426 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data9_->main_loop);
#line 429 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data9_->new_obj_set = NULL;
#line 430 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_load_objects ((FolksObjectCache*) _data9_->cache, NULL, ___lambda16__gasync_ready_callback, block9_data_ref (_data9_));
#line 436 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data9_->main_loop);
#line 438 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_data9_->new_obj_set == NULL);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (cancellable);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (obj_set);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block9_data_unref (_data9_);
#line 405 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data9_ = NULL;
#line 2847 "object-cache.c"
}


static Block10Data* block10_data_ref (Block10Data* _data10_) {
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data10_->_ref_count_);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data10_;
#line 2856 "object-cache.c"
}


static void block10_data_unref (Block10Data* _data10_) {
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) {
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data10_->self);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data10_->new_obj_set);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data10_->cache);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data10_->main_loop);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block10Data, _data10_);
#line 2873 "object-cache.c"
	}
}


static void __lambda17_ (Block10Data* _data10_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
#line 455 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data10_->self;
#line 455 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 457 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 457 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects_finish ((FolksObjectCache*) _data10_->cache, _tmp0_);
#line 458 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data10_->main_loop);
#line 2891 "object-cache.c"
}


static void ___lambda17__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 455 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda17_ (self, source_object, res);
#line 455 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block10_data_unref (self);
#line 2900 "object-cache.c"
}


static void __lambda18_ (Block10Data* _data10_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	GAsyncResult* _tmp0_;
	GeeSet* _tmp1_ = NULL;
#line 467 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data10_->self;
#line 467 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 469 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = r;
#line 469 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = folks_object_cache_load_objects_finish ((FolksObjectCache*) _data10_->cache, _tmp0_);
#line 469 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_data10_->new_obj_set);
#line 469 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data10_->new_obj_set = _tmp1_;
#line 470 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_data10_->main_loop);
#line 2922 "object-cache.c"
}


static void ___lambda18__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 467 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda18_ (self, source_object, res);
#line 467 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block10_data_unref (self);
#line 2931 "object-cache.c"
}


void object_cache_tests_test_load_objects_cancellation (ObjectCacheTests* self) {
	Block10Data* _data10_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
	TestObject* _tmp2_;
	TestObject* obj1;
	TestObject* _tmp3_;
	TestObject* obj2;
	GeeHashSet* _tmp4_;
	GeeHashSet* obj_set;
	GCancellable* _tmp5_;
	GCancellable* cancellable;
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data10_ = g_slice_new0 (Block10Data);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data10_->_ref_count_ = 1;
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data10_->self = g_object_ref (self);
#line 443 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 443 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data10_->main_loop = _tmp0_;
#line 444 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-load-objects-cancellation");
#line 444 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data10_->cache = _tmp1_;
#line 447 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = test_object_new ("Foo", (guint) 1);
#line 447 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj1 = _tmp2_;
#line 448 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = test_object_new ("Bar", (guint) 2);
#line 448 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj2 = _tmp3_;
#line 450 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = gee_hash_set_new (TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, NULL, NULL);
#line 450 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj_set = _tmp4_;
#line 451 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, obj1);
#line 452 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	gee_abstract_collection_add ((GeeAbstractCollection*) obj_set, obj2);
#line 455 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects ((FolksObjectCache*) _data10_->cache, (GeeSet*) obj_set, NULL, ___lambda17__gasync_ready_callback, block10_data_ref (_data10_));
#line 461 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data10_->main_loop);
#line 464 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = g_cancellable_new ();
#line 464 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	cancellable = _tmp5_;
#line 466 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data10_->new_obj_set = NULL;
#line 467 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_load_objects ((FolksObjectCache*) _data10_->cache, cancellable, ___lambda18__gasync_ready_callback, block10_data_ref (_data10_));
#line 474 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_cancellable_cancel (cancellable);
#line 475 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_data10_->main_loop);
#line 477 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_data10_->new_obj_set == NULL);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (cancellable);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (obj_set);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (obj2);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_test_object_unref0 (obj1);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block10_data_unref (_data10_);
#line 441 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data10_ = NULL;
#line 3009 "object-cache.c"
}


static Block11Data* block11_data_ref (Block11Data* _data11_) {
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_atomic_int_inc (&_data11_->_ref_count_);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _data11_;
#line 3018 "object-cache.c"
}


static void block11_data_unref (Block11Data* _data11_) {
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	if (g_atomic_int_dec_and_test (&_data11_->_ref_count_)) {
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data11_->self);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data11_->new_obj_set);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_object_unref0 (_data11_->cache);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		_g_main_loop_unref0 (_data11_->main_loop);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		g_slice_free (Block11Data, _data11_);
#line 3035 "object-cache.c"
	}
}


static void __lambda19_ (Block11Data* _data11_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	gdouble _tmp0_ = 0.0;
	gdouble elapsed_time;
	gint _tmp1_;
	TestCache* _tmp2_;
	GAsyncResult* _tmp3_;
	GMainLoop* _tmp4_;
#line 497 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data11_->self;
#line 497 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 499 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_test_timer_elapsed ();
#line 499 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	elapsed_time = _tmp0_;
#line 500 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = _data11_->obj_count;
#line 500 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_message ("object-cache.vala:500: Storing %u objects in a cache file took %f seco" \
"nds.", (guint) _tmp1_, elapsed_time);
#line 503 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = _data11_->cache;
#line 503 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = r;
#line 503 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects_finish ((FolksObjectCache*) _tmp2_, _tmp3_);
#line 504 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = _data11_->main_loop;
#line 504 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_tmp4_);
#line 3070 "object-cache.c"
}


static void ___lambda19__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 497 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda19_ (self, source_object, res);
#line 497 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block11_data_unref (self);
#line 3079 "object-cache.c"
}


static void __lambda20_ (Block11Data* _data11_, GObject* o, GAsyncResult* r) {
	ObjectCacheTests * self;
	gdouble _tmp0_ = 0.0;
	gdouble elapsed_time;
	gint _tmp1_;
	TestCache* _tmp2_;
	GAsyncResult* _tmp3_;
	GeeSet* _tmp4_ = NULL;
	GMainLoop* _tmp5_;
#line 513 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = _data11_->self;
#line 513 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (r != NULL);
#line 515 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_test_timer_elapsed ();
#line 515 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	elapsed_time = _tmp0_;
#line 516 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = _data11_->obj_count;
#line 516 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_message ("object-cache.vala:516: Loading %u objects from a cache file took %f se" \
"conds.", (guint) _tmp1_, elapsed_time);
#line 519 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = _data11_->cache;
#line 519 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = r;
#line 519 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp4_ = folks_object_cache_load_objects_finish ((FolksObjectCache*) _tmp2_, _tmp3_);
#line 519 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_data11_->new_obj_set);
#line 519 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data11_->new_obj_set = _tmp4_;
#line 520 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp5_ = _data11_->main_loop;
#line 520 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_quit (_tmp5_);
#line 3118 "object-cache.c"
}


static void ___lambda20__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 513 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	__lambda20_ (self, source_object, res);
#line 513 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block11_data_unref (self);
#line 3127 "object-cache.c"
}


void object_cache_tests_test_stress (ObjectCacheTests* self) {
	Block11Data* _data11_;
	GMainLoop* _tmp0_;
	TestCache* _tmp1_;
	GeeHashSet* _tmp2_;
	GeeHashSet* obj_set;
	TestCache* _tmp12_;
	GeeHashSet* _tmp13_;
	GMainLoop* _tmp14_;
	TestCache* _tmp15_;
	GMainLoop* _tmp16_;
	gint _tmp17_;
	gint _tmp18_;
	GeeHashSet* _tmp19_;
	gint _tmp20_;
	gint _tmp21_;
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_return_if_fail (self != NULL);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data11_ = g_slice_new0 (Block11Data);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data11_->_ref_count_ = 1;
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data11_->self = g_object_ref (self);
#line 482 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_main_loop_new (NULL, FALSE);
#line 482 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data11_->main_loop = _tmp0_;
#line 483 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = test_cache_new ("test-stress");
#line 483 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data11_->cache = _tmp1_;
#line 486 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data11_->obj_count = 66666;
#line 487 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = gee_hash_set_new (TYPE_TEST_OBJECT, (GBoxedCopyFunc) test_object_ref, test_object_unref, NULL, NULL);
#line 487 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	obj_set = _tmp2_;
#line 3169 "object-cache.c"
	{
		gint i;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
		i = 0;
#line 3174 "object-cache.c"
		{
			gboolean _tmp3_;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			_tmp3_ = TRUE;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
			while (TRUE) {
#line 3181 "object-cache.c"
				gboolean _tmp4_;
				gint _tmp6_;
				gint _tmp7_;
				GeeHashSet* _tmp8_;
				gint _tmp9_;
				TestObject* _tmp10_;
				TestObject* _tmp11_;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp4_ = _tmp3_;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				if (!_tmp4_) {
#line 3193 "object-cache.c"
					gint _tmp5_;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					_tmp5_ = i;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					i = _tmp5_ + 1;
#line 3199 "object-cache.c"
				}
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp3_ = FALSE;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp6_ = i;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp7_ = _data11_->obj_count;
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				if (!(_tmp6_ < _tmp7_)) {
#line 489 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
					break;
#line 3211 "object-cache.c"
				}
#line 491 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp8_ = obj_set;
#line 491 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp9_ = i;
#line 491 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp10_ = test_object_new ("bizzle", (guint) _tmp9_);
#line 491 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_tmp11_ = _tmp10_;
#line 491 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				gee_abstract_collection_add ((GeeAbstractCollection*) _tmp8_, _tmp11_);
#line 491 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
				_test_object_unref0 (_tmp11_);
#line 3225 "object-cache.c"
			}
		}
	}
#line 495 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_test_timer_start ();
#line 497 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp12_ = _data11_->cache;
#line 497 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp13_ = obj_set;
#line 497 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_store_objects ((FolksObjectCache*) _tmp12_, (GeeSet*) _tmp13_, NULL, ___lambda19__gasync_ready_callback, block11_data_ref (_data11_));
#line 507 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp14_ = _data11_->main_loop;
#line 507 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_tmp14_);
#line 510 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_test_timer_start ();
#line 512 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data11_->new_obj_set = NULL;
#line 513 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp15_ = _data11_->cache;
#line 513 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	folks_object_cache_load_objects ((FolksObjectCache*) _tmp15_, NULL, ___lambda20__gasync_ready_callback, block11_data_ref (_data11_));
#line 523 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp16_ = _data11_->main_loop;
#line 523 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_main_loop_run (_tmp16_);
#line 527 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_data11_->new_obj_set != NULL);
#line 528 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp17_ = gee_collection_get_size ((GeeCollection*) _data11_->new_obj_set);
#line 528 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp18_ = _tmp17_;
#line 528 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp19_ = obj_set;
#line 528 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp20_ = gee_collection_get_size ((GeeCollection*) _tmp19_);
#line 528 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp21_ = _tmp20_;
#line 528 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_assert (_tmp18_ == _tmp21_);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (obj_set);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	block11_data_unref (_data11_);
#line 480 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_data11_ = NULL;
#line 3273 "object-cache.c"
}


static void object_cache_tests_class_init (ObjectCacheTestsClass * klass) {
#line 56 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	object_cache_tests_parent_class = g_type_class_peek_parent (klass);
#line 56 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_type_class_add_private (klass, sizeof (ObjectCacheTestsPrivate));
#line 56 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	FOLKS_TEST_CASE_CLASS (klass)->set_up = object_cache_tests_real_set_up;
#line 56 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	FOLKS_TEST_CASE_CLASS (klass)->tear_down = object_cache_tests_real_tear_down;
#line 56 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	G_OBJECT_CLASS (klass)->finalize = object_cache_tests_finalize;
#line 3288 "object-cache.c"
}


static void object_cache_tests_instance_init (ObjectCacheTests * self) {
#line 56 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self->priv = OBJECT_CACHE_TESTS_GET_PRIVATE (self);
#line 3295 "object-cache.c"
}


static void object_cache_tests_finalize (GObject* obj) {
	ObjectCacheTests * self;
#line 56 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	self = OBJECT_CACHE_TESTS (obj);
#line 58 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (self->priv->_cache_dir);
#line 56 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	G_OBJECT_CLASS (object_cache_tests_parent_class)->finalize (obj);
#line 3307 "object-cache.c"
}


GType object_cache_tests_get_type (void) {
	static volatile gsize object_cache_tests_type_id__volatile = 0;
	if (g_once_init_enter (&object_cache_tests_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (ObjectCacheTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) object_cache_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ObjectCacheTests), 0, (GInstanceInitFunc) object_cache_tests_instance_init, NULL };
		GType object_cache_tests_type_id;
		object_cache_tests_type_id = g_type_register_static (FOLKS_TYPE_TEST_CASE, "ObjectCacheTests", &g_define_type_info, 0);
		g_once_init_leave (&object_cache_tests_type_id__volatile, object_cache_tests_type_id);
	}
	return object_cache_tests_type_id__volatile;
}


gint _vala_main (gchar** args, int args_length1) {
	gint result = 0;
	GTestSuite* _tmp0_ = NULL;
	GTestSuite* root;
	ObjectCacheTests* _tmp1_;
	ObjectCacheTests* _tmp2_;
	GTestSuite* _tmp3_ = NULL;
#line 534 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_test_init (&args_length1, &args, NULL);
#line 536 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp0_ = g_test_get_root ();
#line 536 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	root = _tmp0_;
#line 537 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp1_ = object_cache_tests_new ();
#line 537 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp2_ = _tmp1_;
#line 537 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_tmp3_ = folks_test_case_get_suite ((FolksTestCase*) _tmp2_);
#line 537 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_test_suite_add_suite (root, _tmp3_);
#line 537 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	_g_object_unref0 (_tmp2_);
#line 539 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_test_run ();
#line 541 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	result = 0;
#line 541 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return result;
#line 3352 "object-cache.c"
}


int main (int argc, char ** argv) {
#line 532 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	g_type_init ();
#line 532 "/debian/rgs/devel/folks/tests/folks/object-cache.vala"
	return _vala_main (argv, argc);
#line 3361 "object-cache.c"
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



