/* test-encoding.c generated by valac 0.32.1, the Vala compiler
 * generated from test-encoding.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 "libgitg/libgitg.h"
#include <libgit2-glib/ggit.h>
#include <stdlib.h>
#include <string.h>
#include <gio/gio.h>
#include <gitg-assert.h>


#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;
typedef struct _GitgTestTestPrivate GitgTestTestPrivate;

#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;
typedef struct _GitgTestRepositoryPrivate GitgTestRepositoryPrivate;

#define LIB_GITG_TEST_TYPE_ENCODING (lib_gitg_test_encoding_get_type ())
#define LIB_GITG_TEST_ENCODING(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIB_GITG_TEST_TYPE_ENCODING, LibGitgTestEncoding))
#define LIB_GITG_TEST_ENCODING_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), LIB_GITG_TEST_TYPE_ENCODING, LibGitgTestEncodingClass))
#define LIB_GITG_TEST_IS_ENCODING(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIB_GITG_TEST_TYPE_ENCODING))
#define LIB_GITG_TEST_IS_ENCODING_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), LIB_GITG_TEST_TYPE_ENCODING))
#define LIB_GITG_TEST_ENCODING_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), LIB_GITG_TEST_TYPE_ENCODING, LibGitgTestEncodingClass))

typedef struct _LibGitgTestEncoding LibGitgTestEncoding;
typedef struct _LibGitgTestEncodingClass LibGitgTestEncodingClass;
typedef struct _LibGitgTestEncodingPrivate LibGitgTestEncodingPrivate;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block12Data Block12Data;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_main_loop_unref0(var) ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))

struct _GitgTestTest {
	GObject parent_instance;
	GitgTestTestPrivate * priv;
};

struct _GitgTestTestClass {
	GObjectClass parent_class;
	void (*set_up) (GitgTestTest* self);
	void (*tear_down) (GitgTestTest* self);
};

struct _GitgTestRepository {
	GitgTestTest parent_instance;
	GitgTestRepositoryPrivate * priv;
	GitgRepository* d_repository;
};

struct _GitgTestRepositoryClass {
	GitgTestTestClass parent_class;
};

struct _LibGitgTestEncoding {
	GitgTestRepository parent_instance;
	LibGitgTestEncodingPrivate * priv;
};

struct _LibGitgTestEncodingClass {
	GitgTestRepositoryClass parent_class;
	void (*test_commit_encoding) (LibGitgTestEncoding* self);
};

struct _Block12Data {
	int _ref_count_;
	LibGitgTestEncoding* self;
	GitgStage* stage;
	GMainLoop* loop;
	gchar* msg;
};


static gpointer lib_gitg_test_encoding_parent_class = NULL;

GType gitg_test_test_get_type (void) G_GNUC_CONST;
GType gitg_test_repository_get_type (void) G_GNUC_CONST;
GType lib_gitg_test_encoding_get_type (void) G_GNUC_CONST;
enum  {
	LIB_GITG_TEST_ENCODING_DUMMY_PROPERTY
};
static void lib_gitg_test_encoding_real_set_up (GitgTestTest* base);
void gitg_test_test_set_up (GitgTestTest* self);
void gitg_test_repository_index_modify (GitgTestRepository* self, const gchar* filename, ...);
LibGitgTestEncoding* lib_gitg_test_encoding_new (void);
LibGitgTestEncoding* lib_gitg_test_encoding_construct (GType object_type);
GitgTestRepository* gitg_test_repository_new (void);
GitgTestRepository* gitg_test_repository_construct (GType object_type);
static void lib_gitg_test_encoding_real_test_commit_encoding (LibGitgTestEncoding* self);
static Block12Data* block12_data_ref (Block12Data* _data12_);
static void block12_data_unref (void * _userdata_);
static void __lambda15_ (Block12Data* _data12_, GObject* obj, GAsyncResult* res);
static void _vala_GgitOId_free (GgitOId* self);
static void ___lambda15__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);


/**
 * Create basic repository with files in a variety of states.
 */
static void lib_gitg_test_encoding_real_set_up (GitgTestTest* base) {
	LibGitgTestEncoding * self;
	GgitConfig* _tmp0_ = NULL;
	GitgRepository* _tmp1_ = NULL;
	GgitConfig* _tmp2_ = NULL;
	GgitConfig* _tmp3_ = NULL;
	GgitConfig* _tmp4_ = NULL;
	GError * _inner_error_ = NULL;
#line 27 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	self = (LibGitgTestEncoding*) base;
#line 29 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	GITG_TEST_TEST_CLASS (lib_gitg_test_encoding_parent_class)->set_up ((GitgTestTest*) G_TYPE_CHECK_INSTANCE_CAST (self, GITG_TEST_TYPE_REPOSITORY, GitgTestRepository));
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp1_ = ((GitgTestRepository*) self)->d_repository;
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp2_ = ggit_repository_get_config ((GgitRepository*) _tmp1_, &_inner_error_);
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp0_ = _tmp2_;
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.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 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		g_clear_error (&_inner_error_);
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		return;
#line 164 "test-encoding.c"
	}
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp3_ = _tmp0_;
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp0_ = NULL;
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp4_ = _tmp3_;
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	ggit_config_set_string (_tmp4_, "i18n.commitencoding", "KOI8-R", &_inner_error_);
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_g_object_unref0 (_tmp4_);
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		_g_object_unref0 (_tmp0_);
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.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 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		g_clear_error (&_inner_error_);
#line 31 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		return;
#line 186 "test-encoding.c"
	}
#line 33 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	gitg_test_repository_index_modify ((GitgTestRepository*) self, "b", "staged changes\n", NULL);
#line 34 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	gitg_test_repository_index_modify ((GitgTestRepository*) self, "a", "lala\n", NULL);
#line 27 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_g_object_unref0 (_tmp0_);
#line 194 "test-encoding.c"
}


LibGitgTestEncoding* lib_gitg_test_encoding_construct (GType object_type) {
	LibGitgTestEncoding * self = NULL;
#line 22 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	self = (LibGitgTestEncoding*) gitg_test_repository_construct (object_type);
#line 22 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	return self;
#line 204 "test-encoding.c"
}


LibGitgTestEncoding* lib_gitg_test_encoding_new (void) {
#line 22 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	return lib_gitg_test_encoding_construct (LIB_GITG_TEST_TYPE_ENCODING);
#line 211 "test-encoding.c"
}


static Block12Data* block12_data_ref (Block12Data* _data12_) {
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	g_atomic_int_inc (&_data12_->_ref_count_);
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	return _data12_;
#line 220 "test-encoding.c"
}


static void block12_data_unref (void * _userdata_) {
	Block12Data* _data12_;
	_data12_ = (Block12Data*) _userdata_;
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) {
#line 229 "test-encoding.c"
		LibGitgTestEncoding* self;
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		self = _data12_->self;
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		_g_free0 (_data12_->msg);
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		_g_main_loop_unref0 (_data12_->loop);
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		_g_object_unref0 (_data12_->stage);
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		_g_object_unref0 (self);
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		g_slice_free (Block12Data, _data12_);
#line 243 "test-encoding.c"
	}
}


static void _vala_GgitOId_free (GgitOId* self) {
#line 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 251 "test-encoding.c"
}


static void __lambda15_ (Block12Data* _data12_, GObject* obj, GAsyncResult* res) {
	LibGitgTestEncoding* self;
	GgitOId* oid = NULL;
	GAsyncResult* _tmp0_ = NULL;
	GgitOId* _tmp1_ = NULL;
	GitgCommit* commit = NULL;
	GitgRepository* _tmp2_ = NULL;
	GgitOId* _tmp3_ = NULL;
	gpointer _tmp4_ = NULL;
	GitgCommit* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	const gchar* _tmp7_ = NULL;
	GError * _inner_error_ = NULL;
#line 53 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	self = _data12_->self;
#line 53 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	g_return_if_fail (res != NULL);
#line 55 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp0_ = res;
#line 55 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp1_ = gitg_stage_commit_finish (_data12_->stage, _tmp0_, &_inner_error_);
#line 55 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	oid = _tmp1_;
#line 55 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 55 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.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 55 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		g_clear_error (&_inner_error_);
#line 55 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		return;
#line 286 "test-encoding.c"
	}
#line 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp2_ = ((GitgTestRepository*) self)->d_repository;
#line 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp3_ = oid;
#line 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp4_ = gitg_repository_lookup (_tmp2_, GITG_TYPE_COMMIT, (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp3_, &_inner_error_);
#line 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	commit = (GitgCommit*) _tmp4_;
#line 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		__vala_GgitOId_free0 (oid);
#line 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.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 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		g_clear_error (&_inner_error_);
#line 56 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		return;
#line 306 "test-encoding.c"
	}
#line 58 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp5_ = commit;
#line 58 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp6_ = ggit_commit_get_message ((GgitCommit*) _tmp5_);
#line 58 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp7_ = _data12_->msg;
#line 58 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	gitg_test_assert_assert_streq (_tmp6_, _tmp7_);
#line 60 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	g_main_loop_quit (_data12_->loop);
#line 53 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_g_object_unref0 (commit);
#line 53 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	__vala_GgitOId_free0 (oid);
#line 322 "test-encoding.c"
}


static void ___lambda15__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 50 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	__lambda15_ (self, source_object, res);
#line 50 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	block12_data_unref (self);
#line 331 "test-encoding.c"
}


static void lib_gitg_test_encoding_real_test_commit_encoding (LibGitgTestEncoding* self) {
	Block12Data* _data12_;
	GitgRepository* _tmp0_ = NULL;
	GitgStage* _tmp1_ = NULL;
	GitgStage* _tmp2_ = NULL;
	GMainLoop* _tmp3_ = NULL;
	GgitSignature* sig = NULL;
	GgitSignature* _tmp4_ = NULL;
	gchar* _tmp5_ = NULL;
	const gchar* _tmp6_ = NULL;
	GError * _inner_error_ = NULL;
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_data12_ = g_slice_new0 (Block12Data);
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_data12_->_ref_count_ = 1;
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_data12_->self = g_object_ref (self);
#line 42 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp0_ = ((GitgTestRepository*) self)->d_repository;
#line 42 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp1_ = gitg_repository_get_stage (_tmp0_);
#line 42 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp2_ = _tmp1_;
#line 42 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_data12_->stage = _tmp2_;
#line 43 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp3_ = g_main_loop_new (NULL, FALSE);
#line 43 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_data12_->loop = _tmp3_;
#line 45 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp4_ = ggit_signature_new_now ("Jesse van den Kieboom", "jessevdk@gnome.org", &_inner_error_);
#line 45 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	sig = _tmp4_;
#line 45 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 45 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		block12_data_unref (_data12_);
#line 45 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		_data12_ = NULL;
#line 45 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.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 45 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		g_clear_error (&_inner_error_);
#line 45 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
		return;
#line 380 "test-encoding.c"
	}
#line 48 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp5_ = g_strdup ("This is the commit\n\nWith some cyЯЯilic.\n");
#line 48 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_data12_->msg = _tmp5_;
#line 50 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_tmp6_ = _data12_->msg;
#line 50 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	gitg_stage_commit (_data12_->stage, _tmp6_, sig, sig, GITG_STAGE_COMMIT_OPTIONS_NONE, ___lambda15__gasync_ready_callback, block12_data_ref (_data12_));
#line 63 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	g_main_loop_run (_data12_->loop);
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_g_object_unref0 (sig);
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	block12_data_unref (_data12_);
#line 40 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	_data12_ = NULL;
#line 398 "test-encoding.c"
}


static void lib_gitg_test_encoding_class_init (LibGitgTestEncodingClass * klass) {
#line 22 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	lib_gitg_test_encoding_parent_class = g_type_class_peek_parent (klass);
#line 22 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	((GitgTestTestClass *) klass)->set_up = lib_gitg_test_encoding_real_set_up;
#line 22 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	((LibGitgTestEncodingClass *) klass)->test_commit_encoding = lib_gitg_test_encoding_real_test_commit_encoding;
#line 409 "test-encoding.c"
	/**
	 * test commit.
	 */
#line 22 "/home/jesse/dev/gitg/tests/libgitg/test-encoding.vala"
	g_signal_new ("test_commit_encoding", LIB_GITG_TEST_TYPE_ENCODING, G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (LibGitgTestEncodingClass, test_commit_encoding), NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
#line 415 "test-encoding.c"
}


static void lib_gitg_test_encoding_instance_init (LibGitgTestEncoding * self) {
}


GType lib_gitg_test_encoding_get_type (void) {
	static volatile gsize lib_gitg_test_encoding_type_id__volatile = 0;
	if (g_once_init_enter (&lib_gitg_test_encoding_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (LibGitgTestEncodingClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) lib_gitg_test_encoding_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (LibGitgTestEncoding), 0, (GInstanceInitFunc) lib_gitg_test_encoding_instance_init, NULL };
		GType lib_gitg_test_encoding_type_id;
		lib_gitg_test_encoding_type_id = g_type_register_static (GITG_TEST_TYPE_REPOSITORY, "LibGitgTestEncoding", &g_define_type_info, 0);
		g_once_init_leave (&lib_gitg_test_encoding_type_id__volatile, lib_gitg_test_encoding_type_id);
	}
	return lib_gitg_test_encoding_type_id__volatile;
}



