/* main.c generated by valac 0.27.1.26-9b1a5-dirty, the Vala compiler
 * generated from 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 <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 GITG_TEST_TYPE_REPOSITORY (gitg_test_repository_get_type ())
#define GITG_TEST_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_REPOSITORY, GitgTestRepository))
#define GITG_TEST_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_REPOSITORY, GitgTestRepositoryClass))
#define GITG_TEST_IS_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_REPOSITORY))
#define GITG_TEST_IS_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_REPOSITORY))
#define GITG_TEST_REPOSITORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_REPOSITORY, GitgTestRepositoryClass))

typedef struct _GitgTestRepository GitgTestRepository;
typedef struct _GitgTestRepositoryClass GitgTestRepositoryClass;

#define GITG_TEST_TYPE_STAGE (gitg_test_stage_get_type ())
#define GITG_TEST_STAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_STAGE, GitgTestStage))
#define GITG_TEST_STAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_STAGE, GitgTestStageClass))
#define GITG_TEST_IS_STAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_STAGE))
#define GITG_TEST_IS_STAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_STAGE))
#define GITG_TEST_STAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_STAGE, GitgTestStageClass))

typedef struct _GitgTestStage GitgTestStage;
typedef struct _GitgTestStageClass GitgTestStageClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GITG_TEST_TYPE_DATE (gitg_test_date_get_type ())
#define GITG_TEST_DATE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_DATE, GitgTestDate))
#define GITG_TEST_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_DATE, GitgTestDateClass))
#define GITG_TEST_IS_DATE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_DATE))
#define GITG_TEST_IS_DATE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_DATE))
#define GITG_TEST_DATE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_DATE, GitgTestDateClass))

typedef struct _GitgTestDate GitgTestDate;
typedef struct _GitgTestDateClass GitgTestDateClass;

#define GITG_TEST_TYPE_COMMIT (gitg_test_commit_get_type ())
#define GITG_TEST_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_COMMIT, GitgTestCommit))
#define GITG_TEST_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_COMMIT, GitgTestCommitClass))
#define GITG_TEST_IS_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_COMMIT))
#define GITG_TEST_IS_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_COMMIT))
#define GITG_TEST_COMMIT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_COMMIT, GitgTestCommitClass))

typedef struct _GitgTestCommit GitgTestCommit;
typedef struct _GitgTestCommitClass GitgTestCommitClass;

#define GITG_TEST_TYPE_ENCODING (gitg_test_encoding_get_type ())
#define GITG_TEST_ENCODING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_ENCODING, GitgTestEncoding))
#define GITG_TEST_ENCODING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_ENCODING, GitgTestEncodingClass))
#define GITG_TEST_IS_ENCODING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_ENCODING))
#define GITG_TEST_IS_ENCODING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_ENCODING))
#define GITG_TEST_ENCODING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_ENCODING, GitgTestEncodingClass))

typedef struct _GitgTestEncoding GitgTestEncoding;
typedef struct _GitgTestEncodingClass GitgTestEncodingClass;
#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 _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 GitgTestMainTestCase** gitg_test_main_s_cases;
static gint gitg_test_main_s_cases_length1;
static GitgTestMainTestCase** gitg_test_main_s_cases = NULL;
static gint gitg_test_main_s_cases_length1 = 0;
static gint _gitg_test_main_s_cases_size_ = 0;
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;
enum  {
	GITG_TEST_MAIN_DUMMY_PROPERTY
};
static GType gitg_test_main_test_case_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
void gitg_test_main_main (gchar** args, int args_length1);
GType gitg_test_test_get_type (void) G_GNUC_CONST;
static void gitg_test_main_add (GitgTestTest* test);
GitgTestStage* gitg_test_stage_new (void);
GitgTestStage* gitg_test_stage_construct (GType object_type);
GType gitg_test_repository_get_type (void) G_GNUC_CONST;
GType gitg_test_stage_get_type (void) G_GNUC_CONST;
GitgTestDate* gitg_test_date_new (void);
GitgTestDate* gitg_test_date_construct (GType object_type);
GType gitg_test_date_get_type (void) G_GNUC_CONST;
GitgTestCommit* gitg_test_commit_new (void);
GitgTestCommit* gitg_test_commit_construct (GType object_type);
GType gitg_test_commit_get_type (void) G_GNUC_CONST;
GitgTestEncoding* gitg_test_encoding_new (void);
GitgTestEncoding* gitg_test_encoding_construct (GType object_type);
GType gitg_test_encoding_get_type (void) G_GNUC_CONST;
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_add1 (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);
GitgTestMain* gitg_test_main_new (void);
GitgTestMain* gitg_test_main_construct (GType object_type);
#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);


void gitg_test_main_main (gchar** args, int args_length1) {
	GitgTestStage* _tmp0_ = NULL;
	GitgTestStage* _tmp1_ = NULL;
	GitgTestDate* _tmp2_ = NULL;
	GitgTestDate* _tmp3_ = NULL;
	GitgTestCommit* _tmp4_ = NULL;
	GitgTestCommit* _tmp5_ = NULL;
	GitgTestEncoding* _tmp6_ = NULL;
	GitgTestEncoding* _tmp7_ = NULL;
	GError * _inner_error_ = NULL;
#line 26 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_init (&_inner_error_);
#line 26 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 26 "/home/garrett/hacking/gnome/gitg/tests/libgitg/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/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		g_clear_error (&_inner_error_);
#line 26 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		return;
#line 228 "main.c"
	}
#line 27 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_test_init (&args_length1, &args, NULL);
#line 29 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp0_ = gitg_test_stage_new ();
#line 29 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp1_ = _tmp0_;
#line 29 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_add ((GitgTestTest*) _tmp1_);
#line 29 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (_tmp1_);
#line 30 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp2_ = gitg_test_date_new ();
#line 30 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp3_ = _tmp2_;
#line 30 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_add ((GitgTestTest*) _tmp3_);
#line 30 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (_tmp3_);
#line 31 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp4_ = gitg_test_commit_new ();
#line 31 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp5_ = _tmp4_;
#line 31 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_add ((GitgTestTest*) _tmp5_);
#line 31 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (_tmp5_);
#line 32 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp6_ = gitg_test_encoding_new ();
#line 32 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp7_ = _tmp6_;
#line 32 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_add ((GitgTestTest*) _tmp7_);
#line 32 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (_tmp7_);
#line 34 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_test_run ();
#line 266 "main.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 24 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_main (argv, argc);
#line 24 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return 0;
#line 278 "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 1230 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1231 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1231 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1231 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1232 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1232 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 311 "main.c"
		glong _tmp3_ = 0L;
		glong _tmp4_ = 0L;
#line 1233 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1233 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1233 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 320 "main.c"
	}
#line 1235 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1235 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 326 "main.c"
		glong _tmp6_ = 0L;
		glong _tmp7_ = 0L;
#line 1236 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1236 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1236 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 335 "main.c"
	}
#line 1238 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1238 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 341 "main.c"
		glong _tmp10_ = 0L;
		glong _tmp11_ = 0L;
#line 1238 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1238 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1238 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 350 "main.c"
	} else {
#line 1238 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 354 "main.c"
	}
#line 1238 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp8_, NULL);
#line 1239 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp13_ = end;
#line 1239 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	if (_tmp13_ >= ((glong) 0)) {
#line 362 "main.c"
		glong _tmp14_ = 0L;
		glong _tmp15_ = 0L;
#line 1239 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp14_ = end;
#line 1239 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1239 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp12_ = _tmp14_ <= _tmp15_;
#line 371 "main.c"
	} else {
#line 1239 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
		_tmp12_ = FALSE;
#line 375 "main.c"
	}
#line 1239 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1240 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp16_ = start;
#line 1240 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp17_ = end;
#line 1240 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
#line 1241 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1241 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1241 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1241 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
#line 1241 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	result = _tmp21_;
#line 1241 "/opt/gnome/share/vala-0.28/vapi/glib-2.0.vapi"
	return result;
#line 397 "main.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return self ? g_object_ref (self) : NULL;
#line 404 "main.c"
}


static void _vala_array_add1 (GitgTestMainTestCase*** array, int* length, int* size, GitgTestMainTestCase* value) {
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if ((*length) == (*size)) {
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		*array = g_renew (GitgTestMainTestCase*, *array, (*size) + 1);
#line 415 "main.c"
	}
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	(*array)[(*length)++] = value;
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	(*array)[*length] = NULL;
#line 421 "main.c"
}


static void _gitg_test_main_test_case_set_up_gtest_fixture_func (void* fixture, gpointer self) {
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_test_case_set_up ((GitgTestMainTestCase*) self);
#line 428 "main.c"
}


static void _gitg_test_main_test_case_test_gtest_fixture_func (void* fixture, gpointer self) {
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_test_case_test ((GitgTestMainTestCase*) self);
#line 435 "main.c"
}


static void _gitg_test_main_test_case_tear_down_gtest_fixture_func (void* fixture, gpointer self) {
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_test_case_tear_down ((GitgTestMainTestCase*) self);
#line 442 "main.c"
}


static void gitg_test_main_add (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 71 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_if_fail (test != NULL);
#line 73 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp0_ = test;
#line 73 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp1_ = G_TYPE_FROM_INSTANCE ((GObject*) _tmp0_);
#line 73 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp3_ = g_signal_list_ids (_tmp1_, &_tmp2_);
#line 73 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	ids = _tmp3_;
#line 73 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	ids_length1 = _tmp2_;
#line 73 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_ids_size_ = ids_length1;
#line 75 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp4_ = test;
#line 75 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp5_ = gitg_test_test_get_suite (_tmp4_);
#line 75 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp6_ = _tmp5_;
#line 75 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	suite = _tmp6_;
#line 77 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp7_ = g_test_get_root ();
#line 77 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp8_ = suite;
#line 77 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_test_suite_add_suite (_tmp7_, _tmp8_);
#line 79 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp9_ = ids;
#line 79 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp9__length1 = ids_length1;
#line 494 "main.c"
	{
		guint* id_collection = NULL;
		gint id_collection_length1 = 0;
		gint _id_collection_size_ = 0;
		gint id_it = 0;
#line 79 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		id_collection = _tmp9_;
#line 79 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		id_collection_length1 = _tmp9__length1;
#line 79 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		for (id_it = 0; id_it < _tmp9__length1; id_it = id_it + 1) {
#line 506 "main.c"
			guint id = 0U;
#line 79 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
			id = id_collection[id_it];
#line 510 "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 83 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp10_ = id;
#line 83 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				g_signal_query (_tmp10_, &_tmp11_);
#line 83 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				q = _tmp11_;
#line 85 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp13_ = q;
#line 85 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp14_ = _tmp13_.n_params;
#line 85 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				if (_tmp14_ != ((guint) 0)) {
#line 85 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
					_tmp12_ = TRUE;
#line 560 "main.c"
				} else {
					GSignalQuery _tmp15_ = {0};
					const gchar* _tmp16_ = NULL;
					gboolean _tmp17_ = FALSE;
#line 85 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
					_tmp15_ = q;
#line 85 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
					_tmp16_ = _tmp15_.signal_name;
#line 85 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
					_tmp17_ = g_str_has_prefix (_tmp16_, "test-");
#line 85 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
					_tmp12_ = !_tmp17_;
#line 573 "main.c"
				}
#line 85 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				if (_tmp12_) {
#line 87 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
					continue;
#line 579 "main.c"
				}
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp18_ = test;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp19_ = q;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp20_ = _tmp19_.signal_name;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp21_ = q;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp22_ = _tmp21_.signal_name;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp23_ = strlen (_tmp22_);
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp24_ = _tmp23_;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp25_ = string_slice (_tmp20_, (glong) 5, (glong) _tmp24_);
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp26_ = _tmp25_;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp27_ = q;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp28_ = _tmp27_.signal_id;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp29_ = gitg_test_main_test_case_new (_tmp18_, _tmp26_, _tmp28_);
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp30_ = _tmp29_;
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_g_free0 (_tmp26_);
#line 90 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				c = _tmp30_;
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp31_ = gitg_test_main_s_cases;
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp31__length1 = gitg_test_main_s_cases_length1;
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp32_ = c;
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp33_ = _g_object_ref0 (_tmp32_);
#line 94 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_vala_array_add1 (&gitg_test_main_s_cases, &gitg_test_main_s_cases_length1, &_gitg_test_main_s_cases_size_, _tmp33_);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp34_ = c;
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp35_ = gitg_test_main_test_case_get_name (_tmp34_);
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp36_ = _tmp35_;
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp37_ = c;
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp38_ = c;
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp39_ = c;
#line 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/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 96 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				tc = _tmp40_;
#line 101 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp41_ = suite;
#line 101 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_tmp42_ = tc;
#line 101 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				g_test_suite_add (_tmp41_, _tmp42_);
#line 79 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
				_g_object_unref0 (c);
#line 645 "main.c"
			}
		}
	}
#line 71 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	ids = (g_free (ids), NULL);
#line 651 "main.c"
}


GitgTestMain* gitg_test_main_construct (GType object_type) {
	GitgTestMain* self = NULL;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	self = (GitgTestMain*) g_type_create_instance (object_type);
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return self;
#line 661 "main.c"
}


GitgTestMain* gitg_test_main_new (void) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return gitg_test_main_construct (GITG_TEST_TYPE_MAIN);
#line 668 "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 43 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_val_if_fail (test != NULL, NULL);
#line 43 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 43 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	self = (GitgTestMainTestCase*) g_object_new (object_type, NULL);
#line 45 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp0_ = test;
#line 45 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 45 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (self->priv->d_test);
#line 45 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	self->priv->d_test = _tmp1_;
#line 46 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp2_ = name;
#line 46 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp3_ = g_strdup (_tmp2_);
#line 46 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_g_free0 (self->priv->d_name);
#line 46 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	self->priv->d_name = _tmp3_;
#line 47 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp4_ = signal_id;
#line 47 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	self->priv->d_signal_id = _tmp4_;
#line 43 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return self;
#line 707 "main.c"
}


static GitgTestMainTestCase* gitg_test_main_test_case_new (GitgTestTest* test, const gchar* name, guint signal_id) {
#line 43 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return gitg_test_main_test_case_construct (GITG_TEST_MAIN_TYPE_TEST_CASE, test, name, signal_id);
#line 714 "main.c"
}


static void gitg_test_main_test_case_set_up (GitgTestMainTestCase* self) {
	GitgTestTest* _tmp0_ = NULL;
#line 55 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_if_fail (self != NULL);
#line 57 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp0_ = self->priv->d_test;
#line 57 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_test_set_up (_tmp0_);
#line 726 "main.c"
}


static void gitg_test_main_test_case_tear_down (GitgTestMainTestCase* self) {
	GitgTestTest* _tmp0_ = NULL;
#line 60 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_if_fail (self != NULL);
#line 62 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp0_ = self->priv->d_test;
#line 62 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_test_tear_down (_tmp0_);
#line 738 "main.c"
}


static void gitg_test_main_test_case_test (GitgTestMainTestCase* self) {
	GitgTestTest* _tmp0_ = NULL;
	guint _tmp1_ = 0U;
#line 65 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_if_fail (self != NULL);
#line 67 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp0_ = self->priv->d_test;
#line 67 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp1_ = self->priv->d_signal_id;
#line 67 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_signal_emit (_tmp0_, _tmp1_, (GQuark) 0, NULL);
#line 753 "main.c"
}


static const gchar* gitg_test_main_test_case_get_name (GitgTestMainTestCase* self) {
	const gchar* result;
	const gchar* _tmp0_ = NULL;
#line 52 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 52 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_tmp0_ = self->priv->d_name;
#line 52 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	result = _tmp0_;
#line 52 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return result;
#line 768 "main.c"
}


static void gitg_test_main_test_case_class_init (GitgTestMainTestCaseClass * klass) {
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_test_case_parent_class = g_type_class_peek_parent (klass);
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_type_class_add_private (klass, sizeof (GitgTestMainTestCasePrivate));
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_test_main_test_case_get_property;
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_test_main_test_case_finalize;
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/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 783 "main.c"
}


static void gitg_test_main_test_case_instance_init (GitgTestMainTestCase * self) {
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	self->priv = GITG_TEST_MAIN_TEST_CASE_GET_PRIVATE (self);
#line 790 "main.c"
}


static void gitg_test_main_test_case_finalize (GObject* obj) {
	GitgTestMainTestCase * self;
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TEST_MAIN_TYPE_TEST_CASE, GitgTestMainTestCase);
#line 39 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_g_object_unref0 (self->priv->d_test);
#line 40 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	_g_free0 (self->priv->d_name);
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	G_OBJECT_CLASS (gitg_test_main_test_case_parent_class)->finalize (obj);
#line 804 "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 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	switch (property_id) {
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		case GITG_TEST_MAIN_TEST_CASE_NAME:
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		g_value_set_string (value, gitg_test_main_test_case_get_name (self));
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		break;
#line 831 "main.c"
		default:
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 37 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		break;
#line 837 "main.c"
	}
}


static void gitg_test_value_main_init (GValue* value) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	value->data[0].v_pointer = NULL;
#line 845 "main.c"
}


static void gitg_test_value_main_free_value (GValue* value) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (value->data[0].v_pointer) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		gitg_test_main_unref (value->data[0].v_pointer);
#line 854 "main.c"
	}
}


static void gitg_test_value_main_copy_value (const GValue* src_value, GValue* dest_value) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (src_value->data[0].v_pointer) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		dest_value->data[0].v_pointer = gitg_test_main_ref (src_value->data[0].v_pointer);
#line 864 "main.c"
	} else {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		dest_value->data[0].v_pointer = NULL;
#line 868 "main.c"
	}
}


static gpointer gitg_test_value_main_peek_pointer (const GValue* value) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return value->data[0].v_pointer;
#line 876 "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/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (collect_values[0].v_pointer) {
#line 883 "main.c"
		GitgTestMain* object;
		object = collect_values[0].v_pointer;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		if (object->parent_instance.g_class == NULL) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 890 "main.c"
		} else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/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 894 "main.c"
		}
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = gitg_test_main_ref (object);
#line 898 "main.c"
	} else {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = NULL;
#line 902 "main.c"
	}
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return NULL;
#line 906 "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/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (!object_p) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 917 "main.c"
	}
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (!value->data[0].v_pointer) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		*object_p = NULL;
#line 923 "main.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		*object_p = value->data[0].v_pointer;
#line 927 "main.c"
	} else {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		*object_p = gitg_test_main_ref (value->data[0].v_pointer);
#line 931 "main.c"
	}
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return NULL;
#line 935 "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/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_val_if_fail (g_type_is_a (object_type, GITG_TEST_TYPE_MAIN), NULL);
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	G_PARAM_SPEC (spec)->value_type = object_type;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return G_PARAM_SPEC (spec);
#line 949 "main.c"
}


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


void gitg_test_value_set_main (GValue* value, gpointer v_object) {
	GitgTestMain* old;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TEST_TYPE_MAIN));
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	old = value->data[0].v_pointer;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (v_object) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TEST_TYPE_MAIN));
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = v_object;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		gitg_test_main_ref (value->data[0].v_pointer);
#line 978 "main.c"
	} else {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = NULL;
#line 982 "main.c"
	}
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (old) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		gitg_test_main_unref (old);
#line 988 "main.c"
	}
}


void gitg_test_value_take_main (GValue* value, gpointer v_object) {
	GitgTestMain* old;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TEST_TYPE_MAIN));
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	old = value->data[0].v_pointer;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (v_object) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TEST_TYPE_MAIN));
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = v_object;
#line 1007 "main.c"
	} else {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		value->data[0].v_pointer = NULL;
#line 1011 "main.c"
	}
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (old) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		gitg_test_main_unref (old);
#line 1017 "main.c"
	}
}


static void gitg_test_main_class_init (GitgTestMainClass * klass) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	gitg_test_main_parent_class = g_type_class_peek_parent (klass);
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	((GitgTestMainClass *) klass)->finalize = gitg_test_main_finalize;
#line 1027 "main.c"
}


static void gitg_test_main_instance_init (GitgTestMain * self) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	self->ref_count = 1;
#line 1034 "main.c"
}


static void gitg_test_main_finalize (GitgTestMain* obj) {
	GitgTestMain * self;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TEST_TYPE_MAIN, GitgTestMain);
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_signal_handlers_destroy (self);
#line 1044 "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/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	g_atomic_int_inc (&self->ref_count);
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	return instance;
#line 1069 "main.c"
}


void gitg_test_main_unref (gpointer instance) {
	GitgTestMain* self;
	self = instance;
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		GITG_TEST_MAIN_GET_CLASS (self)->finalize (self);
#line 20 "/home/garrett/hacking/gnome/gitg/tests/libgitg/main.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 1082 "main.c"
	}
}



