Back to index

libunity  5.92.0
Classes | Defines | Typedefs | Functions | Variables
test-filters.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <unity-internal.h>
#include <stdlib.h>
#include <string.h>
#include <gobject/gvaluecollector.h>

Go to the source code of this file.

Classes

struct  _UnityTestFilterSuite
struct  _UnityTestFilterSuiteClass
struct  _UnityTestParamSpecFilterSuite

Defines

#define UNITY_TEST_TYPE_FILTER_SUITE   (unity_test_filter_suite_get_type ())
#define UNITY_TEST_FILTER_SUITE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TEST_TYPE_FILTER_SUITE, UnityTestFilterSuite))
#define UNITY_TEST_FILTER_SUITE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TEST_TYPE_FILTER_SUITE, UnityTestFilterSuiteClass))
#define UNITY_TEST_IS_FILTER_SUITE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TEST_TYPE_FILTER_SUITE))
#define UNITY_TEST_IS_FILTER_SUITE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TEST_TYPE_FILTER_SUITE))
#define UNITY_TEST_FILTER_SUITE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TEST_TYPE_FILTER_SUITE, UnityTestFilterSuiteClass))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _vala_assert(expr, msg)   if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

Typedefs

typedef struct _UnityTestFilterSuite
typedef struct _UnityTestFilterSuiteClass
typedef struct _UnityTestFilterSuitePrivate
typedef struct _UnityTestParamSpecFilterSuite

Functions

gpointer unity_test_filter_suite_ref (gpointer instance)
void unity_test_filter_suite_unref (gpointer instance)
GParamSpec * unity_test_param_spec_filter_suite (const gchar *name, const gchar *nick, const gchar *blurb, GType object_type, GParamFlags flags)
void unity_test_value_set_filter_suite (GValue *value, gpointer v_object)
void unity_test_value_take_filter_suite (GValue *value, gpointer v_object)
gpointer unity_test_value_get_filter_suite (const GValue *value)
GType unity_test_filter_suite_get_type (void)
UnityTestFilterSuite * unity_test_filter_suite_new (void)
UnityTestFilterSuite * unity_test_filter_suite_construct (GType object_type)
void unity_test_filter_suite_test_options_filter_empty (void)
static void _unity_test_filter_suite_test_options_filter_empty_gtest_data_func (gpointer self)
void unity_test_filter_suite_test_options_filter_sort_manual (void)
static void _unity_test_filter_suite_test_options_filter_sort_manual_gtest_data_func (gpointer self)
void unity_test_filter_suite_test_options_filter_sort_display_name (void)
static void _unity_test_filter_suite_test_options_filter_sort_display_name_gtest_data_func (gpointer self)
void unity_test_filter_suite_test_options_filter_sort_id (void)
static void _unity_test_filter_suite_test_options_filter_sort_id_gtest_data_func (gpointer self)
static gint unity_test_filter_suite_find_filter_offset_by_id (UnityOptionsFilter *filter, const gchar *id)
static void unity_test_filter_suite_finalize (UnityTestFilterSuite *obj)
static gpointer _g_object_ref0 (gpointer self)
static void unity_test_value_filter_suite_init (GValue *value)
static void unity_test_value_filter_suite_free_value (GValue *value)
static void unity_test_value_filter_suite_copy_value (const GValue *src_value, GValue *dest_value)
static gpointer unity_test_value_filter_suite_peek_pointer (const GValue *value)
static gchar * unity_test_value_filter_suite_collect_value (GValue *value, guint n_collect_values, GTypeCValue *collect_values, guint collect_flags)
static gchar * unity_test_value_filter_suite_lcopy_value (const GValue *value, guint n_collect_values, GTypeCValue *collect_values, guint collect_flags)
static void unity_test_filter_suite_class_init (UnityTestFilterSuiteClass *klass)
static void unity_test_filter_suite_instance_init (UnityTestFilterSuite *self)

Variables

static gpointer unity_test_filter_suite_parent_class = NULL

Class Documentation

struct _UnityTestFilterSuite

Definition at line 46 of file test-filters.c.

Class Members
GTypeInstance parent_instance
UnityTestFilterSuitePrivate * priv
volatile int ref_count
struct _UnityTestParamSpecFilterSuite

Definition at line 57 of file test-filters.c.

Class Members
GParamSpec parent_instance

Define Documentation

#define _g_object_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

Definition at line 42 of file test-filters.c.

#define _vala_assert (   expr,
  msg 
)    if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);

Definition at line 44 of file test-filters.c.

#define UNITY_TEST_FILTER_SUITE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TEST_TYPE_FILTER_SUITE, UnityTestFilterSuite))

Definition at line 33 of file test-filters.c.

#define UNITY_TEST_FILTER_SUITE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TEST_TYPE_FILTER_SUITE, UnityTestFilterSuiteClass))

Definition at line 34 of file test-filters.c.

#define UNITY_TEST_FILTER_SUITE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TEST_TYPE_FILTER_SUITE, UnityTestFilterSuiteClass))

Definition at line 37 of file test-filters.c.

#define UNITY_TEST_IS_FILTER_SUITE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TEST_TYPE_FILTER_SUITE))

Definition at line 35 of file test-filters.c.

#define UNITY_TEST_IS_FILTER_SUITE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TEST_TYPE_FILTER_SUITE))

Definition at line 36 of file test-filters.c.

Definition at line 32 of file test-filters.c.


Typedef Documentation

typedef struct _UnityTestFilterSuite

Definition at line 39 of file test-filters.c.

Definition at line 40 of file test-filters.c.

Definition at line 41 of file test-filters.c.

Definition at line 43 of file test-filters.c.


Function Documentation

static gpointer _g_object_ref0 ( gpointer  self) [static]

Definition at line 138 of file test-filters.c.

                                               {
       return self ? g_object_ref (self) : NULL;
}

Here is the caller graph for this function:

Definition at line 88 of file test-filters.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 98 of file test-filters.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 103 of file test-filters.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 93 of file test-filters.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_test_filter_suite_class_init ( UnityTestFilterSuiteClass *  klass) [static]

Definition at line 505 of file test-filters.c.

                                                                                   {
       unity_test_filter_suite_parent_class = g_type_class_peek_parent (klass);
       UNITY_TEST_FILTER_SUITE_CLASS (klass)->finalize = unity_test_filter_suite_finalize;
}

Here is the call graph for this function:

UnityTestFilterSuite * unity_test_filter_suite_construct ( GType  object_type)

Definition at line 108 of file test-filters.c.

                                                                            {
       UnityTestFilterSuite* self = NULL;
       self = (UnityTestFilterSuite*) g_type_create_instance (object_type);
       g_test_add_data_func ("/Unit/Filters/OptionsFilter/Empty", NULL, _unity_test_filter_suite_test_options_filter_empty_gtest_data_func);
       g_test_add_data_func ("/Unit/Filters/OptionsFilter/SortManual", NULL, _unity_test_filter_suite_test_options_filter_sort_manual_gtest_data_func);
       g_test_add_data_func ("/Unit/Filters/OptionsFilter/SortDisplayName", NULL, _unity_test_filter_suite_test_options_filter_sort_display_name_gtest_data_func);
       g_test_add_data_func ("/Unit/Filters/OptionsFilter/SortId", NULL, _unity_test_filter_suite_test_options_filter_sort_id_gtest_data_func);
       return self;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_test_filter_suite_finalize ( UnityTestFilterSuite *  obj) [static]

Definition at line 516 of file test-filters.c.

                                                                         {
       UnityTestFilterSuite * self;
       self = G_TYPE_CHECK_INSTANCE_CAST (obj, UNITY_TEST_TYPE_FILTER_SUITE, UnityTestFilterSuite);
}

Here is the caller graph for this function:

static gint unity_test_filter_suite_find_filter_offset_by_id ( UnityOptionsFilter *  filter,
const gchar *  id 
) [static]

Definition at line 143 of file test-filters.c.

                                                                                                           {
       gint result = 0;
       gint i;
       UnityOptionsFilter* _tmp0_;
       GList* _tmp1_;
       g_return_val_if_fail (filter != NULL, 0);
       g_return_val_if_fail (id != NULL, 0);
       i = 0;
       _tmp0_ = filter;
       _tmp1_ = _tmp0_->options;
       {
              GList* f_collection = NULL;
              GList* f_it = NULL;
              f_collection = _tmp1_;
              for (f_it = f_collection; f_it != NULL; f_it = f_it->next) {
                     UnityFilterOption* _tmp2_;
                     UnityFilterOption* f = NULL;
                     _tmp2_ = _g_object_ref0 ((UnityFilterOption*) f_it->data);
                     f = _tmp2_;
                     {
                            UnityFilterOption* _tmp3_;
                            const gchar* _tmp4_;
                            const gchar* _tmp5_;
                            const gchar* _tmp6_;
                            gint _tmp7_;
                            _tmp3_ = f;
                            _tmp4_ = unity_filter_option_get_id (_tmp3_);
                            _tmp5_ = _tmp4_;
                            _tmp6_ = id;
                            if (g_strcmp0 (_tmp5_, _tmp6_) == 0) {
                                   result = i;
                                   _g_object_unref0 (f);
                                   return result;
                            }
                            _tmp7_ = i;
                            i = _tmp7_ + 1;
                            _g_object_unref0 (f);
                     }
              }
       }
       result = -1;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 70 of file test-filters.c.

      {
       UNITY_TEST_FILTER_SUITE_DUMMY_PROPERTY
};
static void unity_test_filter_suite_instance_init ( UnityTestFilterSuite *  self) [static]

Definition at line 511 of file test-filters.c.

                                                                                {
       self->ref_count = 1;
}
UnityTestFilterSuite * unity_test_filter_suite_new ( void  )

Definition at line 119 of file test-filters.c.

Here is the call graph for this function:

Here is the caller graph for this function:

gpointer unity_test_filter_suite_ref ( gpointer  instance)

Definition at line 536 of file test-filters.c.

                                                         {
       UnityTestFilterSuite* self;
       self = instance;
       g_atomic_int_inc (&self->ref_count);
       return instance;
}

Here is the caller graph for this function:

Definition at line 124 of file test-filters.c.

                                                              {
       UnityOptionsFilter* _tmp0_;
       UnityOptionsFilter* filter;
       GList* _tmp1_;
       guint _tmp2_ = 0U;
       _tmp0_ = unity_options_filter_new ();
       filter = _tmp0_;
       _tmp1_ = filter->options;
       _tmp2_ = g_list_length (_tmp1_);
       _vala_assert (_tmp2_ == ((guint) 0), "filter.options.length () == 0");
       _g_object_unref0 (filter);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 243 of file test-filters.c.

                                                                          {
       UnityOptionsFilter* _tmp0_;
       UnityOptionsFilter* filter;
       UnityOptionsFilterSortType _tmp1_;
       UnityOptionsFilterSortType _tmp2_;
       UnityFilterOption* _tmp3_ = NULL;
       UnityFilterOption* _tmp4_;
       UnityFilterOption* _tmp5_ = NULL;
       UnityFilterOption* _tmp6_;
       UnityFilterOption* _tmp7_ = NULL;
       UnityFilterOption* _tmp8_;
       gint _tmp9_ = 0;
       gint _tmp10_ = 0;
       gint _tmp11_ = 0;
       UnityFilterOption* _tmp12_ = NULL;
       UnityFilterOption* _tmp13_;
       gint _tmp14_ = 0;
       gint _tmp15_ = 0;
       gint _tmp16_ = 0;
       gint _tmp17_ = 0;
       UnityFilterOption* _tmp18_ = NULL;
       UnityFilterOption* _tmp19_;
       gint _tmp20_ = 0;
       gint _tmp21_ = 0;
       gint _tmp22_ = 0;
       gint _tmp23_ = 0;
       gint _tmp24_ = 0;
       _tmp0_ = unity_options_filter_new ();
       filter = _tmp0_;
       unity_options_filter_set_sort_type (filter, UNITY_OPTIONS_FILTER_SORT_TYPE_DISPLAY_NAME);
       _tmp1_ = unity_options_filter_get_sort_type (filter);
       _tmp2_ = _tmp1_;
       _vala_assert (_tmp2_ == UNITY_OPTIONS_FILTER_SORT_TYPE_DISPLAY_NAME, "filter.sort_type == OptionsFilter.SortType.DISPLAY_NAME");
       _tmp3_ = unity_options_filter_add_option (filter, "accessories", "Accessories", NULL);
       _tmp4_ = _tmp3_;
       _g_object_unref0 (_tmp4_);
       _tmp5_ = unity_options_filter_add_option (filter, "bccessories", "Bccessories", NULL);
       _tmp6_ = _tmp5_;
       _g_object_unref0 (_tmp6_);
       _tmp7_ = unity_options_filter_add_option (filter, "xenomorphs", "Xenomorphic Creatures", NULL);
       _tmp8_ = _tmp7_;
       _g_object_unref0 (_tmp8_);
       _tmp9_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "accessories");
       _vala_assert (_tmp9_ == 0, "find_filter_offset_by_id (filter, \"accessories\") == 0");
       _tmp10_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "bccessories");
       _vala_assert (_tmp10_ == 1, "find_filter_offset_by_id (filter, \"bccessories\") == 1");
       _tmp11_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "xenomorphs");
       _vala_assert (_tmp11_ == 2, "find_filter_offset_by_id (filter, \"xenomorphs\") == 2");
       _tmp12_ = unity_options_filter_add_option (filter, "weirdanimal", "Aardvaark", NULL);
       _tmp13_ = _tmp12_;
       _g_object_unref0 (_tmp13_);
       _tmp14_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "weirdanimal");
       _vala_assert (_tmp14_ == 0, "find_filter_offset_by_id (filter, \"weirdanimal\") == 0");
       _tmp15_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "accessories");
       _vala_assert (_tmp15_ == 1, "find_filter_offset_by_id (filter, \"accessories\") == 1");
       _tmp16_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "bccessories");
       _vala_assert (_tmp16_ == 2, "find_filter_offset_by_id (filter, \"bccessories\") == 2");
       _tmp17_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "xenomorphs");
       _vala_assert (_tmp17_ == 3, "find_filter_offset_by_id (filter, \"xenomorphs\") == 3");
       _tmp18_ = unity_options_filter_add_option (filter, "zooanimal", "Zebra", NULL);
       _tmp19_ = _tmp18_;
       _g_object_unref0 (_tmp19_);
       _tmp20_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "weirdanimal");
       _vala_assert (_tmp20_ == 0, "find_filter_offset_by_id (filter, \"weirdanimal\") == 0");
       _tmp21_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "accessories");
       _vala_assert (_tmp21_ == 1, "find_filter_offset_by_id (filter, \"accessories\") == 1");
       _tmp22_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "bccessories");
       _vala_assert (_tmp22_ == 2, "find_filter_offset_by_id (filter, \"bccessories\") == 2");
       _tmp23_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "xenomorphs");
       _vala_assert (_tmp23_ == 3, "find_filter_offset_by_id (filter, \"xenomorphs\") == 3");
       _tmp24_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "zooanimal");
       _vala_assert (_tmp24_ == 4, "find_filter_offset_by_id (filter, \"zooanimal\") == 4");
       _g_object_unref0 (filter);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 319 of file test-filters.c.

                                                                {
       UnityOptionsFilter* _tmp0_;
       UnityOptionsFilter* filter;
       UnityOptionsFilterSortType _tmp1_;
       UnityOptionsFilterSortType _tmp2_;
       UnityFilterOption* _tmp3_ = NULL;
       UnityFilterOption* _tmp4_;
       UnityFilterOption* _tmp5_ = NULL;
       UnityFilterOption* _tmp6_;
       UnityFilterOption* _tmp7_ = NULL;
       UnityFilterOption* _tmp8_;
       gint _tmp9_ = 0;
       gint _tmp10_ = 0;
       gint _tmp11_ = 0;
       UnityFilterOption* _tmp12_ = NULL;
       UnityFilterOption* _tmp13_;
       gint _tmp14_ = 0;
       gint _tmp15_ = 0;
       gint _tmp16_ = 0;
       gint _tmp17_ = 0;
       UnityFilterOption* _tmp18_ = NULL;
       UnityFilterOption* _tmp19_;
       gint _tmp20_ = 0;
       gint _tmp21_ = 0;
       gint _tmp22_ = 0;
       gint _tmp23_ = 0;
       gint _tmp24_ = 0;
       _tmp0_ = unity_options_filter_new ();
       filter = _tmp0_;
       unity_options_filter_set_sort_type (filter, UNITY_OPTIONS_FILTER_SORT_TYPE_ID);
       _tmp1_ = unity_options_filter_get_sort_type (filter);
       _tmp2_ = _tmp1_;
       _vala_assert (_tmp2_ == UNITY_OPTIONS_FILTER_SORT_TYPE_ID, "filter.sort_type == OptionsFilter.SortType.ID");
       _tmp3_ = unity_options_filter_add_option (filter, "accessories", "Accessories", NULL);
       _tmp4_ = _tmp3_;
       _g_object_unref0 (_tmp4_);
       _tmp5_ = unity_options_filter_add_option (filter, "bccessories", "Bccessories", NULL);
       _tmp6_ = _tmp5_;
       _g_object_unref0 (_tmp6_);
       _tmp7_ = unity_options_filter_add_option (filter, "xenomorphs", "Xenomorphic Creatures", NULL);
       _tmp8_ = _tmp7_;
       _g_object_unref0 (_tmp8_);
       _tmp9_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "accessories");
       _vala_assert (_tmp9_ == 0, "find_filter_offset_by_id (filter, \"accessories\") == 0");
       _tmp10_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "bccessories");
       _vala_assert (_tmp10_ == 1, "find_filter_offset_by_id (filter, \"bccessories\") == 1");
       _tmp11_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "xenomorphs");
       _vala_assert (_tmp11_ == 2, "find_filter_offset_by_id (filter, \"xenomorphs\") == 2");
       _tmp12_ = unity_options_filter_add_option (filter, "weirdanimal", "Aardvaark", NULL);
       _tmp13_ = _tmp12_;
       _g_object_unref0 (_tmp13_);
       _tmp14_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "accessories");
       _vala_assert (_tmp14_ == 0, "find_filter_offset_by_id (filter, \"accessories\") == 0");
       _tmp15_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "bccessories");
       _vala_assert (_tmp15_ == 1, "find_filter_offset_by_id (filter, \"bccessories\") == 1");
       _tmp16_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "weirdanimal");
       _vala_assert (_tmp16_ == 2, "find_filter_offset_by_id (filter, \"weirdanimal\") == 2");
       _tmp17_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "xenomorphs");
       _vala_assert (_tmp17_ == 3, "find_filter_offset_by_id (filter, \"xenomorphs\") == 3");
       _tmp18_ = unity_options_filter_add_option (filter, "zooanimal", "Zebra", NULL);
       _tmp19_ = _tmp18_;
       _g_object_unref0 (_tmp19_);
       _tmp20_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "accessories");
       _vala_assert (_tmp20_ == 0, "find_filter_offset_by_id (filter, \"accessories\") == 0");
       _tmp21_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "bccessories");
       _vala_assert (_tmp21_ == 1, "find_filter_offset_by_id (filter, \"bccessories\") == 1");
       _tmp22_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "weirdanimal");
       _vala_assert (_tmp22_ == 2, "find_filter_offset_by_id (filter, \"weirdanimal\") == 2");
       _tmp23_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "xenomorphs");
       _vala_assert (_tmp23_ == 3, "find_filter_offset_by_id (filter, \"xenomorphs\") == 3");
       _tmp24_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "zooanimal");
       _vala_assert (_tmp24_ == 4, "find_filter_offset_by_id (filter, \"zooanimal\") == 4");
       _g_object_unref0 (filter);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 188 of file test-filters.c.

                                                                    {
       UnityOptionsFilter* _tmp0_;
       UnityOptionsFilter* filter;
       UnityOptionsFilterSortType _tmp1_;
       UnityOptionsFilterSortType _tmp2_;
       UnityFilterOption* _tmp3_ = NULL;
       UnityFilterOption* _tmp4_;
       UnityFilterOption* _tmp5_ = NULL;
       UnityFilterOption* _tmp6_;
       UnityFilterOption* _tmp7_ = NULL;
       UnityFilterOption* _tmp8_;
       gint _tmp9_ = 0;
       gint _tmp10_ = 0;
       gint _tmp11_ = 0;
       UnityFilterOption* _tmp12_ = NULL;
       UnityFilterOption* _tmp13_;
       gint _tmp14_ = 0;
       gint _tmp15_ = 0;
       gint _tmp16_ = 0;
       gint _tmp17_ = 0;
       _tmp0_ = unity_options_filter_new ();
       filter = _tmp0_;
       _tmp1_ = unity_options_filter_get_sort_type (filter);
       _tmp2_ = _tmp1_;
       _vala_assert (_tmp2_ == UNITY_OPTIONS_FILTER_SORT_TYPE_MANUAL, "filter.sort_type == OptionsFilter.SortType.MANUAL");
       _tmp3_ = unity_options_filter_add_option (filter, "accessories", "Accessories", NULL);
       _tmp4_ = _tmp3_;
       _g_object_unref0 (_tmp4_);
       _tmp5_ = unity_options_filter_add_option (filter, "bccessories", "Bccessories", NULL);
       _tmp6_ = _tmp5_;
       _g_object_unref0 (_tmp6_);
       _tmp7_ = unity_options_filter_add_option (filter, "xenomorphs", "Xenomorphic Creatures", NULL);
       _tmp8_ = _tmp7_;
       _g_object_unref0 (_tmp8_);
       _tmp9_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "accessories");
       _vala_assert (_tmp9_ == 0, "find_filter_offset_by_id (filter, \"accessories\") == 0");
       _tmp10_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "bccessories");
       _vala_assert (_tmp10_ == 1, "find_filter_offset_by_id (filter, \"bccessories\") == 1");
       _tmp11_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "xenomorphs");
       _vala_assert (_tmp11_ == 2, "find_filter_offset_by_id (filter, \"xenomorphs\") == 2");
       _tmp12_ = unity_options_filter_add_option (filter, "aardvaark", "Weird Animal", NULL);
       _tmp13_ = _tmp12_;
       _g_object_unref0 (_tmp13_);
       _tmp14_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "accessories");
       _vala_assert (_tmp14_ == 0, "find_filter_offset_by_id (filter, \"accessories\") == 0");
       _tmp15_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "bccessories");
       _vala_assert (_tmp15_ == 1, "find_filter_offset_by_id (filter, \"bccessories\") == 1");
       _tmp16_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "xenomorphs");
       _vala_assert (_tmp16_ == 2, "find_filter_offset_by_id (filter, \"xenomorphs\") == 2");
       _tmp17_ = unity_test_filter_suite_find_filter_offset_by_id (filter, "aardvaark");
       _vala_assert (_tmp17_ == 3, "find_filter_offset_by_id (filter, \"aardvaark\") == 3");
       _g_object_unref0 (filter);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_test_filter_suite_unref ( gpointer  instance)

Definition at line 544 of file test-filters.c.

                                                       {
       UnityTestFilterSuite* self;
       self = instance;
       if (g_atomic_int_dec_and_test (&self->ref_count)) {
              UNITY_TEST_FILTER_SUITE_GET_CLASS (self)->finalize (self);
              g_type_free_instance ((GTypeInstance *) self);
       }
}

Here is the caller graph for this function:

GParamSpec * unity_test_param_spec_filter_suite ( const gchar *  name,
const gchar *  nick,
const gchar *  blurb,
GType  object_type,
GParamFlags  flags 
)

Definition at line 455 of file test-filters.c.

                                                                                                                                                {
       UnityTestParamSpecFilterSuite* spec;
       g_return_val_if_fail (g_type_is_a (object_type, UNITY_TEST_TYPE_FILTER_SUITE), NULL);
       spec = g_param_spec_internal (G_TYPE_PARAM_OBJECT, name, nick, blurb, flags);
       G_PARAM_SPEC (spec)->value_type = object_type;
       return G_PARAM_SPEC (spec);
}
static gchar* unity_test_value_filter_suite_collect_value ( GValue *  value,
guint  n_collect_values,
GTypeCValue *  collect_values,
guint  collect_flags 
) [static]

Definition at line 421 of file test-filters.c.

                                                                                                                                                    {
       if (collect_values[0].v_pointer) {
              UnityTestFilterSuite* object;
              object = collect_values[0].v_pointer;
              if (object->parent_instance.g_class == NULL) {
                     return g_strconcat ("invalid unclassed object pointer for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
              } else if (!g_value_type_compatible (G_TYPE_FROM_INSTANCE (object), G_VALUE_TYPE (value))) {
                     return g_strconcat ("invalid object type `", g_type_name (G_TYPE_FROM_INSTANCE (object)), "' for value type `", G_VALUE_TYPE_NAME (value), "'", NULL);
              }
              value->data[0].v_pointer = unity_test_filter_suite_ref (object);
       } else {
              value->data[0].v_pointer = NULL;
       }
       return NULL;
}

Here is the call graph for this function:

static void unity_test_value_filter_suite_copy_value ( const GValue *  src_value,
GValue *  dest_value 
) [static]

Definition at line 407 of file test-filters.c.

                                                                                                   {
       if (src_value->data[0].v_pointer) {
              dest_value->data[0].v_pointer = unity_test_filter_suite_ref (src_value->data[0].v_pointer);
       } else {
              dest_value->data[0].v_pointer = NULL;
       }
}

Here is the call graph for this function:

static void unity_test_value_filter_suite_free_value ( GValue *  value) [static]

Definition at line 400 of file test-filters.c.

                                                                     {
       if (value->data[0].v_pointer) {
              unity_test_filter_suite_unref (value->data[0].v_pointer);
       }
}

Here is the call graph for this function:

static void unity_test_value_filter_suite_init ( GValue *  value) [static]

Definition at line 395 of file test-filters.c.

                                                               {
       value->data[0].v_pointer = NULL;
}
static gchar* unity_test_value_filter_suite_lcopy_value ( const GValue *  value,
guint  n_collect_values,
GTypeCValue *  collect_values,
guint  collect_flags 
) [static]

Definition at line 438 of file test-filters.c.

                                                                                                                                                        {
       UnityTestFilterSuite** object_p;
       object_p = collect_values[0].v_pointer;
       if (!object_p) {
              return g_strdup_printf ("value location for `%s' passed as NULL", G_VALUE_TYPE_NAME (value));
       }
       if (!value->data[0].v_pointer) {
              *object_p = NULL;
       } else if (collect_flags & G_VALUE_NOCOPY_CONTENTS) {
              *object_p = value->data[0].v_pointer;
       } else {
              *object_p = unity_test_filter_suite_ref (value->data[0].v_pointer);
       }
       return NULL;
}

Here is the call graph for this function:

static gpointer unity_test_value_filter_suite_peek_pointer ( const GValue *  value) [static]

Definition at line 416 of file test-filters.c.

                                                                                 {
       return value->data[0].v_pointer;
}
gpointer unity_test_value_get_filter_suite ( const GValue *  value)

Definition at line 464 of file test-filters.c.

                                                                 {
       g_return_val_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_FILTER_SUITE), NULL);
       return value->data[0].v_pointer;
}
void unity_test_value_set_filter_suite ( GValue *  value,
gpointer  v_object 
)

Definition at line 470 of file test-filters.c.

                                                                          {
       UnityTestFilterSuite* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_FILTER_SUITE));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TEST_TYPE_FILTER_SUITE));
              g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
              value->data[0].v_pointer = v_object;
              unity_test_filter_suite_ref (value->data[0].v_pointer);
       } else {
              value->data[0].v_pointer = NULL;
       }
       if (old) {
              unity_test_filter_suite_unref (old);
       }
}

Here is the call graph for this function:

void unity_test_value_take_filter_suite ( GValue *  value,
gpointer  v_object 
)

Definition at line 488 of file test-filters.c.

                                                                           {
       UnityTestFilterSuite* old;
       g_return_if_fail (G_TYPE_CHECK_VALUE_TYPE (value, UNITY_TEST_TYPE_FILTER_SUITE));
       old = value->data[0].v_pointer;
       if (v_object) {
              g_return_if_fail (G_TYPE_CHECK_INSTANCE_TYPE (v_object, UNITY_TEST_TYPE_FILTER_SUITE));
              g_return_if_fail (g_value_type_compatible (G_TYPE_FROM_INSTANCE (v_object), G_VALUE_TYPE (value)));
              value->data[0].v_pointer = v_object;
       } else {
              value->data[0].v_pointer = NULL;
       }
       if (old) {
              unity_test_filter_suite_unref (old);
       }
}

Here is the call graph for this function:


Variable Documentation

gpointer unity_test_filter_suite_parent_class = NULL [static]

Definition at line 62 of file test-filters.c.