/* support-main.c generated by valac 0.34.7, the Vala compiler
 * generated from support-main.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2013 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include "libgitg/libgitg.h"
#include <stdarg.h>
#include <gobject/gvaluecollector.h>


#define GITG_TEST_TYPE_MAIN (gitg_test_main_get_type ())
#define GITG_TEST_MAIN(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_MAIN, GitgTestMain))
#define GITG_TEST_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_MAIN, GitgTestMainClass))
#define GITG_TEST_IS_MAIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_MAIN))
#define GITG_TEST_IS_MAIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_MAIN))
#define GITG_TEST_MAIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_MAIN, GitgTestMainClass))

typedef struct _GitgTestMain GitgTestMain;
typedef struct _GitgTestMainClass GitgTestMainClass;
typedef struct _GitgTestMainPrivate GitgTestMainPrivate;

#define GITG_TEST_MAIN_TYPE_TEST_CASE (gitg_test_main_test_case_get_type ())
#define GITG_TEST_MAIN_TEST_CASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_MAIN_TYPE_TEST_CASE, GitgTestMainTestCase))
#define GITG_TEST_MAIN_TEST_CASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_MAIN_TYPE_TEST_CASE, GitgTestMainTestCaseClass))
#define GITG_TEST_MAIN_IS_TEST_CASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_MAIN_TYPE_TEST_CASE))
#define GITG_TEST_MAIN_IS_TEST_CASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_MAIN_TYPE_TEST_CASE))
#define GITG_TEST_MAIN_TEST_CASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_MAIN_TYPE_TEST_CASE, GitgTestMainTestCaseClass))

typedef struct _GitgTestMainTestCase GitgTestMainTestCase;
typedef struct _GitgTestMainTestCaseClass GitgTestMainTestCaseClass;

#define GITG_TEST_TYPE_TEST (gitg_test_test_get_type ())
#define GITG_TEST_TEST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_TEST, GitgTestTest))
#define GITG_TEST_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_TEST, GitgTestTestClass))
#define GITG_TEST_IS_TEST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_TEST))
#define GITG_TEST_IS_TEST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_TEST))
#define GITG_TEST_TEST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_TEST, GitgTestTestClass))

typedef struct _GitgTestTest GitgTestTest;
typedef struct _GitgTestTestClass GitgTestTestClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var) (var = (g_free (var), NULL))
typedef struct _GitgTestMainTestCasePrivate GitgTestMainTestCasePrivate;
typedef struct _GitgTestParamSpecMain GitgTestParamSpecMain;

struct _GitgTestMain {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GitgTestMainPrivate * priv;
};

struct _GitgTestMainClass {
	GTypeClass parent_class;
	void (*finalize) (GitgTestMain *self);
};

struct _GitgTestMainPrivate {
	GitgTestMainTestCase** d_cases;
	gint d_cases_length1;
	gint _d_cases_size_;
};

struct _GitgTestMainTestCase {
	GObject parent_instance;
	GitgTestMainTestCasePrivate * priv;
};

struct _GitgTestMainTestCaseClass {
	GObjectClass parent_class;
};

struct _GitgTestMainTestCasePrivate {
	GitgTestTest* d_test;
	gchar* d_name;
	guint d_signal_id;
};

struct _GitgTestParamSpecMain {
	GParamSpec parent_instance;
};


static gpointer gitg_test_main_parent_class = NULL;
static gpointer gitg_test_main_test_case_parent_class = NULL;

gpointer gitg_test_main_ref (gpointer instance);
void gitg_test_main_unref (gpointer instance);
GParamSpec* gitg_test_param_spec_main (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gitg_test_value_set_main (GValue* value, gpointer v_object);
void gitg_test_value_take_main (GValue* value, gpointer v_object);
gpointer gitg_test_value_get_main (const GValue* value);
GType gitg_test_main_get_type (void) G_GNUC_CONST;
static GType gitg_test_main_test_case_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
#define GITG_TEST_MAIN_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TEST_TYPE_MAIN, GitgTestMainPrivate))
enum  {
	GITG_TEST_MAIN_DUMMY_PROPERTY
};
GitgTestMain* gitg_test_main_new (gchar** args, int args_length1);
GitgTestMain* gitg_test_main_construct (GType object_type, gchar** args, int args_length1);
void gitg_test_main_run (GitgTestMain* self);
void gitg_test_main_add (GitgTestMain* self, ...);
GType gitg_test_test_get_type (void) G_GNUC_CONST;
void gitg_test_main_add_test (GitgTestMain* self, GitgTestTest* test);
GTestSuite* gitg_test_test_get_suite (GitgTestTest* self);
static GitgTestMainTestCase* gitg_test_main_test_case_new (GitgTestTest* test, const gchar* name, guint signal_id);
static GitgTestMainTestCase* gitg_test_main_test_case_construct (GType object_type, GitgTestTest* test, const gchar* name, guint signal_id);
static void _vala_array_add9 (GitgTestMainTestCase*** array, int* length, int* size, GitgTestMainTestCase* value);
static const gchar* gitg_test_main_test_case_get_name (GitgTestMainTestCase* self);
static void gitg_test_main_test_case_set_up (GitgTestMainTestCase* self);
static void _gitg_test_main_test_case_set_up_gtest_fixture_func (void* fixture, gpointer self);
static void gitg_test_main_test_case_test (GitgTestMainTestCase* self);
static void _gitg_test_main_test_case_test_gtest_fixture_func (void* fixture, gpointer self);
static void gitg_test_main_test_case_tear_down (GitgTestMainTestCase* self);
static void _gitg_test_main_test_case_tear_down_gtest_fixture_func (void* fixture, gpointer self);
#define GITG_TEST_MAIN_TEST_CASE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TEST_MAIN_TYPE_TEST_CASE, GitgTestMainTestCasePrivate))
enum  {
	GITG_TEST_MAIN_TEST_CASE_DUMMY_PROPERTY,
	GITG_TEST_MAIN_TEST_CASE_NAME
};
void gitg_test_test_set_up (GitgTestTest* self);
void gitg_test_test_tear_down (GitgTestTest* self);
static void gitg_test_main_test_case_finalize (GObject* obj);
static void _vala_gitg_test_main_test_case_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void gitg_test_main_finalize (GitgTestMain* obj);
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);


GitgTestMain* gitg_test_main_construct (GType object_type, gchar** args, int args_length1) {
	GitgTestMain* self = NULL;
	GError * _inner_error_ = NULL;
#line 24 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self = (GitgTestMain*) g_type_create_instance (object_type);
#line 26 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	gitg_init (&_inner_error_);
#line 26 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 26 "/home/jesse/dev/gitg/tests/gitg/support-main.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 26 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		g_clear_error (&_inner_error_);
#line 26 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		return NULL;
#line 166 "support-main.c"
	}
#line 27 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_test_init (&args_length1, &args, NULL);
#line 24 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return self;
#line 172 "support-main.c"
}


GitgTestMain* gitg_test_main_new (gchar** args, int args_length1) {
#line 24 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return gitg_test_main_construct (GITG_TEST_TYPE_MAIN, args, args_length1);
#line 179 "support-main.c"
}


void gitg_test_main_run (GitgTestMain* self) {
#line 30 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_if_fail (self != NULL);
#line 32 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_test_run ();
#line 188 "support-main.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 74 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return self ? g_object_ref (self) : NULL;
#line 195 "support-main.c"
}


void gitg_test_main_add (GitgTestMain* self, ...) {
	va_list l = {0};
	GitgTestTest* test = NULL;
#line 69 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_if_fail (self != NULL);
#line 71 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	va_start (l, self);
#line 74 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	while (TRUE) {
#line 208 "support-main.c"
		GitgTestTest* _tmp0_ = NULL;
		GitgTestTest* _tmp1_ = NULL;
		GitgTestTest* _tmp2_ = NULL;
		GitgTestTest* _tmp3_ = NULL;
#line 74 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		_tmp0_ = va_arg (l, GitgTestTest*);
#line 74 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		_tmp1_ = _g_object_ref0 (_tmp0_);
#line 74 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		_g_object_unref0 (test);
#line 74 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		test = _tmp1_;
#line 74 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		_tmp2_ = test;
#line 74 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		if (!(_tmp2_ != NULL)) {
#line 74 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
			break;
#line 227 "support-main.c"
		}
#line 76 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		_tmp3_ = test;
#line 76 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		gitg_test_main_add_test (self, _tmp3_);
#line 233 "support-main.c"
	}
#line 69 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_g_object_unref0 (test);
#line 69 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	va_end (l);
#line 239 "support-main.c"
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	glong string_length = 0L;
	gint _tmp0_ = 0;
	gint _tmp1_ = 0;
	glong _tmp2_ = 0L;
	glong _tmp5_ = 0L;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_ = 0L;
	gboolean _tmp12_ = FALSE;
	glong _tmp13_ = 0L;
	glong _tmp16_ = 0L;
	glong _tmp17_ = 0L;
	glong _tmp18_ = 0L;
	glong _tmp19_ = 0L;
	glong _tmp20_ = 0L;
	gchar* _tmp21_ = NULL;
#line 1328 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1329 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1330 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 272 "support-main.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1331 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 281 "support-main.c"
	}
#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1333 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 287 "support-main.c"
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1334 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 296 "support-main.c"
	}
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 302 "support-main.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 311 "support-main.c"
	} else {
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 315 "support-main.c"
	}
#line 1336 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp8_, NULL);
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp13_ = end;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	if (_tmp13_ >= ((glong) 0)) {
#line 323 "support-main.c"
		glong _tmp14_ = 0L;
		glong _tmp15_ = 0L;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp14_ = end;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp12_ = _tmp14_ <= _tmp15_;
#line 332 "support-main.c"
	} else {
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
		_tmp12_ = FALSE;
#line 336 "support-main.c"
	}
#line 1337 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp16_ = start;
#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp17_ = end;
#line 1338 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = _tmp21_;
#line 1339 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 358 "support-main.c"
}


static void _vala_array_add9 (GitgTestMainTestCase*** array, int* length, int* size, GitgTestMainTestCase* value) {
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if ((*length) == (*size)) {
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		*array = g_renew (GitgTestMainTestCase*, *array, (*size) + 1);
#line 369 "support-main.c"
	}
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	(*array)[(*length)++] = value;
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	(*array)[*length] = NULL;
#line 375 "support-main.c"
}


static void _gitg_test_main_test_case_set_up_gtest_fixture_func (void* fixture, gpointer self) {
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	gitg_test_main_test_case_set_up ((GitgTestMainTestCase*) self);
#line 382 "support-main.c"
}


static void _gitg_test_main_test_case_test_gtest_fixture_func (void* fixture, gpointer self) {
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	gitg_test_main_test_case_test ((GitgTestMainTestCase*) self);
#line 389 "support-main.c"
}


static void _gitg_test_main_test_case_tear_down_gtest_fixture_func (void* fixture, gpointer self) {
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	gitg_test_main_test_case_tear_down ((GitgTestMainTestCase*) self);
#line 396 "support-main.c"
}


void gitg_test_main_add_test (GitgTestMain* self, GitgTestTest* test) {
	guint* ids = NULL;
	GitgTestTest* _tmp0_ = NULL;
	GType _tmp1_ = 0UL;
	gint _tmp2_ = 0;
	guint* _tmp3_ = NULL;
	gint ids_length1 = 0;
	gint _ids_size_ = 0;
	GTestSuite* suite = NULL;
	GitgTestTest* _tmp4_ = NULL;
	GTestSuite* _tmp5_ = NULL;
	GTestSuite* _tmp6_ = NULL;
	GTestSuite* _tmp7_ = NULL;
	GTestSuite* _tmp8_ = NULL;
	guint* _tmp9_ = NULL;
	gint _tmp9__length1 = 0;
#line 80 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_if_fail (self != NULL);
#line 80 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_if_fail (test != NULL);
#line 82 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp0_ = test;
#line 82 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp1_ = G_TYPE_FROM_INSTANCE ((GObject*) _tmp0_);
#line 82 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp3_ = g_signal_list_ids (_tmp1_, &_tmp2_);
#line 82 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	ids = _tmp3_;
#line 82 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	ids_length1 = _tmp2_;
#line 82 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_ids_size_ = ids_length1;
#line 84 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp4_ = test;
#line 84 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp5_ = gitg_test_test_get_suite (_tmp4_);
#line 84 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp6_ = _tmp5_;
#line 84 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	suite = _tmp6_;
#line 86 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp7_ = g_test_get_root ();
#line 86 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp8_ = suite;
#line 86 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_test_suite_add_suite (_tmp7_, _tmp8_);
#line 88 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp9_ = ids;
#line 88 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp9__length1 = ids_length1;
#line 450 "support-main.c"
	{
		guint* id_collection = NULL;
		gint id_collection_length1 = 0;
		gint _id_collection_size_ = 0;
		gint id_it = 0;
#line 88 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		id_collection = _tmp9_;
#line 88 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		id_collection_length1 = _tmp9__length1;
#line 88 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		for (id_it = 0; id_it < _tmp9__length1; id_it = id_it + 1) {
#line 462 "support-main.c"
			guint id = 0U;
#line 88 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
			id = id_collection[id_it];
#line 466 "support-main.c"
			{
				GSignalQuery q = {0};
				guint _tmp10_ = 0U;
				GSignalQuery _tmp11_ = {0};
				gboolean _tmp12_ = FALSE;
				GSignalQuery _tmp13_ = {0};
				guint _tmp14_ = 0U;
				GitgTestMainTestCase* c = NULL;
				GitgTestTest* _tmp18_ = NULL;
				GSignalQuery _tmp19_ = {0};
				const gchar* _tmp20_ = NULL;
				GSignalQuery _tmp21_ = {0};
				const gchar* _tmp22_ = NULL;
				gint _tmp23_ = 0;
				gint _tmp24_ = 0;
				gchar* _tmp25_ = NULL;
				gchar* _tmp26_ = NULL;
				GSignalQuery _tmp27_ = {0};
				guint _tmp28_ = 0U;
				GitgTestMainTestCase* _tmp29_ = NULL;
				GitgTestMainTestCase* _tmp30_ = NULL;
				GitgTestMainTestCase** _tmp31_ = NULL;
				gint _tmp31__length1 = 0;
				GitgTestMainTestCase* _tmp32_ = NULL;
				GitgTestMainTestCase* _tmp33_ = NULL;
				GTestCase* tc = NULL;
				GitgTestMainTestCase* _tmp34_ = NULL;
				const gchar* _tmp35_ = NULL;
				const gchar* _tmp36_ = NULL;
				GitgTestMainTestCase* _tmp37_ = NULL;
				GitgTestMainTestCase* _tmp38_ = NULL;
				GitgTestMainTestCase* _tmp39_ = NULL;
				GTestCase* _tmp40_ = NULL;
				GTestSuite* _tmp41_ = NULL;
				GTestCase* _tmp42_ = NULL;
#line 92 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp10_ = id;
#line 92 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				g_signal_query (_tmp10_, &_tmp11_);
#line 92 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				q = _tmp11_;
#line 94 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp13_ = q;
#line 94 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp14_ = _tmp13_.n_params;
#line 94 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				if (_tmp14_ != ((guint) 0)) {
#line 94 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
					_tmp12_ = TRUE;
#line 516 "support-main.c"
				} else {
					GSignalQuery _tmp15_ = {0};
					const gchar* _tmp16_ = NULL;
					gboolean _tmp17_ = FALSE;
#line 94 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
					_tmp15_ = q;
#line 94 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
					_tmp16_ = _tmp15_.signal_name;
#line 94 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
					_tmp17_ = g_str_has_prefix (_tmp16_, "test-");
#line 94 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
					_tmp12_ = !_tmp17_;
#line 529 "support-main.c"
				}
#line 94 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				if (_tmp12_) {
#line 96 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
					continue;
#line 535 "support-main.c"
				}
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp18_ = test;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp19_ = q;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp20_ = _tmp19_.signal_name;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp21_ = q;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp22_ = _tmp21_.signal_name;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp23_ = strlen (_tmp22_);
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp24_ = _tmp23_;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp25_ = string_slice (_tmp20_, (glong) 5, (glong) _tmp24_);
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp26_ = _tmp25_;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp27_ = q;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp28_ = _tmp27_.signal_id;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp29_ = gitg_test_main_test_case_new (_tmp18_, _tmp26_, _tmp28_);
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp30_ = _tmp29_;
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_g_free0 (_tmp26_);
#line 99 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				c = _tmp30_;
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp31_ = self->priv->d_cases;
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp31__length1 = self->priv->d_cases_length1;
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp32_ = c;
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp33_ = _g_object_ref0 (_tmp32_);
#line 103 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_vala_array_add9 (&self->priv->d_cases, &self->priv->d_cases_length1, &self->priv->_d_cases_size_, _tmp33_);
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp34_ = c;
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp35_ = gitg_test_main_test_case_get_name (_tmp34_);
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp36_ = _tmp35_;
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp37_ = c;
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp38_ = c;
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp39_ = c;
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp40_ = g_test_create_case (_tmp36_, (gsize) 0, _tmp39_, _gitg_test_main_test_case_set_up_gtest_fixture_func, _gitg_test_main_test_case_test_gtest_fixture_func, _gitg_test_main_test_case_tear_down_gtest_fixture_func);
#line 105 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				tc = _tmp40_;
#line 110 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp41_ = suite;
#line 110 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_tmp42_ = tc;
#line 110 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				g_test_suite_add (_tmp41_, _tmp42_);
#line 88 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
				_g_object_unref0 (c);
#line 601 "support-main.c"
			}
		}
	}
#line 80 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	ids = (g_free (ids), NULL);
#line 607 "support-main.c"
}


static GitgTestMainTestCase* gitg_test_main_test_case_construct (GType object_type, GitgTestTest* test, const gchar* name, guint signal_id) {
	GitgTestMainTestCase * self = NULL;
	GitgTestTest* _tmp0_ = NULL;
	GitgTestTest* _tmp1_ = NULL;
	const gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	guint _tmp4_ = 0U;
#line 41 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_val_if_fail (test != NULL, NULL);
#line 41 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 41 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self = (GitgTestMainTestCase*) g_object_new (object_type, NULL);
#line 43 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp0_ = test;
#line 43 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 43 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_g_object_unref0 (self->priv->d_test);
#line 43 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self->priv->d_test = _tmp1_;
#line 44 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp2_ = name;
#line 44 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 44 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_g_free0 (self->priv->d_name);
#line 44 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self->priv->d_name = _tmp3_;
#line 45 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp4_ = signal_id;
#line 45 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self->priv->d_signal_id = _tmp4_;
#line 41 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return self;
#line 646 "support-main.c"
}


static GitgTestMainTestCase* gitg_test_main_test_case_new (GitgTestTest* test, const gchar* name, guint signal_id) {
#line 41 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return gitg_test_main_test_case_construct (GITG_TEST_MAIN_TYPE_TEST_CASE, test, name, signal_id);
#line 653 "support-main.c"
}


static void gitg_test_main_test_case_set_up (GitgTestMainTestCase* self) {
	GitgTestTest* _tmp0_ = NULL;
#line 53 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_if_fail (self != NULL);
#line 55 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp0_ = self->priv->d_test;
#line 55 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	gitg_test_test_set_up (_tmp0_);
#line 665 "support-main.c"
}


static void gitg_test_main_test_case_tear_down (GitgTestMainTestCase* self) {
	GitgTestTest* _tmp0_ = NULL;
#line 58 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_if_fail (self != NULL);
#line 60 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp0_ = self->priv->d_test;
#line 60 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	gitg_test_test_tear_down (_tmp0_);
#line 677 "support-main.c"
}


static void gitg_test_main_test_case_test (GitgTestMainTestCase* self) {
	GitgTestTest* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 63 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_if_fail (self != NULL);
#line 65 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp0_ = self->priv->d_test;
#line 65 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp1_ = self->priv->d_signal_id;
#line 65 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_signal_emit (_tmp0_, _tmp1_, (GQuark) 0, NULL);
#line 692 "support-main.c"
}


static const gchar* gitg_test_main_test_case_get_name (GitgTestMainTestCase* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 50 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 50 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_tmp0_ = self->priv->d_name;
#line 50 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	result = _tmp0_;
#line 50 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return result;
#line 707 "support-main.c"
}


static void gitg_test_main_test_case_class_init (GitgTestMainTestCaseClass * klass) {
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	gitg_test_main_test_case_parent_class = g_type_class_peek_parent (klass);
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_type_class_add_private (klass, sizeof (GitgTestMainTestCasePrivate));
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_test_main_test_case_get_property;
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_test_main_test_case_finalize;
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_TEST_MAIN_TEST_CASE_NAME, g_param_spec_string ("name", "name", "name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 722 "support-main.c"
}


static void gitg_test_main_test_case_instance_init (GitgTestMainTestCase * self) {
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self->priv = GITG_TEST_MAIN_TEST_CASE_GET_PRIVATE (self);
#line 729 "support-main.c"
}


static void gitg_test_main_test_case_finalize (GObject* obj) {
	GitgTestMainTestCase * self;
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TEST_MAIN_TYPE_TEST_CASE, GitgTestMainTestCase);
#line 37 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_g_object_unref0 (self->priv->d_test);
#line 38 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	_g_free0 (self->priv->d_name);
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	G_OBJECT_CLASS (gitg_test_main_test_case_parent_class)->finalize (obj);
#line 743 "support-main.c"
}


static GType gitg_test_main_test_case_get_type (void) {
	static volatile gsize gitg_test_main_test_case_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_test_main_test_case_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgTestMainTestCaseClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_test_main_test_case_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgTestMainTestCase), 0, (GInstanceInitFunc) gitg_test_main_test_case_instance_init, NULL };
		GType gitg_test_main_test_case_type_id;
		gitg_test_main_test_case_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgTestMainTestCase", &g_define_type_info, 0);
		g_once_init_leave (&gitg_test_main_test_case_type_id__volatile, gitg_test_main_test_case_type_id);
	}
	return gitg_test_main_test_case_type_id__volatile;
}


static void _vala_gitg_test_main_test_case_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgTestMainTestCase * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TEST_MAIN_TYPE_TEST_CASE, GitgTestMainTestCase);
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	switch (property_id) {
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		case GITG_TEST_MAIN_TEST_CASE_NAME:
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		g_value_set_string (value, gitg_test_main_test_case_get_name (self));
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		break;
#line 770 "support-main.c"
		default:
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 35 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		break;
#line 776 "support-main.c"
	}
}


static void gitg_test_value_main_init (GValue* value) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	value->data[0].v_pointer = NULL;
#line 784 "support-main.c"
}


static void gitg_test_value_main_free_value (GValue* value) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (value->data[0].v_pointer) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		gitg_test_main_unref (value->data[0].v_pointer);
#line 793 "support-main.c"
	}
}


static void gitg_test_value_main_copy_value (const GValue* src_value, GValue* dest_value) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (src_value->data[0].v_pointer) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		dest_value->data[0].v_pointer = gitg_test_main_ref (src_value->data[0].v_pointer);
#line 803 "support-main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		dest_value->data[0].v_pointer = NULL;
#line 807 "support-main.c"
	}
}


static gpointer gitg_test_value_main_peek_pointer (const GValue* value) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return value->data[0].v_pointer;
#line 815 "support-main.c"
}


static gchar* gitg_test_value_main_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (collect_values[0].v_pointer) {
#line 822 "support-main.c"
		GitgTestMain* object;
		object = collect_values[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		if (object->parent_instance.g_class == NULL) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 829 "support-main.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.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 833 "support-main.c"
		}
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		value->data[0].v_pointer = gitg_test_main_ref (object);
#line 837 "support-main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		value->data[0].v_pointer = NULL;
#line 841 "support-main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return NULL;
#line 845 "support-main.c"
}


static gchar* gitg_test_value_main_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	GitgTestMain** object_p;
	object_p = collect_values[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (!object_p) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 856 "support-main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (!value->data[0].v_pointer) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		*object_p = NULL;
#line 862 "support-main.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		*object_p = value->data[0].v_pointer;
#line 866 "support-main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		*object_p = gitg_test_main_ref (value->data[0].v_pointer);
#line 870 "support-main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return NULL;
#line 874 "support-main.c"
}


GParamSpec* gitg_test_param_spec_main (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags) {
	GitgTestParamSpecMain* spec;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_val_if_fail (g_type_is_a (object_type, GITG_TEST_TYPE_MAIN), NULL);
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return G_PARAM_SPEC (spec);
#line 888 "support-main.c"
}


gpointer gitg_test_value_get_main (const GValue* value) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TEST_TYPE_MAIN), NULL);
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return value->data[0].v_pointer;
#line 897 "support-main.c"
}


void gitg_test_value_set_main (GValue* value, gpointer v_object) {
	GitgTestMain* old;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TEST_TYPE_MAIN));
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	old = value->data[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (v_object) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TEST_TYPE_MAIN));
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		value->data[0].v_pointer = v_object;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		gitg_test_main_ref (value->data[0].v_pointer);
#line 917 "support-main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		value->data[0].v_pointer = NULL;
#line 921 "support-main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (old) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		gitg_test_main_unref (old);
#line 927 "support-main.c"
	}
}


void gitg_test_value_take_main (GValue* value, gpointer v_object) {
	GitgTestMain* old;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TEST_TYPE_MAIN));
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	old = value->data[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (v_object) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TEST_TYPE_MAIN));
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		value->data[0].v_pointer = v_object;
#line 946 "support-main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		value->data[0].v_pointer = NULL;
#line 950 "support-main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (old) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		gitg_test_main_unref (old);
#line 956 "support-main.c"
	}
}


static void gitg_test_main_class_init (GitgTestMainClass * klass) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	gitg_test_main_parent_class = g_type_class_peek_parent (klass);
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	((GitgTestMainClass *) klass)->finalize = gitg_test_main_finalize;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_type_class_add_private (klass, sizeof (GitgTestMainPrivate));
#line 968 "support-main.c"
}


static void gitg_test_main_instance_init (GitgTestMain * self) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self->priv = GITG_TEST_MAIN_GET_PRIVATE (self);
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self->ref_count = 1;
#line 977 "support-main.c"
}


static void gitg_test_main_finalize (GitgTestMain* obj) {
	GitgTestMain * self;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TEST_TYPE_MAIN, GitgTestMain);
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_signal_handlers_destroy (self);
#line 22 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	self->priv->d_cases = (_vala_array_free (self->priv->d_cases, self->priv->d_cases_length1, (GDestroyNotify) g_object_unref), NULL);
#line 989 "support-main.c"
}


GType gitg_test_main_get_type (void) {
	static volatile gsize gitg_test_main_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_test_main_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { gitg_test_value_main_init, gitg_test_value_main_free_value, gitg_test_value_main_copy_value, gitg_test_value_main_peek_pointer, "p", gitg_test_value_main_collect_value, "p", gitg_test_value_main_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (GitgTestMainClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_test_main_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgTestMain), 0, (GInstanceInitFunc) gitg_test_main_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 gitg_test_main_type_id;
		gitg_test_main_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GitgTestMain", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&gitg_test_main_type_id__volatile, gitg_test_main_type_id);
	}
	return gitg_test_main_type_id__volatile;
}


gpointer gitg_test_main_ref (gpointer instance) {
	GitgTestMain* self;
	self = instance;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	g_atomic_int_inc (&self->ref_count);
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	return instance;
#line 1014 "support-main.c"
}


void gitg_test_main_unref (gpointer instance) {
	GitgTestMain* self;
	self = instance;
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		GITG_TEST_MAIN_GET_CLASS (self)->finalize (self);
#line 20 "/home/jesse/dev/gitg/tests/gitg/support-main.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 1027 "support-main.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);
}



