/* main.c generated by valac 0.32.1, 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 <gobject/gvaluecollector.h>


#define GITG_TEST_TYPE_RUNNER (gitg_test_runner_get_type ())
#define GITG_TEST_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_RUNNER, GitgTestRunner))
#define GITG_TEST_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_RUNNER, GitgTestRunnerClass))
#define GITG_TEST_IS_RUNNER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_RUNNER))
#define GITG_TEST_IS_RUNNER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_RUNNER))
#define GITG_TEST_RUNNER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_RUNNER, GitgTestRunnerClass))

typedef struct _GitgTestRunner GitgTestRunner;
typedef struct _GitgTestRunnerClass GitgTestRunnerClass;
typedef struct _GitgTestRunnerPrivate GitgTestRunnerPrivate;

#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;

#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_APPLICATION (gitg_test_application_get_type ())
#define GITG_TEST_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_APPLICATION, GitgTestApplication))
#define GITG_TEST_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_APPLICATION, GitgTestApplicationClass))
#define GITG_TEST_IS_APPLICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_APPLICATION))
#define GITG_TEST_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_APPLICATION))
#define GITG_TEST_APPLICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_APPLICATION, GitgTestApplicationClass))

typedef struct _GitgTestApplication GitgTestApplication;
typedef struct _GitgTestApplicationClass GitgTestApplicationClass;

#define GITG_TEST_TYPE_CHECKOUT_REF (gitg_test_checkout_ref_get_type ())
#define GITG_TEST_CHECKOUT_REF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_CHECKOUT_REF, GitgTestCheckoutRef))
#define GITG_TEST_CHECKOUT_REF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_CHECKOUT_REF, GitgTestCheckoutRefClass))
#define GITG_TEST_IS_CHECKOUT_REF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_CHECKOUT_REF))
#define GITG_TEST_IS_CHECKOUT_REF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_CHECKOUT_REF))
#define GITG_TEST_CHECKOUT_REF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_CHECKOUT_REF, GitgTestCheckoutRefClass))

typedef struct _GitgTestCheckoutRef GitgTestCheckoutRef;
typedef struct _GitgTestCheckoutRefClass GitgTestCheckoutRefClass;

#define GITG_TEST_TYPE_MERGE_REF (gitg_test_merge_ref_get_type ())
#define GITG_TEST_MERGE_REF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_MERGE_REF, GitgTestMergeRef))
#define GITG_TEST_MERGE_REF_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_MERGE_REF, GitgTestMergeRefClass))
#define GITG_TEST_IS_MERGE_REF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_MERGE_REF))
#define GITG_TEST_IS_MERGE_REF_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_MERGE_REF))
#define GITG_TEST_MERGE_REF_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_MERGE_REF, GitgTestMergeRefClass))

typedef struct _GitgTestMergeRef GitgTestMergeRef;
typedef struct _GitgTestMergeRefClass GitgTestMergeRefClass;

#define GITG_TEST_TYPE_CHERRY_PICK_COMMIT (gitg_test_cherry_pick_commit_get_type ())
#define GITG_TEST_CHERRY_PICK_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TEST_TYPE_CHERRY_PICK_COMMIT, GitgTestCherryPickCommit))
#define GITG_TEST_CHERRY_PICK_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TEST_TYPE_CHERRY_PICK_COMMIT, GitgTestCherryPickCommitClass))
#define GITG_TEST_IS_CHERRY_PICK_COMMIT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TEST_TYPE_CHERRY_PICK_COMMIT))
#define GITG_TEST_IS_CHERRY_PICK_COMMIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TEST_TYPE_CHERRY_PICK_COMMIT))
#define GITG_TEST_CHERRY_PICK_COMMIT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TEST_TYPE_CHERRY_PICK_COMMIT, GitgTestCherryPickCommitClass))

typedef struct _GitgTestCherryPickCommit GitgTestCherryPickCommit;
typedef struct _GitgTestCherryPickCommitClass GitgTestCherryPickCommitClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _gitg_test_main_unref0(var) ((var == NULL) ? NULL : (var = (gitg_test_main_unref (var), NULL)))
typedef struct _GitgTestParamSpecRunner GitgTestParamSpecRunner;

struct _GitgTestRunner {
	GTypeInstance parent_instance;
	volatile int ref_count;
	GitgTestRunnerPrivate * priv;
};

struct _GitgTestRunnerClass {
	GTypeClass parent_class;
	void (*finalize) (GitgTestRunner *self);
};

struct _GitgTestParamSpecRunner {
	GParamSpec parent_instance;
};


static gpointer gitg_test_runner_parent_class = NULL;

gpointer gitg_test_runner_ref (gpointer instance);
void gitg_test_runner_unref (gpointer instance);
GParamSpec* gitg_test_param_spec_runner (const gchar* name, const gchar* nick, const gchar* blurb, GType object_type, GParamFlags flags);
void gitg_test_value_set_runner (GValue* value, gpointer v_object);
void gitg_test_value_take_runner (GValue* value, gpointer v_object);
gpointer gitg_test_value_get_runner (const GValue* value);
GType gitg_test_runner_get_type (void) G_GNUC_CONST;
enum  {
	GITG_TEST_RUNNER_DUMMY_PROPERTY
};
void gitg_test_runner_main (gchar** args, int args_length1);
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;
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_add (GitgTestMain* self, ...);
GitgTestCheckoutRef* gitg_test_checkout_ref_new (void);
GitgTestCheckoutRef* gitg_test_checkout_ref_construct (GType object_type);
GType gitg_test_test_get_type (void) G_GNUC_CONST;
GType gitg_test_repository_get_type (void) G_GNUC_CONST;
GType gitg_test_application_get_type (void) G_GNUC_CONST;
GType gitg_test_checkout_ref_get_type (void) G_GNUC_CONST;
GitgTestMergeRef* gitg_test_merge_ref_new (void);
GitgTestMergeRef* gitg_test_merge_ref_construct (GType object_type);
GType gitg_test_merge_ref_get_type (void) G_GNUC_CONST;
GitgTestCherryPickCommit* gitg_test_cherry_pick_commit_new (void);
GitgTestCherryPickCommit* gitg_test_cherry_pick_commit_construct (GType object_type);
GType gitg_test_cherry_pick_commit_get_type (void) G_GNUC_CONST;
void gitg_test_main_run (GitgTestMain* self);
GitgTestRunner* gitg_test_runner_new (void);
GitgTestRunner* gitg_test_runner_construct (GType object_type);
static void gitg_test_runner_finalize (GitgTestRunner* obj);


void gitg_test_runner_main (gchar** args, int args_length1) {
	GitgTestMain* m = NULL;
	gchar** _tmp0_ = NULL;
	gint _tmp0__length1 = 0;
	GitgTestMain* _tmp1_ = NULL;
	GitgTestCheckoutRef* _tmp2_ = NULL;
	GitgTestCheckoutRef* _tmp3_ = NULL;
	GitgTestMergeRef* _tmp4_ = NULL;
	GitgTestMergeRef* _tmp5_ = NULL;
	GitgTestCherryPickCommit* _tmp6_ = NULL;
	GitgTestCherryPickCommit* _tmp7_ = NULL;
#line 24 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_tmp0_ = args;
#line 24 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_tmp0__length1 = args_length1;
#line 24 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_tmp1_ = gitg_test_main_new (_tmp0_, _tmp0__length1);
#line 24 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	m = _tmp1_;
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_tmp2_ = gitg_test_checkout_ref_new ();
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_tmp3_ = _tmp2_;
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_tmp4_ = gitg_test_merge_ref_new ();
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_tmp5_ = _tmp4_;
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_tmp6_ = gitg_test_cherry_pick_commit_new ();
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_tmp7_ = _tmp6_;
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	gitg_test_main_add (m, _tmp3_, _tmp5_, _tmp7_, NULL);
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_g_object_unref0 (_tmp7_);
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_g_object_unref0 (_tmp5_);
#line 26 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_g_object_unref0 (_tmp3_);
#line 30 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	gitg_test_main_run (m);
#line 22 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	_gitg_test_main_unref0 (m);
#line 215 "main.c"
}


int main (int argc, char ** argv) {
#if !GLIB_CHECK_VERSION (2,35,0)
	g_type_init ();
#endif
#line 22 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	gitg_test_runner_main (argv, argc);
#line 22 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	return 0;
#line 227 "main.c"
}


GitgTestRunner* gitg_test_runner_construct (GType object_type) {
	GitgTestRunner* self = NULL;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	self = (GitgTestRunner*) g_type_create_instance (object_type);
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	return self;
#line 237 "main.c"
}


GitgTestRunner* gitg_test_runner_new (void) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	return gitg_test_runner_construct (GITG_TEST_TYPE_RUNNER);
#line 244 "main.c"
}


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


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


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


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


static gchar* gitg_test_value_runner_collect_value (GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	if (collect_values[0].v_pointer) {
#line 289 "main.c"
		GitgTestRunner* object;
		object = collect_values[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		if (object->parent_instance.g_class == NULL) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
			return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
#line 296 "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/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 300 "main.c"
		}
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		value->data[0].v_pointer = gitg_test_runner_ref (object);
#line 304 "main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		value->data[0].v_pointer = NULL;
#line 308 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	return NULL;
#line 312 "main.c"
}


static gchar* gitg_test_value_runner_lcopy_value (const GValue* value, guint n_collect_values, GTypeCValue* collect_values, guint collect_flags) {
	GitgTestRunner** object_p;
	object_p = collect_values[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	if (!object_p) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
#line 323 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	if (!value->data[0].v_pointer) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		*object_p = NULL;
#line 329 "main.c"
	} else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		*object_p = value->data[0].v_pointer;
#line 333 "main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		*object_p = gitg_test_runner_ref (value->data[0].v_pointer);
#line 337 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	return NULL;
#line 341 "main.c"
}


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


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


void gitg_test_value_set_runner (GValue* value, gpointer v_object) {
	GitgTestRunner* old;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TEST_TYPE_RUNNER));
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	old = value->data[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	if (v_object) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TEST_TYPE_RUNNER));
#line 20 "/home/jesse/dev/gitg/tests/gitg/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/main.vala"
		value->data[0].v_pointer = v_object;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		gitg_test_runner_ref (value->data[0].v_pointer);
#line 384 "main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		value->data[0].v_pointer = NULL;
#line 388 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	if (old) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		gitg_test_runner_unref (old);
#line 394 "main.c"
	}
}


void gitg_test_value_take_runner (GValue* value, gpointer v_object) {
	GitgTestRunner* old;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, GITG_TEST_TYPE_RUNNER));
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	old = value->data[0].v_pointer;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	if (v_object) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, GITG_TEST_TYPE_RUNNER));
#line 20 "/home/jesse/dev/gitg/tests/gitg/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/main.vala"
		value->data[0].v_pointer = v_object;
#line 413 "main.c"
	} else {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		value->data[0].v_pointer = NULL;
#line 417 "main.c"
	}
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	if (old) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		gitg_test_runner_unref (old);
#line 423 "main.c"
	}
}


static void gitg_test_runner_class_init (GitgTestRunnerClass * klass) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	gitg_test_runner_parent_class = g_type_class_peek_parent (klass);
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	((GitgTestRunnerClass *) klass)->finalize = gitg_test_runner_finalize;
#line 433 "main.c"
}


static void gitg_test_runner_instance_init (GitgTestRunner * self) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	self->ref_count = 1;
#line 440 "main.c"
}


static void gitg_test_runner_finalize (GitgTestRunner* obj) {
	GitgTestRunner * self;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TEST_TYPE_RUNNER, GitgTestRunner);
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	g_signal_handlers_destroy (self);
#line 450 "main.c"
}


GType gitg_test_runner_get_type (void) {
	static volatile gsize gitg_test_runner_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_test_runner_type_id__volatile)) {
		static const GTypeValueTable g_define_type_value_table = { gitg_test_value_runner_init, gitg_test_value_runner_free_value, gitg_test_value_runner_copy_value, gitg_test_value_runner_peek_pointer, "p", gitg_test_value_runner_collect_value, "p", gitg_test_value_runner_lcopy_value };
		static const GTypeInfo g_define_type_info = { sizeof (GitgTestRunnerClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_test_runner_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgTestRunner), 0, (GInstanceInitFunc) gitg_test_runner_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_runner_type_id;
		gitg_test_runner_type_id = g_type_register_fundamental (g_type_fundamental_next (), "GitgTestRunner", &g_define_type_info, &g_define_type_fundamental_info, 0);
		g_once_init_leave (&gitg_test_runner_type_id__volatile, gitg_test_runner_type_id);
	}
	return gitg_test_runner_type_id__volatile;
}


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


void gitg_test_runner_unref (gpointer instance) {
	GitgTestRunner* self;
	self = instance;
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
	if (g_atomic_int_dec_and_test (&self->ref_count)) {
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		GITG_TEST_RUNNER_GET_CLASS (self)->finalize (self);
#line 20 "/home/jesse/dev/gitg/tests/gitg/main.vala"
		g_type_free_instance ((GTypeInstance *) self);
#line 488 "main.c"
	}
}



