1 /* testbidirlist.c generated by valac 0.18.0, the Vala compiler
2 * generated from testbidirlist.vala, do not modify */
6 * Copyright (C) 2011 Maciej Piechotka
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 * Maciej Piechotka <uzytkownik2@gmail.com>
27 #include <glib-object.h>
33 #define GEE_TYPE_TEST_CASE (gee_test_case_get_type ())
34 #define GEE_TEST_CASE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GEE_TYPE_TEST_CASE, GeeTestCase))
35 #define GEE_TEST_CASE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GEE_TYPE_TEST_CASE, GeeTestCaseClass))
36 #define GEE_IS_TEST_CASE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEE_TYPE_TEST_CASE))
37 #define GEE_IS_TEST_CASE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GEE_TYPE_TEST_CASE))
38 #define GEE_TEST_CASE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GEE_TYPE_TEST_CASE, GeeTestCaseClass))
40 typedef struct _GeeTestCase GeeTestCase;
41 typedef struct _GeeTestCaseClass GeeTestCaseClass;
42 typedef struct _GeeTestCasePrivate GeeTestCasePrivate;
44 #define TYPE_COLLECTION_TESTS (collection_tests_get_type ())
45 #define COLLECTION_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_COLLECTION_TESTS, CollectionTests))
46 #define COLLECTION_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_COLLECTION_TESTS, CollectionTestsClass))
47 #define IS_COLLECTION_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_COLLECTION_TESTS))
48 #define IS_COLLECTION_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_COLLECTION_TESTS))
49 #define COLLECTION_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_COLLECTION_TESTS, CollectionTestsClass))
51 typedef struct _CollectionTests CollectionTests;
52 typedef struct _CollectionTestsClass CollectionTestsClass;
53 typedef struct _CollectionTestsPrivate CollectionTestsPrivate;
55 #define TYPE_LIST_TESTS (list_tests_get_type ())
56 #define LIST_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_LIST_TESTS, ListTests))
57 #define LIST_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_LIST_TESTS, ListTestsClass))
58 #define IS_LIST_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_LIST_TESTS))
59 #define IS_LIST_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_LIST_TESTS))
60 #define LIST_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_LIST_TESTS, ListTestsClass))
62 typedef struct _ListTests ListTests;
63 typedef struct _ListTestsClass ListTestsClass;
64 typedef struct _ListTestsPrivate ListTestsPrivate;
66 #define TYPE_BIDIR_LIST_TESTS (bidir_list_tests_get_type ())
67 #define BIDIR_LIST_TESTS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_BIDIR_LIST_TESTS, BidirListTests))
68 #define BIDIR_LIST_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_BIDIR_LIST_TESTS, BidirListTestsClass))
69 #define IS_BIDIR_LIST_TESTS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_BIDIR_LIST_TESTS))
70 #define IS_BIDIR_LIST_TESTS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_BIDIR_LIST_TESTS))
71 #define BIDIR_LIST_TESTS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_BIDIR_LIST_TESTS, BidirListTestsClass))
73 typedef struct _BidirListTests BidirListTests;
74 typedef struct _BidirListTestsClass BidirListTestsClass;
75 typedef struct _BidirListTestsPrivate BidirListTestsPrivate;
76 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
77 #define _g_free0(var) (var = (g_free (var), NULL))
78 #define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
81 GObject parent_instance;
82 GeeTestCasePrivate * priv;
85 struct _GeeTestCaseClass {
86 GObjectClass parent_class;
87 void (*set_up) (GeeTestCase* self);
88 void (*tear_down) (GeeTestCase* self);
91 struct _CollectionTests {
92 GeeTestCase parent_instance;
93 CollectionTestsPrivate * priv;
94 GeeCollection* test_collection;
97 struct _CollectionTestsClass {
98 GeeTestCaseClass parent_class;
102 CollectionTests parent_instance;
103 ListTestsPrivate * priv;
106 struct _ListTestsClass {
107 CollectionTestsClass parent_class;
108 void (*test_duplicates_are_retained) (ListTests* self);
111 struct _BidirListTests {
112 ListTests parent_instance;
113 BidirListTestsPrivate * priv;
116 struct _BidirListTestsClass {
117 ListTestsClass parent_class;
120 typedef void (*GeeTestCaseTestMethod) (void* user_data);
122 static gpointer bidir_list_tests_parent_class = NULL;
124 GType gee_test_case_get_type (void) G_GNUC_CONST;
125 GType collection_tests_get_type (void) G_GNUC_CONST;
126 GType list_tests_get_type (void) G_GNUC_CONST;
127 GType bidir_list_tests_get_type (void) G_GNUC_CONST;
129 BIDIR_LIST_TESTS_DUMMY_PROPERTY
131 BidirListTests* bidir_list_tests_construct (GType object_type, const gchar* name);
132 ListTests* list_tests_construct (GType object_type, const gchar* name);
133 void gee_test_case_add_test (GeeTestCase* self, const gchar* name, GeeTestCaseTestMethod test, void* test_target, GDestroyNotify test_target_destroy_notify);
134 void bidir_list_tests_test_bidir_list_iterator (BidirListTests* self);
135 static void _bidir_list_tests_test_bidir_list_iterator_gee_test_case_test_method (gpointer self);
138 static void _bidir_list_tests_test_bidir_list_iterator_gee_test_case_test_method (gpointer self) {
139 bidir_list_tests_test_bidir_list_iterator (self);
143 BidirListTests* bidir_list_tests_construct (GType object_type, const gchar* name) {
144 BidirListTests * self = NULL;
146 g_return_val_if_fail (name != NULL, NULL);
148 self = (BidirListTests*) list_tests_construct (object_type, _tmp0_);
149 gee_test_case_add_test ((GeeTestCase*) self, "[List] bi-directional list iterator", _bidir_list_tests_test_bidir_list_iterator_gee_test_case_test_method, g_object_ref (self), g_object_unref);
154 static gpointer _g_object_ref0 (gpointer self) {
155 return self ? g_object_ref (self) : NULL;
159 void bidir_list_tests_test_bidir_list_iterator (BidirListTests* self) {
160 GeeCollection* _tmp0_;
161 GeeBidirList* _tmp1_;
162 GeeBidirList* test_list;
163 GeeBidirListIterator* _tmp2_ = NULL;
164 GeeBidirListIterator* iterator;
165 GeeBidirListIterator* _tmp3_;
166 gboolean _tmp4_ = FALSE;
167 GeeBidirListIterator* _tmp5_;
168 gboolean _tmp6_ = FALSE;
169 GeeBidirListIterator* _tmp7_;
170 gboolean _tmp8_ = FALSE;
171 GeeBidirListIterator* _tmp9_;
172 gboolean _tmp10_ = FALSE;
173 GeeBidirListIterator* _tmp11_;
174 gboolean _tmp12_ = FALSE;
175 GeeBidirListIterator* _tmp13_;
176 gboolean _tmp14_ = FALSE;
177 gboolean _tmp15_ = FALSE;
178 gboolean _tmp16_ = FALSE;
179 gboolean _tmp17_ = FALSE;
180 GeeBidirListIterator* _tmp18_ = NULL;
181 GeeBidirListIterator* _tmp19_;
182 gboolean _tmp20_ = FALSE;
183 GeeBidirListIterator* _tmp21_;
184 gpointer _tmp22_ = NULL;
186 GeeBidirListIterator* _tmp24_;
188 GeeBidirListIterator* _tmp26_;
189 GeeBidirListIterator* _tmp27_;
190 gboolean _tmp28_ = FALSE;
191 GeeBidirListIterator* _tmp29_;
192 gpointer _tmp30_ = NULL;
194 GeeBidirListIterator* _tmp32_;
196 GeeBidirListIterator* _tmp34_;
199 GeeBidirListIterator* _tmp37_;
201 GeeBidirListIterator* _tmp39_;
204 GeeBidirListIterator* _tmp42_;
206 GeeBidirListIterator* _tmp44_;
209 GeeBidirListIterator* _tmp47_;
211 GeeBidirListIterator* _tmp49_;
212 gboolean _tmp50_ = FALSE;
213 GeeBidirListIterator* _tmp51_;
214 gpointer _tmp52_ = NULL;
216 GeeBidirListIterator* _tmp54_;
218 GeeBidirListIterator* _tmp56_;
219 GeeBidirListIterator* _tmp57_;
220 gboolean _tmp58_ = FALSE;
221 GeeBidirListIterator* _tmp59_;
222 gboolean _tmp60_ = FALSE;
223 GeeBidirListIterator* _tmp61_;
224 gboolean _tmp62_ = FALSE;
225 GeeBidirListIterator* _tmp63_;
226 gpointer _tmp64_ = NULL;
228 GeeBidirListIterator* _tmp66_;
230 GeeBidirListIterator* _tmp68_;
231 gboolean _tmp69_ = FALSE;
232 GeeBidirListIterator* _tmp70_;
233 gboolean _tmp71_ = FALSE;
234 GeeBidirListIterator* _tmp72_;
235 gboolean _tmp73_ = FALSE;
236 GeeBidirListIterator* _tmp74_;
237 gpointer _tmp75_ = NULL;
239 GeeBidirListIterator* _tmp77_;
241 GeeBidirListIterator* _tmp79_;
242 gboolean _tmp80_ = FALSE;
243 GeeBidirListIterator* _tmp81_;
244 gboolean _tmp82_ = FALSE;
245 GeeBidirListIterator* _tmp83_;
246 gboolean _tmp84_ = FALSE;
247 GeeBidirListIterator* _tmp85_;
248 gboolean _tmp86_ = FALSE;
249 GeeBidirListIterator* _tmp87_;
250 gpointer _tmp88_ = NULL;
252 GeeBidirListIterator* _tmp90_;
254 GeeBidirListIterator* _tmp92_;
255 gboolean _tmp93_ = FALSE;
256 GeeBidirListIterator* _tmp94_;
257 gboolean _tmp95_ = FALSE;
258 GeeBidirListIterator* _tmp96_;
259 gpointer _tmp97_ = NULL;
261 GeeBidirListIterator* _tmp99_;
263 GeeBidirListIterator* _tmp101_;
264 gboolean _tmp102_ = FALSE;
265 GeeBidirListIterator* _tmp103_;
266 gboolean _tmp104_ = FALSE;
267 GeeBidirListIterator* _tmp105_;
268 gpointer _tmp106_ = NULL;
270 GeeBidirListIterator* _tmp108_;
272 GeeBidirListIterator* _tmp110_;
273 gboolean _tmp111_ = FALSE;
274 GeeBidirListIterator* _tmp112_;
275 gboolean _tmp113_ = FALSE;
276 GeeBidirListIterator* _tmp114_;
277 gpointer _tmp115_ = NULL;
279 GeeBidirListIterator* _tmp117_;
281 g_return_if_fail (self != NULL);
282 _tmp0_ = ((CollectionTests*) self)->test_collection;
283 _tmp1_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp0_, GEE_TYPE_BIDIR_LIST) ? ((GeeBidirList*) _tmp0_) : NULL);
285 _vala_assert (test_list != NULL, "test_list != null");
286 _tmp2_ = gee_bidir_list_bidir_list_iterator (test_list);
289 _tmp4_ = gee_iterator_has_next ((GeeIterator*) _tmp3_);
290 _vala_assert (!_tmp4_, "! iterator.has_next ()");
292 _tmp6_ = gee_iterator_next ((GeeIterator*) _tmp5_);
293 _vala_assert (!_tmp6_, "! iterator.next ()");
295 _tmp8_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp7_);
296 _vala_assert (!_tmp8_, "! iterator.has_previous ()");
298 _tmp10_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp9_);
299 _vala_assert (!_tmp10_, "! iterator.previous ()");
301 _tmp12_ = gee_bidir_iterator_first ((GeeBidirIterator*) _tmp11_);
302 _vala_assert (!_tmp12_, "! iterator.first ()");
304 _tmp14_ = gee_bidir_iterator_last ((GeeBidirIterator*) _tmp13_);
305 _vala_assert (!_tmp14_, "! iterator.last ()");
306 _tmp15_ = gee_collection_add ((GeeCollection*) test_list, "one");
307 _vala_assert (_tmp15_, "test_list.add (\"one\")");
308 _tmp16_ = gee_collection_add ((GeeCollection*) test_list, "two");
309 _vala_assert (_tmp16_, "test_list.add (\"two\")");
310 _tmp17_ = gee_collection_add ((GeeCollection*) test_list, "three");
311 _vala_assert (_tmp17_, "test_list.add (\"three\")");
312 _tmp18_ = gee_bidir_list_bidir_list_iterator (test_list);
313 _g_object_unref0 (iterator);
316 _tmp20_ = gee_iterator_next ((GeeIterator*) _tmp19_);
317 _vala_assert (_tmp20_, "iterator.next()");
319 _tmp22_ = gee_iterator_get ((GeeIterator*) _tmp21_);
320 _tmp23_ = (gchar*) _tmp22_;
321 _vala_assert (g_strcmp0 (_tmp23_, "one") == 0, "iterator.get () == \"one\"");
324 _tmp25_ = gee_list_iterator_index ((GeeListIterator*) _tmp24_);
325 _vala_assert (_tmp25_ == 0, "iterator.index () == 0");
327 gee_list_iterator_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp26_, GEE_TYPE_LIST_ITERATOR, GeeListIterator), "new one");
329 _tmp28_ = gee_iterator_next ((GeeIterator*) _tmp27_);
330 _vala_assert (_tmp28_, "iterator.next()");
332 _tmp30_ = gee_iterator_get ((GeeIterator*) _tmp29_);
333 _tmp31_ = (gchar*) _tmp30_;
334 _vala_assert (g_strcmp0 (_tmp31_, "two") == 0, "iterator.get () == \"two\"");
337 _tmp33_ = gee_list_iterator_index ((GeeListIterator*) _tmp32_);
338 _vala_assert (_tmp33_ == 1, "iterator.index () == 1");
340 gee_list_iterator_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp34_, GEE_TYPE_LIST_ITERATOR, GeeListIterator), "new two");
341 _tmp35_ = gee_collection_get_size ((GeeCollection*) test_list);
343 _vala_assert (_tmp36_ == 3, "test_list.size == 3");
345 _tmp38_ = gee_list_iterator_index ((GeeListIterator*) _tmp37_);
346 _vala_assert (_tmp38_ == 1, "iterator.index () == 1");
348 gee_bidir_list_iterator_insert (_tmp39_, "before two");
349 _tmp40_ = gee_collection_get_size ((GeeCollection*) test_list);
351 _vala_assert (_tmp41_ == 4, "test_list.size == 4");
353 _tmp43_ = gee_list_iterator_index ((GeeListIterator*) _tmp42_);
354 _vala_assert (_tmp43_ == 2, "iterator.index () == 2");
356 gee_list_iterator_add ((GeeListIterator*) _tmp44_, "after two");
357 _tmp45_ = gee_collection_get_size ((GeeCollection*) test_list);
359 _vala_assert (_tmp46_ == 5, "test_list.size == 5");
361 _tmp48_ = gee_list_iterator_index ((GeeListIterator*) _tmp47_);
362 _vala_assert (_tmp48_ == 3, "iterator.index () == 3");
364 _tmp50_ = gee_iterator_next ((GeeIterator*) _tmp49_);
365 _vala_assert (_tmp50_, "iterator.next()");
367 _tmp52_ = gee_iterator_get ((GeeIterator*) _tmp51_);
368 _tmp53_ = (gchar*) _tmp52_;
369 _vala_assert (g_strcmp0 (_tmp53_, "three") == 0, "iterator.get () == \"three\"");
372 _tmp55_ = gee_list_iterator_index ((GeeListIterator*) _tmp54_);
373 _vala_assert (_tmp55_ == 4, "iterator.index () == 4");
375 gee_list_iterator_set (G_TYPE_CHECK_INSTANCE_CAST (_tmp56_, GEE_TYPE_LIST_ITERATOR, GeeListIterator), "new three");
377 _tmp58_ = gee_iterator_has_next ((GeeIterator*) _tmp57_);
378 _vala_assert (!_tmp58_, "! iterator.has_next ()");
380 _tmp60_ = gee_iterator_next ((GeeIterator*) _tmp59_);
381 _vala_assert (!_tmp60_, "! iterator.next ()");
383 _tmp62_ = gee_bidir_iterator_first ((GeeBidirIterator*) _tmp61_);
384 _vala_assert (_tmp62_, "iterator.first ()");
386 _tmp64_ = gee_iterator_get ((GeeIterator*) _tmp63_);
387 _tmp65_ = (gchar*) _tmp64_;
388 _vala_assert (g_strcmp0 (_tmp65_, "new one") == 0, "iterator.get () == \"new one\"");
391 _tmp67_ = gee_list_iterator_index ((GeeListIterator*) _tmp66_);
392 _vala_assert (_tmp67_ == 0, "iterator.index () == 0");
394 _tmp69_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp68_);
395 _vala_assert (!_tmp69_, "! iterator.has_previous ()");
397 _tmp71_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp70_);
398 _vala_assert (!_tmp71_, "! iterator.previous ()");
400 _tmp73_ = gee_bidir_iterator_last ((GeeBidirIterator*) _tmp72_);
401 _vala_assert (_tmp73_, "iterator.last ()");
403 _tmp75_ = gee_iterator_get ((GeeIterator*) _tmp74_);
404 _tmp76_ = (gchar*) _tmp75_;
405 _vala_assert (g_strcmp0 (_tmp76_, "new three") == 0, "iterator.get () == \"new three\"");
408 _tmp78_ = gee_list_iterator_index ((GeeListIterator*) _tmp77_);
409 _vala_assert (_tmp78_ == 4, "iterator.index () == 4");
411 _tmp80_ = gee_iterator_has_next ((GeeIterator*) _tmp79_);
412 _vala_assert (!_tmp80_, "! iterator.has_next ()");
414 _tmp82_ = gee_iterator_next ((GeeIterator*) _tmp81_);
415 _vala_assert (!_tmp82_, "! iterator.next ()");
417 _tmp84_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp83_);
418 _vala_assert (_tmp84_, "iterator.has_previous ()");
420 _tmp86_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp85_);
421 _vala_assert (_tmp86_, "iterator.previous ()");
423 _tmp88_ = gee_iterator_get ((GeeIterator*) _tmp87_);
424 _tmp89_ = (gchar*) _tmp88_;
425 _vala_assert (g_strcmp0 (_tmp89_, "after two") == 0, "iterator.get () == \"after two\"");
428 _tmp91_ = gee_list_iterator_index ((GeeListIterator*) _tmp90_);
429 _vala_assert (_tmp91_ == 3, "iterator.index () == 3");
431 _tmp93_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp92_);
432 _vala_assert (_tmp93_, "iterator.has_previous ()");
434 _tmp95_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp94_);
435 _vala_assert (_tmp95_, "iterator.previous ()");
437 _tmp97_ = gee_iterator_get ((GeeIterator*) _tmp96_);
438 _tmp98_ = (gchar*) _tmp97_;
439 _vala_assert (g_strcmp0 (_tmp98_, "new two") == 0, "iterator.get () == \"new two\"");
442 _tmp100_ = gee_list_iterator_index ((GeeListIterator*) _tmp99_);
443 _vala_assert (_tmp100_ == 2, "iterator.index () == 2");
445 _tmp102_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp101_);
446 _vala_assert (_tmp102_, "iterator.has_previous ()");
448 _tmp104_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp103_);
449 _vala_assert (_tmp104_, "iterator.previous ()");
451 _tmp106_ = gee_iterator_get ((GeeIterator*) _tmp105_);
452 _tmp107_ = (gchar*) _tmp106_;
453 _vala_assert (g_strcmp0 (_tmp107_, "before two") == 0, "iterator.get () == \"before two\"");
456 _tmp109_ = gee_list_iterator_index ((GeeListIterator*) _tmp108_);
457 _vala_assert (_tmp109_ == 1, "iterator.index () == 1");
459 _tmp111_ = gee_bidir_iterator_has_previous ((GeeBidirIterator*) _tmp110_);
460 _vala_assert (_tmp111_, "iterator.has_previous ()");
462 _tmp113_ = gee_bidir_iterator_previous ((GeeBidirIterator*) _tmp112_);
463 _vala_assert (_tmp113_, "iterator.previous ()");
465 _tmp115_ = gee_iterator_get ((GeeIterator*) _tmp114_);
466 _tmp116_ = (gchar*) _tmp115_;
467 _vala_assert (g_strcmp0 (_tmp116_, "new one") == 0, "iterator.get () == \"new one\"");
470 _tmp118_ = gee_list_iterator_index ((GeeListIterator*) _tmp117_);
471 _vala_assert (_tmp118_ == 0, "iterator.index () == 0");
472 _g_object_unref0 (iterator);
473 _g_object_unref0 (test_list);
477 static void bidir_list_tests_class_init (BidirListTestsClass * klass) {
478 bidir_list_tests_parent_class = g_type_class_peek_parent (klass);
482 static void bidir_list_tests_instance_init (BidirListTests * self) {
486 GType bidir_list_tests_get_type (void) {
487 static volatile gsize bidir_list_tests_type_id__volatile = 0;
488 if (g_once_init_enter (&bidir_list_tests_type_id__volatile)) {
489 static const GTypeInfo g_define_type_info = { sizeof (BidirListTestsClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) bidir_list_tests_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (BidirListTests), 0, (GInstanceInitFunc) bidir_list_tests_instance_init, NULL };
490 GType bidir_list_tests_type_id;
491 bidir_list_tests_type_id = g_type_register_static (TYPE_LIST_TESTS, "BidirListTests", &g_define_type_info, G_TYPE_FLAG_ABSTRACT);
492 g_once_init_leave (&bidir_list_tests_type_id__volatile, bidir_list_tests_type_id);
494 return bidir_list_tests_type_id__volatile;