Back to index

libunity  5.92.0
Classes | Defines | Typedefs | Enumerations | Functions | Variables
unity-tool.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <gtk/gtk.h>
#include <dee.h>
#include <glib/gstdio.h>
#include <gio/gio.h>

Go to the source code of this file.

Classes

struct  _UnityTesterLensInfo
struct  _Block1Data
struct  _Block2Data
struct  _Block3Data
struct  _Block4Data
struct  _Block5Data
struct  _Block6Data
struct  _Block7Data
struct  _Block8Data
struct  _Block9Data
struct  _Block10Data
struct  _Block11Data
struct  _Block12Data

Defines

#define UNITY_TESTER_TYPE_LENS_INFO   (unity_tester_lens_info_get_type ())
#define _g_free0(var)   (var = (g_free (var), NULL))
#define _g_hash_table_unref0(var)   ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define UNITY_TESTER_TYPE_UNITY_TOOL_UI   (unity_tester_unity_tool_ui_get_type ())
#define UNITY_TESTER_UNITY_TOOL_UI(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUi))
#define UNITY_TESTER_UNITY_TOOL_UI_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiClass))
#define UNITY_TESTER_IS_UNITY_TOOL_UI(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI))
#define UNITY_TESTER_IS_UNITY_TOOL_UI_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TESTER_TYPE_UNITY_TOOL_UI))
#define UNITY_TESTER_UNITY_TOOL_UI_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiClass))
#define _g_key_file_free0(var)   ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))
#define _g_option_context_free0(var)   ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_main_loop_unref0(var)   ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))
#define _g_dir_close0(var)   ((var == NULL) ? NULL : (var = (g_dir_close (var), NULL)))
#define _g_variant_type_free0(var)   ((var == NULL) ? NULL : (var = (g_variant_type_free (var), NULL)))
#define _g_variant_unref0(var)   ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_variant_builder_unref0(var)   ((var == NULL) ? NULL : (var = (g_variant_builder_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);
#define UNITY_TESTER_TESTER_ERROR   unity_tester_tester_error_quark ()

Typedefs

typedef struct _UnityTesterLensInfo
typedef struct _UnityTesterUnityToolUi
typedef struct _UnityTesterUnityToolUiClass
typedef struct _Block1Data
typedef struct _Block2Data
typedef struct _Block3Data
typedef struct _Block4Data
typedef struct _Block5Data
typedef struct _Block6Data
typedef struct _Block7Data
typedef struct _Block8Data
typedef struct _Block9Data
typedef struct _Block10Data
typedef struct _Block11Data
typedef struct _Block12Data

Enumerations

enum  UnityTesterTesterError { UNITY_TESTER_TESTER_ERROR_INVALID_ARGS }

Functions

GQuark unity_tester_tester_error_quark (void)
GType unity_tester_lens_info_get_type (void)
static gpointer _g_hash_table_ref0 (gpointer self)
void unity_tester_lens_info_copy (const UnityTesterLensInfo *self, UnityTesterLensInfo *dest)
void unity_tester_lens_info_destroy (UnityTesterLensInfo *self)
UnityTesterLensInfo * unity_tester_lens_info_dup (const UnityTesterLensInfo *self)
void unity_tester_lens_info_free (UnityTesterLensInfo *self)
void unity_tester_get_lens_params_from_file (const gchar *filename, GError **error)
void unity_tester_warn (const gchar *format,...)
static gchar ** _vala_array_dup1 (gchar **self, int length)
static void ______lambda10_ (void)
static void _______lambda10__gtest_data_func (gpointer self)
static Block1Data * block1_data_ref (Block1Data *_data1_)
static void block1_data_unref (void *_userdata_)
static void _____lambda23_ (Block1Data *_data1_, GVariant *_result_)
static void ______lambda23__gfunc (gconstpointer data, gpointer self)
gint unity_tester_main (gchar **args, int args_length1)
int main (int argc, char **argv)
static void _vala_array_add1 (gchar ***array, int *length, int *size, gchar *value)
static void _vala_array_add2 (gchar ***array, int *length, int *size, gchar *value)
gchar ** unity_tester_get_test_cases (int *result_length1)
static gpointer _g_main_loop_ref0 (gpointer self)
static Block2Data * block2_data_ref (Block2Data *_data2_)
static void block2_data_unref (void *_userdata_)
static gboolean __lambda5_ (Block2Data *_data2_)
static gboolean ___lambda5__gsource_func (gpointer self)
gboolean unity_tester_run_with_timeout (GMainLoop *ml, guint timeout_ms)
static Block3Data * block3_data_ref (Block3Data *_data3_)
static void block3_data_unref (void *_userdata_)
static void __lambda12_ (Block3Data *_data3_)
static void ___lambda12__gfunc (gconstpointer data, gpointer self)
static void __lambda11_ (void)
static void ___lambda11__gtest_data_func (gpointer self)
static Block4Data * block4_data_ref (Block4Data *_data4_)
static void block4_data_unref (void *_userdata_)
static void __lambda14_ (Block4Data *_data4_)
static void ___lambda14__gfunc (gconstpointer data, gpointer self)
static void __lambda13_ (void)
static void ___lambda13__gtest_data_func (gpointer self)
static Block5Data * block5_data_ref (Block5Data *_data5_)
static void block5_data_unref (void *_userdata_)
static void __lambda16_ (Block5Data *_data5_)
static void ___lambda16__gfunc (gconstpointer data, gpointer self)
static void __lambda15_ (void)
static void ___lambda15__gtest_data_func (gpointer self)
static Block6Data * block6_data_ref (Block6Data *_data6_)
static void block6_data_unref (void *_userdata_)
static void __lambda18_ (Block6Data *_data6_)
static void ___lambda18__gfunc (gconstpointer data, gpointer self)
static void __lambda17_ (void)
static void ___lambda17__gtest_data_func (gpointer self)
static Block7Data * block7_data_ref (Block7Data *_data7_)
static void block7_data_unref (void *_userdata_)
static void __lambda20_ (Block7Data *_data7_)
static void ___lambda20__gfunc (gconstpointer data, gpointer self)
static void __lambda19_ (void)
static void ___lambda19__gtest_data_func (gpointer self)
static Block8Data * block8_data_ref (Block8Data *_data8_)
static void block8_data_unref (void *_userdata_)
static void __lambda22_ (Block8Data *_data8_)
static void ___lambda22__gfunc (gconstpointer data, gpointer self)
static void __lambda21_ (void)
static void ___lambda21__gtest_data_func (gpointer self)
gint unity_tester_run_common_tests (void)
static Block9Data * block9_data_ref (Block9Data *_data9_)
static void block9_data_unref (void *_userdata_)
static Block10Data * block10_data_ref (Block10Data *_data10_)
static void block10_data_unref (void *_userdata_)
static void ___lambda7_ (Block10Data *_data10_, GObject *obj, GAsyncResult *res)
static void ____lambda7__gasync_ready_callback (GObject *source_object, GAsyncResult *res, gpointer self)
void unity_tester_call_lens_search (const gchar *search_string, gint search_type, GFunc cb, void *cb_target, GFunc error_cb, void *error_cb_target)
static Block11Data * block11_data_ref (Block11Data *_data11_)
static void block11_data_unref (void *_userdata_)
static void _variant_get1 (GVariant *value, UnityTesterLensInfo *result)
static void ___lambda4_ (Block11Data *_data11_, GDBusConnection *conn, const gchar *sender, const gchar *obj_path, const gchar *ifc_name, const gchar *sig_name, GVariant *parameters)
static void ____lambda4__gd_bus_signal_callback (GDBusConnection *connection, const gchar *sender_name, const gchar *object_path, const gchar *interface_name, const gchar *signal_name, GVariant *parameters, gpointer self)
void unity_tester_get_lens_info (GFunc error_cb, void *error_cb_target, UnityTesterLensInfo *result)
static Block12Data * block12_data_ref (Block12Data *_data12_)
static void block12_data_unref (void *_userdata_)
static void ___lambda24_ (Block12Data *_data12_)
static void ____lambda24__g_object_notify (GObject *_sender, GParamSpec *pspec, gpointer self)
void unity_tester_sync_model (DeeSharedModel *model)
void unity_tester_dump_results_model (DeeModel *model)
static gchar * bool_to_string (gboolean self)
void unity_tester_dump_filters_model (DeeModel *model)
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func)
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func)
static gint _vala_array_length (gpointer array)

Variables

gboolean unity_tester_options_gui = FALSE
gchar * unity_tester_options_lens_dbus_name = NULL
gchar * unity_tester_options_lens_dbus_path = NULL
gchar * unity_tester_options_lens_file = NULL
gchar * unity_tester_options_search_string = NULL
gint unity_tester_options_search_type = 0
gboolean unity_tester_options_common_tests = FALSE
gboolean unity_tester_options_no_search_reply = FALSE
gboolean unity_tester_options_dump_results = FALSE
gboolean unity_tester_options_dump_filters = FALSE
gboolean unity_tester_options_test_server_mode = FALSE
gchar ** unity_tester_options_test_cases = NULL
gint unity_tester_options_test_cases_length1 = 0
gchar ** unity_tester_test_runner_test_cases = NULL
gint unity_tester_test_runner_test_cases_length1 = 0
gint unity_tester_test_runner_test_index = 0
UnityTesterUnityToolUi * unity_tester_ui = NULL

Class Documentation

struct _UnityTesterLensInfo

Definition at line 109 of file unity-tool-ui.c.

Class Members
gchar * categories_model_name
gchar * dbus_path
gchar * filters_model_name
gchar * global_results_model_name
GHashTable * hints
gchar * private_connection_name
gchar * results_model_name
gchar * search_hint
gboolean search_in_global
gboolean visible
struct _Block1Data

Definition at line 224 of file protocol-previews.c.

Class Members
gpointer _async_data_
int _ref_count_
UnityProtocolApplicationPreview * _result_
Mpris2Controller * contr
Mpris2Controller * controller
gchar * desc
gboolean got_generate_preview_signal
gboolean got_search_changed
GMainLoop * ml
UnityScopeProxy * scope
UnityLensImpl * self
gboolean timeout_reached
gchar * title
gboolean was_changed
struct _Block2Data

Definition at line 243 of file protocol-previews.c.

Class Members
gpointer _async_data_
int _ref_count_
UnityProtocolMusicPreview * _result_
GHashTable * _result_
Mpris2Controller * controller
gboolean got_search_changed
gboolean got_signal
GMainLoop * ml
gint num_scopes
gboolean scope_up
UnityLensImpl * self
gboolean timeout_reached
struct _Block3Data

Definition at line 263 of file protocol-previews.c.

Class Members
gpointer _async_data_
Block2Data * _data2_
int _ref_count_
UnityProtocolMoviePreview * _result_
GDBusConnection * bus
GFunc cb
gpointer cb_target
Mpris2Controller * contr
gboolean got_signal
UnityLensSearch * lens_search
GMainLoop * ml
guint64 seqnum
struct _Block4Data

Definition at line 292 of file protocol-previews.c.

Class Members
Block3Data * _data3_
int _ref_count_
UnityProtocolSeriesPreview * _result_
gboolean got_changed_signal
gboolean got_gen_signal
gboolean got_search_changed
GMainLoop * ml
gulong update_sig_id
struct _Block5Data

Definition at line 370 of file unity-lens-private.c.

Class Members
gpointer _async_data_
Block4Data * _data4_
int _ref_count_
gboolean got_global_search
gboolean got_lens_search
UnityLensSearch * lens_search
GMainLoop * ml
gint num_changed_signals
gint num_gen_signals
gint num_scopes
UnityScope * scope
UnityLensImpl * self
struct _Block6Data

Definition at line 377 of file unity-lens-private.c.

Class Members
Block5Data * _data5_
int _ref_count_
GCancellable * canc1
GCancellable * canc2
gboolean got_search_changed
GMainLoop * ml
gint num_changed
guint num_searches
guint64 seqnum
struct _Block7Data

Definition at line 383 of file unity-lens-private.c.

Class Members
Block6Data * _data6_
int _ref_count_
GCancellable * canc
UnityLensSearch * lens_search
GMainLoop * ml
UnityScope * scope
gulong update_sig_id
struct _Block8Data

Definition at line 221 of file unity-scope-private.c.

Class Members
gpointer _async_data_
int _ref_count_
gboolean finish_called
gboolean got_search_changed
GMainLoop * ml
UnitySearchType search_type
UnityScopeImpl * self
struct _Block9Data

Definition at line 282 of file unity-scope-private.c.

Class Members
gpointer _async_data_
Block8Data * _data8_
int _ref_count_
GHashTable * _result_
GFunc cb
gpointer cb_target
GFunc error_cb
gpointer error_cb_target
UnityLensSearch * lens_search
UnityLensSearch * s
UnityScopeImpl * self
gulong sig_id
struct _Block10Data

Definition at line 179 of file unity-sound-menu-mpris.c.

Class Members
Block9Data * _data9_
int _ref_count_
GDBusConnection * bus
gchar * dbus_name
gboolean finish_called
gboolean got_search_changed
GMainLoop * ml
GVariant * result1
GVariant * result2
UnityMPRISGateway * self
struct _Block11Data

Definition at line 226 of file unity-sound-menu-mpris.c.

Class Members
Block10Data * _data10_
int _ref_count_
UnityTesterLensInfo info
gchar * interface_name
UnityLensSearch * lens_search
GMainLoop * ml
UnityPropertyUpdateManager * self
struct _Block12Data

Definition at line 191 of file test-lens.c.

Class Members
int _ref_count_
GCancellable * canc1
GCancellable * canc2
guint finish_calls
gboolean got_search_changed
GMainLoop * ml
gchar * order
gboolean remove_option
gint replies
GMainLoop * reply_ml

Define Documentation

#define _g_dir_close0 (   var)    ((var == NULL) ? NULL : (var = (g_dir_close (var), NULL)))

Definition at line 54 of file unity-tool.c.

#define _g_error_free0 (   var)    ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Definition at line 50 of file unity-tool.c.

#define _g_free0 (   var)    (var = (g_free (var), NULL))

Definition at line 36 of file unity-tool.c.

#define _g_hash_table_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))

Definition at line 37 of file unity-tool.c.

#define _g_key_file_free0 (   var)    ((var == NULL) ? NULL : (var = (g_key_file_free (var), NULL)))

Definition at line 48 of file unity-tool.c.

#define _g_main_loop_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_main_loop_unref (var), NULL)))

Definition at line 53 of file unity-tool.c.

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

Definition at line 51 of file unity-tool.c.

#define _g_option_context_free0 (   var)    ((var == NULL) ? NULL : (var = (g_option_context_free (var), NULL)))

Definition at line 49 of file unity-tool.c.

#define _g_variant_builder_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_variant_builder_unref (var), NULL)))

Definition at line 66 of file unity-tool.c.

#define _g_variant_type_free0 (   var)    ((var == NULL) ? NULL : (var = (g_variant_type_free (var), NULL)))

Definition at line 63 of file unity-tool.c.

#define _g_variant_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))

Definition at line 65 of file unity-tool.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 69 of file unity-tool.c.

#define UNITY_TESTER_IS_UNITY_TOOL_UI (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI))

Definition at line 42 of file unity-tool.c.

#define UNITY_TESTER_IS_UNITY_TOOL_UI_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_TESTER_TYPE_UNITY_TOOL_UI))

Definition at line 43 of file unity-tool.c.

Definition at line 74 of file unity-tool.c.

Definition at line 34 of file unity-tool.c.

Definition at line 39 of file unity-tool.c.

#define UNITY_TESTER_UNITY_TOOL_UI (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUi))

Definition at line 40 of file unity-tool.c.

#define UNITY_TESTER_UNITY_TOOL_UI_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiClass))

Definition at line 41 of file unity-tool.c.

#define UNITY_TESTER_UNITY_TOOL_UI_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_TESTER_TYPE_UNITY_TOOL_UI, UnityTesterUnityToolUiClass))

Definition at line 44 of file unity-tool.c.


Typedef Documentation

typedef struct _Block10Data

Definition at line 64 of file unity-tool.c.

typedef struct _Block11Data

Definition at line 67 of file unity-tool.c.

typedef struct _Block12Data

Definition at line 68 of file unity-tool.c.

typedef struct _Block1Data

Definition at line 52 of file unity-tool.c.

typedef struct _Block2Data

Definition at line 55 of file unity-tool.c.

typedef struct _Block3Data

Definition at line 56 of file unity-tool.c.

typedef struct _Block4Data

Definition at line 57 of file unity-tool.c.

typedef struct _Block5Data

Definition at line 58 of file unity-tool.c.

typedef struct _Block6Data

Definition at line 59 of file unity-tool.c.

typedef struct _Block7Data

Definition at line 60 of file unity-tool.c.

typedef struct _Block8Data

Definition at line 61 of file unity-tool.c.

typedef struct _Block9Data

Definition at line 62 of file unity-tool.c.

typedef struct _UnityTesterLensInfo

Definition at line 35 of file unity-tool.c.

typedef struct _UnityTesterUnityToolUi

Definition at line 46 of file unity-tool.c.

Definition at line 47 of file unity-tool.c.


Enumeration Type Documentation

Enumerator:
UNITY_TESTER_TESTER_ERROR_INVALID_ARGS 

Definition at line 71 of file unity-tool.c.


Function Documentation

static void _______lambda10__gtest_data_func ( gpointer  self) [static]

Definition at line 530 of file unity-tool.c.

                                                             {
       ______lambda10_ ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ______lambda10_ ( void  ) [static]

Definition at line 478 of file unity-tool.c.

                                   {
       gchar** _tmp0_;
       gint _tmp0__length1;
       gint _tmp1_;
       const gchar* _tmp2_;
       gchar* _tmp3_;
       gchar* test;
       gint status = 0;
       gint _tmp7_;
       GError * _inner_error_ = NULL;
       _tmp0_ = unity_tester_test_runner_test_cases;
       _tmp0__length1 = unity_tester_test_runner_test_cases_length1;
       _tmp1_ = unity_tester_test_runner_test_index;
       unity_tester_test_runner_test_index = _tmp1_ + 1;
       _tmp2_ = _tmp0_[_tmp1_];
       _tmp3_ = g_strdup (_tmp2_);
       test = _tmp3_;
       {
              gint _tmp4_ = 0;
              g_spawn_command_line_sync (test, NULL, NULL, &_tmp4_, &_inner_error_);
              status = _tmp4_;
              if (_inner_error_ != NULL) {
                     goto __catch1_g_error;
              }
       }
       goto __finally1;
       __catch1_g_error:
       {
              GError* e = NULL;
              GError* _tmp5_;
              const gchar* _tmp6_;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp5_ = e;
              _tmp6_ = _tmp5_->message;
              unity_tester_warn ("%s", _tmp6_, NULL);
              status = -1;
              _g_error_free0 (e);
       }
       __finally1:
       if (_inner_error_ != NULL) {
              _g_free0 (test);
              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);
              g_clear_error (&_inner_error_);
              return;
       }
       _tmp7_ = status;
       _vala_assert (_tmp7_ == 0, "status == 0");
       _g_free0 (test);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ______lambda23__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 570 of file unity-tool.c.

                                                                      {
       _____lambda23_ (self, data);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _____lambda23_ ( Block1Data *  _data1_,
GVariant *  _result_ 
) [static]

Definition at line 551 of file unity-tool.c.

                                                                     {
       gboolean _tmp0_;
       GMainLoop* _tmp4_;
       _tmp0_ = unity_tester_options_no_search_reply;
       if (!_tmp0_) {
              GVariant* _tmp1_;
              gchar* _tmp2_ = NULL;
              gchar* _tmp3_;
              _tmp1_ = _result_;
              _tmp2_ = g_variant_print (_tmp1_, TRUE);
              _tmp3_ = _tmp2_;
              g_print ("%s\n", _tmp3_);
              _g_free0 (_tmp3_);
       }
       _tmp4_ = _data1_->ml;
       g_main_loop_quit (_tmp4_);
}

Here is the caller graph for this function:

static void ____lambda24__g_object_notify ( GObject *  _sender,
GParamSpec *  pspec,
gpointer  self 
) [static]

Definition at line 1955 of file unity-tool.c.

                                                                                               {
       ___lambda24_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ____lambda4__gd_bus_signal_callback ( GDBusConnection *  connection,
const gchar *  sender_name,
const gchar *  object_path,
const gchar *  interface_name,
const gchar *  signal_name,
GVariant *  parameters,
gpointer  self 
) [static]

Definition at line 1829 of file unity-tool.c.

                                                                                                                                                                                                                              {
       ___lambda4_ (self, connection, sender_name, object_path, interface_name, signal_name, parameters);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ____lambda7__gasync_ready_callback ( GObject *  source_object,
GAsyncResult *  res,
gpointer  self 
) [static]

Definition at line 1607 of file unity-tool.c.

                                                                                                          {
       ___lambda7_ (self, source_object, res);
       block10_data_unref (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda11__gtest_data_func ( gpointer  self) [static]

Definition at line 1204 of file unity-tool.c.

                                                         {
       __lambda11_ ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda12__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 1179 of file unity-tool.c.

                                                                   {
       __lambda12_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda13__gtest_data_func ( gpointer  self) [static]

Definition at line 1257 of file unity-tool.c.

                                                         {
       __lambda13_ ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda14__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 1232 of file unity-tool.c.

                                                                   {
       __lambda14_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda15__gtest_data_func ( gpointer  self) [static]

Definition at line 1310 of file unity-tool.c.

                                                         {
       __lambda15_ ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda16__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 1285 of file unity-tool.c.

                                                                   {
       __lambda16_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda17__gtest_data_func ( gpointer  self) [static]

Definition at line 1363 of file unity-tool.c.

                                                         {
       __lambda17_ ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda18__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 1338 of file unity-tool.c.

                                                                   {
       __lambda18_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda19__gtest_data_func ( gpointer  self) [static]

Definition at line 1416 of file unity-tool.c.

                                                         {
       __lambda19_ ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda20__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 1391 of file unity-tool.c.

                                                                   {
       __lambda20_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda21__gtest_data_func ( gpointer  self) [static]

Definition at line 1469 of file unity-tool.c.

                                                         {
       __lambda21_ ();
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda22__gfunc ( gconstpointer  data,
gpointer  self 
) [static]

Definition at line 1444 of file unity-tool.c.

                                                                   {
       __lambda22_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda24_ ( Block12Data *  _data12_) [static]

Definition at line 1948 of file unity-tool.c.

                                                 {
       GMainLoop* _tmp0_;
       _tmp0_ = _data12_->ml;
       g_main_loop_quit (_tmp0_);
}

Here is the caller graph for this function:

static void ___lambda4_ ( Block11Data *  _data11_,
GDBusConnection *  conn,
const gchar *  sender,
const gchar *  obj_path,
const gchar *  ifc_name,
const gchar *  sig_name,
GVariant *  parameters 
) [static]

Definition at line 1807 of file unity-tool.c.

                                                                                                                                                                                       {
       GVariant* _tmp0_;
       GVariant* _tmp1_ = NULL;
       GVariant* _tmp2_;
       UnityTesterLensInfo _tmp3_;
       g_return_if_fail (conn != NULL);
       g_return_if_fail (sender != NULL);
       g_return_if_fail (obj_path != NULL);
       g_return_if_fail (ifc_name != NULL);
       g_return_if_fail (sig_name != NULL);
       g_return_if_fail (parameters != NULL);
       _tmp0_ = parameters;
       _tmp1_ = g_variant_get_child_value (_tmp0_, (gsize) 0);
       _tmp2_ = _tmp1_;
       _variant_get1 (_tmp2_, &_tmp3_);
       unity_tester_lens_info_destroy (&_data11_->info);
       _data11_->info = _tmp3_;
       _g_variant_unref0 (_tmp2_);
       g_main_loop_quit (_data11_->ml);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean ___lambda5__gsource_func ( gpointer  self) [static]

Definition at line 1112 of file unity-tool.c.

                                                         {
       gboolean result;
       result = __lambda5_ (self);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda7_ ( Block10Data *  _data10_,
GObject *  obj,
GAsyncResult *  res 
) [static]

Definition at line 1541 of file unity-tool.c.

                                                                                 {
       Block9Data* _data9_;
       GError * _inner_error_ = NULL;
       _data9_ = _data10_->_data9_;
       g_return_if_fail (res != NULL);
       {
              GAsyncResult* _tmp0_;
              GVariant* _tmp1_ = NULL;
              GVariant* reply;
              GFunc _tmp2_;
              void* _tmp2__target;
              _tmp0_ = res;
              _tmp1_ = g_dbus_connection_call_finish (_data10_->bus, _tmp0_, &_inner_error_);
              reply = _tmp1_;
              if (_inner_error_ != NULL) {
                     goto __catch4_g_error;
              }
              _tmp2_ = _data9_->cb;
              _tmp2__target = _data9_->cb_target;
              if (_tmp2_ != NULL) {
                     GFunc _tmp3_;
                     void* _tmp3__target;
                     _tmp3_ = _data9_->cb;
                     _tmp3__target = _data9_->cb_target;
                     _tmp3_ (reply, _tmp3__target);
              }
              _g_variant_unref0 (reply);
       }
       goto __finally4;
       __catch4_g_error:
       {
              GError* e = NULL;
              GFunc _tmp4_;
              void* _tmp4__target;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp4_ = _data9_->error_cb;
              _tmp4__target = _data9_->error_cb_target;
              if (_tmp4_ != NULL) {
                     GFunc _tmp5_;
                     void* _tmp5__target;
                     GError* _tmp6_;
                     const gchar* _tmp7_;
                     _tmp5_ = _data9_->error_cb;
                     _tmp5__target = _data9_->error_cb_target;
                     _tmp6_ = e;
                     _tmp7_ = _tmp6_->message;
                     _tmp5_ (_tmp7_, _tmp5__target);
              } else {
                     GError* _tmp8_;
                     const gchar* _tmp9_;
                     _tmp8_ = e;
                     _tmp9_ = _tmp8_->message;
                     unity_tester_warn ("%s", _tmp9_, NULL);
              }
              _g_error_free0 (e);
       }
       __finally4:
       if (_inner_error_ != NULL) {
              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);
              g_clear_error (&_inner_error_);
              return;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda11_ ( void  ) [static]

Definition at line 1184 of file unity-tool.c.

                               {
       Block3Data* _data3_;
       GMainLoop* _tmp0_;
       GMainLoop* _tmp1_;
       gboolean _tmp2_ = FALSE;
       _data3_ = g_slice_new0 (Block3Data);
       _data3_->_ref_count_ = 1;
       _tmp0_ = g_main_loop_new (NULL, FALSE);
       _data3_->ml = _tmp0_;
       unity_tester_call_lens_search ("", 0, ___lambda12__gfunc, _data3_, NULL, NULL);
       _tmp1_ = _data3_->ml;
       _tmp2_ = unity_tester_run_with_timeout (_tmp1_, (guint) 20000);
       if (!_tmp2_) {
              unity_tester_warn ("Lens didn't respond", NULL);
       }
       block3_data_unref (_data3_);
       _data3_ = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda12_ ( Block3Data *  _data3_) [static]

Definition at line 1172 of file unity-tool.c.

                                              {
       GMainLoop* _tmp0_;
       _tmp0_ = _data3_->ml;
       g_main_loop_quit (_tmp0_);
}

Here is the caller graph for this function:

static void __lambda13_ ( void  ) [static]

Definition at line 1237 of file unity-tool.c.

                               {
       Block4Data* _data4_;
       GMainLoop* _tmp0_;
       GMainLoop* _tmp1_;
       gboolean _tmp2_ = FALSE;
       _data4_ = g_slice_new0 (Block4Data);
       _data4_->_ref_count_ = 1;
       _tmp0_ = g_main_loop_new (NULL, FALSE);
       _data4_->ml = _tmp0_;
       unity_tester_call_lens_search ("a", 0, ___lambda14__gfunc, _data4_, NULL, NULL);
       _tmp1_ = _data4_->ml;
       _tmp2_ = unity_tester_run_with_timeout (_tmp1_, (guint) 20000);
       if (!_tmp2_) {
              unity_tester_warn ("Lens didn't respond", NULL);
       }
       block4_data_unref (_data4_);
       _data4_ = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda14_ ( Block4Data *  _data4_) [static]

Definition at line 1225 of file unity-tool.c.

                                              {
       GMainLoop* _tmp0_;
       _tmp0_ = _data4_->ml;
       g_main_loop_quit (_tmp0_);
}

Here is the caller graph for this function:

static void __lambda15_ ( void  ) [static]

Definition at line 1290 of file unity-tool.c.

                               {
       Block5Data* _data5_;
       GMainLoop* _tmp0_;
       GMainLoop* _tmp1_;
       gboolean _tmp2_ = FALSE;
       _data5_ = g_slice_new0 (Block5Data);
       _data5_->_ref_count_ = 1;
       _tmp0_ = g_main_loop_new (NULL, FALSE);
       _data5_->ml = _tmp0_;
       unity_tester_call_lens_search ("", 0, ___lambda16__gfunc, _data5_, NULL, NULL);
       _tmp1_ = _data5_->ml;
       _tmp2_ = unity_tester_run_with_timeout (_tmp1_, (guint) 20000);
       if (!_tmp2_) {
              unity_tester_warn ("Lens didn't respond", NULL);
       }
       block5_data_unref (_data5_);
       _data5_ = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda16_ ( Block5Data *  _data5_) [static]

Definition at line 1278 of file unity-tool.c.

                                              {
       GMainLoop* _tmp0_;
       _tmp0_ = _data5_->ml;
       g_main_loop_quit (_tmp0_);
}

Here is the caller graph for this function:

static void __lambda17_ ( void  ) [static]

Definition at line 1343 of file unity-tool.c.

                               {
       Block6Data* _data6_;
       GMainLoop* _tmp0_;
       GMainLoop* _tmp1_;
       gboolean _tmp2_ = FALSE;
       _data6_ = g_slice_new0 (Block6Data);
       _data6_->_ref_count_ = 1;
       _tmp0_ = g_main_loop_new (NULL, FALSE);
       _data6_->ml = _tmp0_;
       unity_tester_call_lens_search ("", 1, ___lambda18__gfunc, _data6_, NULL, NULL);
       _tmp1_ = _data6_->ml;
       _tmp2_ = unity_tester_run_with_timeout (_tmp1_, (guint) 20000);
       if (!_tmp2_) {
              unity_tester_warn ("Lens didn't respond", NULL);
       }
       block6_data_unref (_data6_);
       _data6_ = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda18_ ( Block6Data *  _data6_) [static]

Definition at line 1331 of file unity-tool.c.

                                              {
       GMainLoop* _tmp0_;
       _tmp0_ = _data6_->ml;
       g_main_loop_quit (_tmp0_);
}

Here is the caller graph for this function:

static void __lambda19_ ( void  ) [static]

Definition at line 1396 of file unity-tool.c.

                               {
       Block7Data* _data7_;
       GMainLoop* _tmp0_;
       GMainLoop* _tmp1_;
       gboolean _tmp2_ = FALSE;
       _data7_ = g_slice_new0 (Block7Data);
       _data7_->_ref_count_ = 1;
       _tmp0_ = g_main_loop_new (NULL, FALSE);
       _data7_->ml = _tmp0_;
       unity_tester_call_lens_search ("a", 1, ___lambda20__gfunc, _data7_, NULL, NULL);
       _tmp1_ = _data7_->ml;
       _tmp2_ = unity_tester_run_with_timeout (_tmp1_, (guint) 20000);
       if (!_tmp2_) {
              unity_tester_warn ("Lens didn't respond", NULL);
       }
       block7_data_unref (_data7_);
       _data7_ = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda20_ ( Block7Data *  _data7_) [static]

Definition at line 1384 of file unity-tool.c.

                                              {
       GMainLoop* _tmp0_;
       _tmp0_ = _data7_->ml;
       g_main_loop_quit (_tmp0_);
}

Here is the caller graph for this function:

static void __lambda21_ ( void  ) [static]

Definition at line 1449 of file unity-tool.c.

                               {
       Block8Data* _data8_;
       GMainLoop* _tmp0_;
       GMainLoop* _tmp1_;
       gboolean _tmp2_ = FALSE;
       _data8_ = g_slice_new0 (Block8Data);
       _data8_->_ref_count_ = 1;
       _tmp0_ = g_main_loop_new (NULL, FALSE);
       _data8_->ml = _tmp0_;
       unity_tester_call_lens_search ("", 1, ___lambda22__gfunc, _data8_, NULL, NULL);
       _tmp1_ = _data8_->ml;
       _tmp2_ = unity_tester_run_with_timeout (_tmp1_, (guint) 20000);
       if (!_tmp2_) {
              unity_tester_warn ("Lens didn't respond", NULL);
       }
       block8_data_unref (_data8_);
       _data8_ = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda22_ ( Block8Data *  _data8_) [static]

Definition at line 1437 of file unity-tool.c.

                                              {
       GMainLoop* _tmp0_;
       _tmp0_ = _data8_->ml;
       g_main_loop_quit (_tmp0_);
}

Here is the caller graph for this function:

static gboolean __lambda5_ ( Block2Data *  _data2_) [static]

Definition at line 1100 of file unity-tool.c.

                                                 {
       gboolean result = FALSE;
       GMainLoop* _tmp0_;
       _data2_->timeout_reached = TRUE;
       g_debug ("unity-tool.vala:311: Timeout reached");
       _tmp0_ = _data2_->ml;
       g_main_loop_quit (_tmp0_);
       result = FALSE;
       return result;
}

Here is the caller graph for this function:

static gpointer _g_hash_table_ref0 ( gpointer  self) [static]

Definition at line 286 of file unity-tool.c.

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

Here is the caller graph for this function:

static gpointer _g_main_loop_ref0 ( gpointer  self) [static]

Definition at line 1079 of file unity-tool.c.

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

Here is the caller graph for this function:

static void _vala_array_add1 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 894 of file unity-tool.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_add2 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 904 of file unity-tool.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_destroy ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 2250 of file unity-tool.c.

                                                                                                 {
       if ((array != NULL) && (destroy_func != NULL)) {
              int i;
              for (i = 0; i < array_length; i = i + 1) {
                     if (((gpointer*) array)[i] != NULL) {
                            destroy_func (((gpointer*) array)[i]);
                     }
              }
       }
}

Here is the caller graph for this function:

static gchar** _vala_array_dup1 ( gchar **  self,
int  length 
) [static]

Definition at line 465 of file unity-tool.c.

                                                           {
       gchar** result;
       int i;
       result = g_new0 (gchar*, length + 1);
       for (i = 0; i < length; i++) {
              gchar* _tmp0_;
              _tmp0_ = g_strdup (self[i]);
              result[i] = _tmp0_;
       }
       return result;
}

Here is the caller graph for this function:

static void _vala_array_free ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 2262 of file unity-tool.c.

                                                                                              {
       _vala_array_destroy (array, array_length, destroy_func);
       g_free (array);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gint _vala_array_length ( gpointer  array) [static]

Definition at line 2268 of file unity-tool.c.

                                                {
       int length;
       length = 0;
       if (array) {
              while (((gpointer*) array)[length]) {
                     length++;
              }
       }
       return length;
}

Here is the caller graph for this function:

static void _variant_get1 ( GVariant *  value,
UnityTesterLensInfo *  result 
) [static]

Definition at line 1750 of file unity-tool.c.

                                                                         {
       UnityTesterLensInfo _tmp4_;
       GVariantIter _tmp5_;
       GVariant* _tmp6_;
       GVariant* _tmp7_;
       GVariant* _tmp8_;
       GVariant* _tmp9_;
       GVariant* _tmp10_;
       GVariant* _tmp11_;
       GVariant* _tmp12_;
       GVariant* _tmp13_;
       GVariant* _tmp14_;
       GVariant* _tmp15_;
       GHashTable* _tmp16_;
       GVariantIter _tmp17_;
       GVariant* _tmp18_;
       GVariant* _tmp19_;
       g_variant_iter_init (&_tmp5_, value);
       _tmp6_ = g_variant_iter_next_value (&_tmp5_);
       _tmp4_.dbus_path = g_variant_dup_string (_tmp6_, NULL);
       g_variant_unref (_tmp6_);
       _tmp7_ = g_variant_iter_next_value (&_tmp5_);
       _tmp4_.search_in_global = g_variant_get_boolean (_tmp7_);
       g_variant_unref (_tmp7_);
       _tmp8_ = g_variant_iter_next_value (&_tmp5_);
       _tmp4_.visible = g_variant_get_boolean (_tmp8_);
       g_variant_unref (_tmp8_);
       _tmp9_ = g_variant_iter_next_value (&_tmp5_);
       _tmp4_.search_hint = g_variant_dup_string (_tmp9_, NULL);
       g_variant_unref (_tmp9_);
       _tmp10_ = g_variant_iter_next_value (&_tmp5_);
       _tmp4_.private_connection_name = g_variant_dup_string (_tmp10_, NULL);
       g_variant_unref (_tmp10_);
       _tmp11_ = g_variant_iter_next_value (&_tmp5_);
       _tmp4_.results_model_name = g_variant_dup_string (_tmp11_, NULL);
       g_variant_unref (_tmp11_);
       _tmp12_ = g_variant_iter_next_value (&_tmp5_);
       _tmp4_.global_results_model_name = g_variant_dup_string (_tmp12_, NULL);
       g_variant_unref (_tmp12_);
       _tmp13_ = g_variant_iter_next_value (&_tmp5_);
       _tmp4_.categories_model_name = g_variant_dup_string (_tmp13_, NULL);
       g_variant_unref (_tmp13_);
       _tmp14_ = g_variant_iter_next_value (&_tmp5_);
       _tmp4_.filters_model_name = g_variant_dup_string (_tmp14_, NULL);
       g_variant_unref (_tmp14_);
       _tmp15_ = g_variant_iter_next_value (&_tmp5_);
       _tmp16_ = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
       g_variant_iter_init (&_tmp17_, _tmp15_);
       while (g_variant_iter_loop (&_tmp17_, "{?*}", &_tmp18_, &_tmp19_)) {
              g_hash_table_insert (_tmp16_, g_variant_dup_string (_tmp18_, NULL), g_variant_get_variant (_tmp19_));
       }
       _tmp4_.hints = _tmp16_;
       g_variant_unref (_tmp15_);
       *result = _tmp4_;
}

Here is the caller graph for this function:

static Block10Data* block10_data_ref ( Block10Data *  _data10_) [static]

Definition at line 1523 of file unity-tool.c.

                                                             {
       g_atomic_int_inc (&_data10_->_ref_count_);
       return _data10_;
}

Here is the caller graph for this function:

static void block10_data_unref ( void *  _userdata_) [static]

Definition at line 1529 of file unity-tool.c.

                                                   {
       Block10Data* _data10_;
       _data10_ = (Block10Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data10_->_ref_count_)) {
              _g_object_unref0 (_data10_->bus);
              block9_data_unref (_data10_->_data9_);
              _data10_->_data9_ = NULL;
              g_slice_free (Block10Data, _data10_);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Block11Data* block11_data_ref ( Block11Data *  _data11_) [static]

Definition at line 1733 of file unity-tool.c.

                                                             {
       g_atomic_int_inc (&_data11_->_ref_count_);
       return _data11_;
}

Here is the caller graph for this function:

static void block11_data_unref ( void *  _userdata_) [static]

Definition at line 1739 of file unity-tool.c.

                                                   {
       Block11Data* _data11_;
       _data11_ = (Block11Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data11_->_ref_count_)) {
              unity_tester_lens_info_destroy (&_data11_->info);
              _g_main_loop_unref0 (_data11_->ml);
              g_slice_free (Block11Data, _data11_);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Block12Data* block12_data_ref ( Block12Data *  _data12_) [static]

Definition at line 1932 of file unity-tool.c.

                                                             {
       g_atomic_int_inc (&_data12_->_ref_count_);
       return _data12_;
}

Here is the caller graph for this function:

static void block12_data_unref ( void *  _userdata_) [static]

Definition at line 1938 of file unity-tool.c.

                                                   {
       Block12Data* _data12_;
       _data12_ = (Block12Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data12_->_ref_count_)) {
              _g_main_loop_unref0 (_data12_->ml);
              g_slice_free (Block12Data, _data12_);
       }
}

Here is the caller graph for this function:

static Block1Data* block1_data_ref ( Block1Data *  _data1_) [static]

Definition at line 535 of file unity-tool.c.

                                                         {
       g_atomic_int_inc (&_data1_->_ref_count_);
       return _data1_;
}
static void block1_data_unref ( void *  _userdata_) [static]

Definition at line 541 of file unity-tool.c.

                                                  {
       Block1Data* _data1_;
       _data1_ = (Block1Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
              _g_main_loop_unref0 (_data1_->ml);
              g_slice_free (Block1Data, _data1_);
       }
}

Here is the caller graph for this function:

static Block2Data* block2_data_ref ( Block2Data *  _data2_) [static]

Definition at line 1084 of file unity-tool.c.

                                                         {
       g_atomic_int_inc (&_data2_->_ref_count_);
       return _data2_;
}

Here is the caller graph for this function:

static void block2_data_unref ( void *  _userdata_) [static]

Definition at line 1090 of file unity-tool.c.

                                                  {
       Block2Data* _data2_;
       _data2_ = (Block2Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
              _g_main_loop_unref0 (_data2_->ml);
              g_slice_free (Block2Data, _data2_);
       }
}

Here is the caller graph for this function:

static Block3Data* block3_data_ref ( Block3Data *  _data3_) [static]

Definition at line 1156 of file unity-tool.c.

                                                         {
       g_atomic_int_inc (&_data3_->_ref_count_);
       return _data3_;
}
static void block3_data_unref ( void *  _userdata_) [static]

Definition at line 1162 of file unity-tool.c.

                                                  {
       Block3Data* _data3_;
       _data3_ = (Block3Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data3_->_ref_count_)) {
              _g_main_loop_unref0 (_data3_->ml);
              g_slice_free (Block3Data, _data3_);
       }
}

Here is the caller graph for this function:

static Block4Data* block4_data_ref ( Block4Data *  _data4_) [static]

Definition at line 1209 of file unity-tool.c.

                                                         {
       g_atomic_int_inc (&_data4_->_ref_count_);
       return _data4_;
}
static void block4_data_unref ( void *  _userdata_) [static]

Definition at line 1215 of file unity-tool.c.

                                                  {
       Block4Data* _data4_;
       _data4_ = (Block4Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data4_->_ref_count_)) {
              _g_main_loop_unref0 (_data4_->ml);
              g_slice_free (Block4Data, _data4_);
       }
}

Here is the caller graph for this function:

static Block5Data* block5_data_ref ( Block5Data *  _data5_) [static]

Definition at line 1262 of file unity-tool.c.

                                                         {
       g_atomic_int_inc (&_data5_->_ref_count_);
       return _data5_;
}
static void block5_data_unref ( void *  _userdata_) [static]

Definition at line 1268 of file unity-tool.c.

                                                  {
       Block5Data* _data5_;
       _data5_ = (Block5Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data5_->_ref_count_)) {
              _g_main_loop_unref0 (_data5_->ml);
              g_slice_free (Block5Data, _data5_);
       }
}

Here is the caller graph for this function:

static Block6Data* block6_data_ref ( Block6Data *  _data6_) [static]

Definition at line 1315 of file unity-tool.c.

                                                         {
       g_atomic_int_inc (&_data6_->_ref_count_);
       return _data6_;
}
static void block6_data_unref ( void *  _userdata_) [static]

Definition at line 1321 of file unity-tool.c.

                                                  {
       Block6Data* _data6_;
       _data6_ = (Block6Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data6_->_ref_count_)) {
              _g_main_loop_unref0 (_data6_->ml);
              g_slice_free (Block6Data, _data6_);
       }
}

Here is the caller graph for this function:

static Block7Data* block7_data_ref ( Block7Data *  _data7_) [static]

Definition at line 1368 of file unity-tool.c.

                                                         {
       g_atomic_int_inc (&_data7_->_ref_count_);
       return _data7_;
}
static void block7_data_unref ( void *  _userdata_) [static]

Definition at line 1374 of file unity-tool.c.

                                                  {
       Block7Data* _data7_;
       _data7_ = (Block7Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data7_->_ref_count_)) {
              _g_main_loop_unref0 (_data7_->ml);
              g_slice_free (Block7Data, _data7_);
       }
}

Here is the caller graph for this function:

static Block8Data* block8_data_ref ( Block8Data *  _data8_) [static]

Definition at line 1421 of file unity-tool.c.

                                                         {
       g_atomic_int_inc (&_data8_->_ref_count_);
       return _data8_;
}
static void block8_data_unref ( void *  _userdata_) [static]

Definition at line 1427 of file unity-tool.c.

                                                  {
       Block8Data* _data8_;
       _data8_ = (Block8Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data8_->_ref_count_)) {
              _g_main_loop_unref0 (_data8_->ml);
              g_slice_free (Block8Data, _data8_);
       }
}

Here is the caller graph for this function:

static Block9Data* block9_data_ref ( Block9Data *  _data9_) [static]

Definition at line 1508 of file unity-tool.c.

                                                         {
       g_atomic_int_inc (&_data9_->_ref_count_);
       return _data9_;
}

Here is the caller graph for this function:

static void block9_data_unref ( void *  _userdata_) [static]

Definition at line 1514 of file unity-tool.c.

                                                  {
       Block9Data* _data9_;
       _data9_ = (Block9Data*) _userdata_;
       if (g_atomic_int_dec_and_test (&_data9_->_ref_count_)) {
              g_slice_free (Block9Data, _data9_);
       }
}

Here is the caller graph for this function:

static gchar* bool_to_string ( gboolean  self) [static]

Definition at line 2104 of file unity-tool.c.

                                             {
       gchar* result = NULL;
       if (self) {
              gchar* _tmp0_;
              _tmp0_ = g_strdup ("true");
              result = _tmp0_;
              return result;
       } else {
              gchar* _tmp1_;
              _tmp1_ = g_strdup ("false");
              result = _tmp1_;
              return result;
       }
}

Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 888 of file unity-tool.c.

                                  {
       g_type_init ();
       return unity_tester_main (argv, argc);
}

Here is the call graph for this function:

void unity_tester_call_lens_search ( const gchar *  search_string,
gint  search_type,
GFunc  cb,
void *  cb_target,
GFunc  error_cb,
void *  error_cb_target 
)

Definition at line 1613 of file unity-tool.c.

                                                                                                                                                    {
       Block9Data* _data9_;
       GFunc _tmp0_;
       void* _tmp0__target;
       GFunc _tmp1_;
       void* _tmp1__target;
       GVariantType* _tmp2_;
       GVariantType* _tmp3_;
       GVariantBuilder* _tmp4_;
       GVariantBuilder* _tmp5_;
       GVariantBuilder* vb;
       const gchar* _tmp6_;
       GVariantType* _tmp7_;
       GVariantType* _tmp8_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (search_string != NULL);
       _data9_ = g_slice_new0 (Block9Data);
       _data9_->_ref_count_ = 1;
       _tmp0_ = cb;
       _tmp0__target = cb_target;
       _data9_->cb = _tmp0_;
       _data9_->cb_target = _tmp0__target;
       _tmp1_ = error_cb;
       _tmp1__target = error_cb_target;
       _data9_->error_cb = _tmp1_;
       _data9_->error_cb_target = _tmp1__target;
       _tmp2_ = g_variant_type_new ("(sa{sv})");
       _tmp3_ = _tmp2_;
       _tmp4_ = g_variant_builder_new (_tmp3_);
       _tmp5_ = _tmp4_;
       _g_variant_type_free0 (_tmp3_);
       vb = _tmp5_;
       _tmp6_ = search_string;
       g_variant_builder_add (vb, "s", _tmp6_, NULL);
       _tmp7_ = g_variant_type_new ("a{sv}");
       _tmp8_ = _tmp7_;
       g_variant_builder_open (vb, _tmp8_);
       _g_variant_type_free0 (_tmp8_);
       g_variant_builder_close (vb);
       {
              Block10Data* _data10_;
              GDBusConnection* _tmp9_ = NULL;
              const gchar* _tmp10_ = NULL;
              gint _tmp11_;
              const gchar* _tmp12_;
              const gchar* _tmp13_;
              const gchar* _tmp14_;
              GVariant* _tmp15_ = NULL;
              GVariant* _tmp16_;
              _data10_ = g_slice_new0 (Block10Data);
              _data10_->_ref_count_ = 1;
              _data10_->_data9_ = block9_data_ref (_data9_);
              _tmp9_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
              _data10_->bus = _tmp9_;
              if (_inner_error_ != NULL) {
                     block10_data_unref (_data10_);
                     _data10_ = NULL;
                     goto __catch3_g_error;
              }
              _tmp11_ = search_type;
              if (_tmp11_ == 0) {
                     _tmp10_ = "Search";
              } else {
                     _tmp10_ = "GlobalSearch";
              }
              _tmp12_ = unity_tester_options_lens_dbus_name;
              _tmp13_ = unity_tester_options_lens_dbus_path;
              _tmp14_ = _tmp10_;
              _tmp15_ = g_variant_builder_end (vb);
              g_variant_ref_sink (_tmp15_);
              _tmp16_ = _tmp15_;
              g_dbus_connection_call (_data10_->bus, _tmp12_, _tmp13_, "com.canonical.Unity.Lens", _tmp14_, _tmp16_, NULL, 0, -1, NULL, ____lambda7__gasync_ready_callback, block10_data_ref (_data10_));
              _g_variant_unref0 (_tmp16_);
              block10_data_unref (_data10_);
              _data10_ = NULL;
       }
       goto __finally3;
       __catch3_g_error:
       {
              GError* e = NULL;
              GFunc _tmp17_;
              void* _tmp17__target;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp17_ = _data9_->error_cb;
              _tmp17__target = _data9_->error_cb_target;
              if (_tmp17_ != NULL) {
                     GFunc _tmp18_;
                     void* _tmp18__target;
                     GError* _tmp19_;
                     const gchar* _tmp20_;
                     _tmp18_ = _data9_->error_cb;
                     _tmp18__target = _data9_->error_cb_target;
                     _tmp19_ = e;
                     _tmp20_ = _tmp19_->message;
                     _tmp18_ (_tmp20_, _tmp18__target);
              } else {
                     GError* _tmp21_;
                     const gchar* _tmp22_;
                     _tmp21_ = e;
                     _tmp22_ = _tmp21_->message;
                     unity_tester_warn ("%s", _tmp22_, NULL);
              }
              _g_error_free0 (e);
       }
       __finally3:
       if (_inner_error_ != NULL) {
              _g_variant_builder_unref0 (vb);
              block9_data_unref (_data9_);
              _data9_ = NULL;
              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);
              g_clear_error (&_inner_error_);
              return;
       }
       _g_variant_builder_unref0 (vb);
       block9_data_unref (_data9_);
       _data9_ = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_tester_dump_filters_model ( DeeModel *  model)

Definition at line 2120 of file unity-tool.c.

                                                       {
       DeeModel* _tmp0_;
       DeeModelIter* _tmp1_ = NULL;
       DeeModelIter* iter;
       DeeModel* _tmp2_;
       DeeModelIter* _tmp3_ = NULL;
       DeeModelIter* last_iter;
       g_return_if_fail (model != NULL);
       _tmp0_ = model;
       _tmp1_ = dee_model_get_first_iter (_tmp0_);
       iter = _tmp1_;
       _tmp2_ = model;
       _tmp3_ = dee_model_get_last_iter (_tmp2_);
       last_iter = _tmp3_;
       while (TRUE) {
              DeeModelIter* _tmp4_;
              DeeModelIter* _tmp5_;
              DeeModel* _tmp6_;
              DeeModelIter* _tmp7_;
              GVariant** _tmp8_;
              GVariant** _tmp9_ = NULL;
              GVariant** row;
              gint row_length1;
              gint _row_size_;
              GVariant** _tmp10_;
              gint _tmp10__length1;
              GVariant* _tmp11_;
              const gchar* _tmp12_ = NULL;
              GVariant** _tmp13_;
              gint _tmp13__length1;
              GVariant* _tmp14_;
              const gchar* _tmp15_ = NULL;
              GVariant** _tmp16_;
              gint _tmp16__length1;
              GVariant* _tmp17_;
              const gchar* _tmp18_ = NULL;
              GVariant** _tmp19_;
              gint _tmp19__length1;
              GVariant* _tmp20_;
              const gchar* _tmp21_ = NULL;
              GVariant** _tmp22_;
              gint _tmp22__length1;
              GVariant* _tmp23_;
              gchar* _tmp24_ = NULL;
              gchar* _tmp25_;
              GVariant** _tmp26_;
              gint _tmp26__length1;
              GVariant* _tmp27_;
              gboolean _tmp28_ = FALSE;
              gchar* _tmp29_ = NULL;
              gchar* _tmp30_;
              GVariant** _tmp31_;
              gint _tmp31__length1;
              GVariant* _tmp32_;
              gboolean _tmp33_ = FALSE;
              gchar* _tmp34_ = NULL;
              gchar* _tmp35_;
              GVariant** _tmp36_;
              gint _tmp36__length1;
              GVariant* _tmp37_;
              gboolean _tmp38_ = FALSE;
              gchar* _tmp39_ = NULL;
              gchar* _tmp40_;
              DeeModel* _tmp41_;
              DeeModelIter* _tmp42_;
              DeeModelIter* _tmp43_ = NULL;
              _tmp4_ = iter;
              _tmp5_ = last_iter;
              if (!(_tmp4_ != _tmp5_)) {
                     break;
              }
              _tmp6_ = model;
              _tmp7_ = iter;
              _tmp9_ = _tmp8_ = dee_model_get_row (_tmp6_, _tmp7_, NULL);
              row = _tmp9_;
              row_length1 = _vala_array_length (_tmp8_);
              _row_size_ = row_length1;
              _tmp10_ = row;
              _tmp10__length1 = row_length1;
              _tmp11_ = _tmp10_[0];
              _tmp12_ = g_variant_get_string (_tmp11_, NULL);
              _tmp13_ = row;
              _tmp13__length1 = row_length1;
              _tmp14_ = _tmp13_[1];
              _tmp15_ = g_variant_get_string (_tmp14_, NULL);
              _tmp16_ = row;
              _tmp16__length1 = row_length1;
              _tmp17_ = _tmp16_[2];
              _tmp18_ = g_variant_get_string (_tmp17_, NULL);
              _tmp19_ = row;
              _tmp19__length1 = row_length1;
              _tmp20_ = _tmp19_[3];
              _tmp21_ = g_variant_get_string (_tmp20_, NULL);
              _tmp22_ = row;
              _tmp22__length1 = row_length1;
              _tmp23_ = _tmp22_[4];
              _tmp24_ = g_variant_print (_tmp23_, TRUE);
              _tmp25_ = _tmp24_;
              _tmp26_ = row;
              _tmp26__length1 = row_length1;
              _tmp27_ = _tmp26_[5];
              _tmp28_ = g_variant_get_boolean (_tmp27_);
              _tmp29_ = bool_to_string (_tmp28_);
              _tmp30_ = _tmp29_;
              _tmp31_ = row;
              _tmp31__length1 = row_length1;
              _tmp32_ = _tmp31_[6];
              _tmp33_ = g_variant_get_boolean (_tmp32_);
              _tmp34_ = bool_to_string (_tmp33_);
              _tmp35_ = _tmp34_;
              _tmp36_ = row;
              _tmp36__length1 = row_length1;
              _tmp37_ = _tmp36_[7];
              _tmp38_ = g_variant_get_boolean (_tmp37_);
              _tmp39_ = bool_to_string (_tmp38_);
              _tmp40_ = _tmp39_;
              g_print ("%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n", _tmp12_, _tmp15_, _tmp18_, _tmp21_, _tmp25_, _tmp30_, _tmp35_, _tmp40_);
              _g_free0 (_tmp40_);
              _g_free0 (_tmp35_);
              _g_free0 (_tmp30_);
              _g_free0 (_tmp25_);
              _tmp41_ = model;
              _tmp42_ = iter;
              _tmp43_ = dee_model_next (_tmp41_, _tmp42_);
              iter = _tmp43_;
              row = (_vala_array_free (row, row_length1, (GDestroyNotify) g_variant_unref), NULL);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_tester_dump_results_model ( DeeModel *  model)

Definition at line 2000 of file unity-tool.c.

                                                       {
       DeeModel* _tmp0_;
       DeeModelIter* _tmp1_ = NULL;
       DeeModelIter* iter;
       DeeModel* _tmp2_;
       DeeModelIter* _tmp3_ = NULL;
       DeeModelIter* last_iter;
       g_return_if_fail (model != NULL);
       _tmp0_ = model;
       _tmp1_ = dee_model_get_first_iter (_tmp0_);
       iter = _tmp1_;
       _tmp2_ = model;
       _tmp3_ = dee_model_get_last_iter (_tmp2_);
       last_iter = _tmp3_;
       while (TRUE) {
              DeeModelIter* _tmp4_;
              DeeModelIter* _tmp5_;
              DeeModel* _tmp6_;
              DeeModelIter* _tmp7_;
              GVariant** _tmp8_;
              GVariant** _tmp9_ = NULL;
              GVariant** row;
              gint row_length1;
              gint _row_size_;
              GVariant** _tmp10_;
              gint _tmp10__length1;
              GVariant* _tmp11_;
              const gchar* _tmp12_ = NULL;
              GVariant** _tmp13_;
              gint _tmp13__length1;
              GVariant* _tmp14_;
              const gchar* _tmp15_ = NULL;
              GVariant** _tmp16_;
              gint _tmp16__length1;
              GVariant* _tmp17_;
              guint32 _tmp18_ = 0U;
              GVariant** _tmp19_;
              gint _tmp19__length1;
              GVariant* _tmp20_;
              const gchar* _tmp21_ = NULL;
              GVariant** _tmp22_;
              gint _tmp22__length1;
              GVariant* _tmp23_;
              const gchar* _tmp24_ = NULL;
              GVariant** _tmp25_;
              gint _tmp25__length1;
              GVariant* _tmp26_;
              const gchar* _tmp27_ = NULL;
              GVariant** _tmp28_;
              gint _tmp28__length1;
              GVariant* _tmp29_;
              const gchar* _tmp30_ = NULL;
              DeeModel* _tmp31_;
              DeeModelIter* _tmp32_;
              DeeModelIter* _tmp33_ = NULL;
              _tmp4_ = iter;
              _tmp5_ = last_iter;
              if (!(_tmp4_ != _tmp5_)) {
                     break;
              }
              _tmp6_ = model;
              _tmp7_ = iter;
              _tmp9_ = _tmp8_ = dee_model_get_row (_tmp6_, _tmp7_, NULL);
              row = _tmp9_;
              row_length1 = _vala_array_length (_tmp8_);
              _row_size_ = row_length1;
              _tmp10_ = row;
              _tmp10__length1 = row_length1;
              _tmp11_ = _tmp10_[0];
              _tmp12_ = g_variant_get_string (_tmp11_, NULL);
              _tmp13_ = row;
              _tmp13__length1 = row_length1;
              _tmp14_ = _tmp13_[1];
              _tmp15_ = g_variant_get_string (_tmp14_, NULL);
              _tmp16_ = row;
              _tmp16__length1 = row_length1;
              _tmp17_ = _tmp16_[2];
              _tmp18_ = g_variant_get_uint32 (_tmp17_);
              _tmp19_ = row;
              _tmp19__length1 = row_length1;
              _tmp20_ = _tmp19_[3];
              _tmp21_ = g_variant_get_string (_tmp20_, NULL);
              _tmp22_ = row;
              _tmp22__length1 = row_length1;
              _tmp23_ = _tmp22_[4];
              _tmp24_ = g_variant_get_string (_tmp23_, NULL);
              _tmp25_ = row;
              _tmp25__length1 = row_length1;
              _tmp26_ = _tmp25_[5];
              _tmp27_ = g_variant_get_string (_tmp26_, NULL);
              _tmp28_ = row;
              _tmp28__length1 = row_length1;
              _tmp29_ = _tmp28_[6];
              _tmp30_ = g_variant_get_string (_tmp29_, NULL);
              g_print ("%s\t%s\t%u\t%s\t%s\t%s\t%s\n", _tmp12_, _tmp15_, (guint) _tmp18_, _tmp21_, _tmp24_, _tmp27_, _tmp30_);
              _tmp31_ = model;
              _tmp32_ = iter;
              _tmp33_ = dee_model_next (_tmp31_, _tmp32_);
              iter = _tmp33_;
              row = (_vala_array_free (row, row_length1, (GDestroyNotify) g_variant_unref), NULL);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_tester_get_lens_info ( GFunc  error_cb,
void *  error_cb_target,
UnityTesterLensInfo *  result 
)

Definition at line 1834 of file unity-tool.c.

                                                                                                     {
       Block11Data* _data11_;
       GMainLoop* _tmp0_;
       UnityTesterLensInfo _tmp16_;
       UnityTesterLensInfo _tmp17_ = {0};
       GError * _inner_error_ = NULL;
       _data11_ = g_slice_new0 (Block11Data);
       _data11_->_ref_count_ = 1;
       _tmp0_ = g_main_loop_new (NULL, FALSE);
       _data11_->ml = _tmp0_;
       memset (&_data11_->info, 0, sizeof (UnityTesterLensInfo));
       {
              GDBusConnection* _tmp1_ = NULL;
              GDBusConnection* bus;
              const gchar* _tmp2_;
              guint _tmp3_ = 0U;
              guint sig_id;
              const gchar* _tmp4_;
              const gchar* _tmp5_;
              gboolean _tmp6_ = FALSE;
              guint _tmp9_;
              _tmp1_ = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &_inner_error_);
              bus = _tmp1_;
              if (_inner_error_ != NULL) {
                     goto __catch5_g_error;
              }
              _tmp2_ = unity_tester_options_lens_dbus_path;
              _tmp3_ = g_dbus_connection_signal_subscribe (bus, NULL, "com.canonical.Unity.Lens", "Changed", _tmp2_, NULL, 0, ____lambda4__gd_bus_signal_callback, block11_data_ref (_data11_), block11_data_unref);
              sig_id = _tmp3_;
              _tmp4_ = unity_tester_options_lens_dbus_name;
              _tmp5_ = unity_tester_options_lens_dbus_path;
              g_dbus_connection_call (bus, _tmp4_, _tmp5_, "com.canonical.Unity.Lens", "InfoRequest", NULL, NULL, 0, -1, NULL, NULL, NULL);
              _tmp6_ = unity_tester_run_with_timeout (_data11_->ml, (guint) 5000);
              if (!_tmp6_) {
                     GFunc _tmp7_;
                     void* _tmp7__target;
                     _tmp7_ = error_cb;
                     _tmp7__target = error_cb_target;
                     if (_tmp7_ != NULL) {
                            GFunc _tmp8_;
                            void* _tmp8__target;
                            _tmp8_ = error_cb;
                            _tmp8__target = error_cb_target;
                            _tmp8_ ("Unable to get LensInfo!", _tmp8__target);
                     } else {
                            unity_tester_warn ("Unable to get LensInfo!", NULL);
                     }
              }
              _tmp9_ = sig_id;
              g_dbus_connection_signal_unsubscribe (bus, _tmp9_);
              _g_object_unref0 (bus);
       }
       goto __finally5;
       __catch5_g_error:
       {
              GError* e = NULL;
              GFunc _tmp10_;
              void* _tmp10__target;
              e = _inner_error_;
              _inner_error_ = NULL;
              _tmp10_ = error_cb;
              _tmp10__target = error_cb_target;
              if (_tmp10_ != NULL) {
                     GFunc _tmp11_;
                     void* _tmp11__target;
                     GError* _tmp12_;
                     const gchar* _tmp13_;
                     _tmp11_ = error_cb;
                     _tmp11__target = error_cb_target;
                     _tmp12_ = e;
                     _tmp13_ = _tmp12_->message;
                     _tmp11_ (_tmp13_, _tmp11__target);
              } else {
                     GError* _tmp14_;
                     const gchar* _tmp15_;
                     _tmp14_ = e;
                     _tmp15_ = _tmp14_->message;
                     unity_tester_warn ("%s", _tmp15_, NULL);
              }
              _g_error_free0 (e);
       }
       __finally5:
       if (_inner_error_ != NULL) {
              block11_data_unref (_data11_);
              _data11_ = NULL;
              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);
              g_clear_error (&_inner_error_);
              return;
       }
       _tmp16_ = _data11_->info;
       unity_tester_lens_info_copy (&_tmp16_, &_tmp17_);
       *result = _tmp17_;
       block11_data_unref (_data11_);
       _data11_ = NULL;
       return;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_tester_get_lens_params_from_file ( const gchar *  filename,
GError **  error 
)

Definition at line 386 of file unity-tool.c.

                                                                                    {
       GKeyFile* _tmp0_;
       GKeyFile* keyfile;
       GKeyFile* _tmp1_;
       const gchar* _tmp2_;
       GKeyFile* _tmp3_;
       gchar* _tmp4_ = NULL;
       gchar* _tmp5_;
       GKeyFile* _tmp6_;
       gchar* _tmp7_ = NULL;
       gchar* _tmp8_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (filename != NULL);
       _tmp0_ = g_key_file_new ();
       keyfile = _tmp0_;
       _tmp1_ = keyfile;
       _tmp2_ = filename;
       g_key_file_load_from_file (_tmp1_, _tmp2_, 0, &_inner_error_);
       if (_inner_error_ != NULL) {
              if ((_inner_error_->domain == G_KEY_FILE_ERROR) || (_inner_error_->domain == G_FILE_ERROR)) {
                     g_propagate_error (error, _inner_error_);
                     _g_key_file_free0 (keyfile);
                     return;
              } else {
                     _g_key_file_free0 (keyfile);
                     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);
                     g_clear_error (&_inner_error_);
                     return;
              }
       }
       _tmp3_ = keyfile;
       _tmp4_ = g_key_file_get_string (_tmp3_, "Lens", "DBusName", &_inner_error_);
       _tmp5_ = _tmp4_;
       if (_inner_error_ != NULL) {
              if ((_inner_error_->domain == G_KEY_FILE_ERROR) || (_inner_error_->domain == G_FILE_ERROR)) {
                     g_propagate_error (error, _inner_error_);
                     _g_key_file_free0 (keyfile);
                     return;
              } else {
                     _g_key_file_free0 (keyfile);
                     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);
                     g_clear_error (&_inner_error_);
                     return;
              }
       }
       _g_free0 (unity_tester_options_lens_dbus_name);
       unity_tester_options_lens_dbus_name = _tmp5_;
       _tmp6_ = keyfile;
       _tmp7_ = g_key_file_get_string (_tmp6_, "Lens", "DBusPath", &_inner_error_);
       _tmp8_ = _tmp7_;
       if (_inner_error_ != NULL) {
              if ((_inner_error_->domain == G_KEY_FILE_ERROR) || (_inner_error_->domain == G_FILE_ERROR)) {
                     g_propagate_error (error, _inner_error_);
                     _g_key_file_free0 (keyfile);
                     return;
              } else {
                     _g_key_file_free0 (keyfile);
                     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);
                     g_clear_error (&_inner_error_);
                     return;
              }
       }
       _g_free0 (unity_tester_options_lens_dbus_path);
       unity_tester_options_lens_dbus_path = _tmp8_;
       _g_key_file_free0 (keyfile);
}

Here is the caller graph for this function:

gchar** unity_tester_get_test_cases ( int *  result_length1)

Definition at line 914 of file unity-tool.c.

                                                          {
       gchar** result = NULL;
       gchar** _tmp0_ = NULL;
       gchar** results;
       gint results_length1;
       gint _results_size_;
       gchar** _tmp1_;
       gint _tmp1__length1;
       gchar** _tmp35_;
       gint _tmp35__length1;
       GError * _inner_error_ = NULL;
       _tmp0_ = g_new0 (gchar*, 0 + 1);
       results = _tmp0_;
       results_length1 = 0;
       _results_size_ = results_length1;
       _tmp1_ = unity_tester_options_test_cases;
       _tmp1__length1 = unity_tester_options_test_cases_length1;
       {
              gchar** path_collection = NULL;
              gint path_collection_length1 = 0;
              gint _path_collection_size_ = 0;
              gint path_it = 0;
              path_collection = _tmp1_;
              path_collection_length1 = _tmp1__length1;
              for (path_it = 0; path_it < _tmp1__length1; path_it = path_it + 1) {
                     gchar* _tmp2_;
                     gchar* path = NULL;
                     _tmp2_ = g_strdup (path_collection[path_it]);
                     path = _tmp2_;
                     {
                            gboolean _tmp3_ = FALSE;
                            const gchar* _tmp4_;
                            gboolean _tmp5_ = FALSE;
                            gboolean _tmp8_;
                            _tmp4_ = path;
                            _tmp5_ = g_file_test (_tmp4_, G_FILE_TEST_IS_REGULAR);
                            if (_tmp5_) {
                                   const gchar* _tmp6_;
                                   gboolean _tmp7_ = FALSE;
                                   _tmp6_ = path;
                                   _tmp7_ = g_file_test (_tmp6_, G_FILE_TEST_IS_EXECUTABLE);
                                   _tmp3_ = _tmp7_;
                            } else {
                                   _tmp3_ = FALSE;
                            }
                            _tmp8_ = _tmp3_;
                            if (_tmp8_) {
                                   gchar** _tmp9_;
                                   gint _tmp9__length1;
                                   const gchar* _tmp10_;
                                   gchar* _tmp11_;
                                   _tmp9_ = results;
                                   _tmp9__length1 = results_length1;
                                   _tmp10_ = path;
                                   _tmp11_ = g_strdup (_tmp10_);
                                   _vala_array_add1 (&results, &results_length1, &_results_size_, _tmp11_);
                            } else {
                                   const gchar* _tmp12_;
                                   gboolean _tmp13_ = FALSE;
                                   _tmp12_ = path;
                                   _tmp13_ = g_file_test (_tmp12_, G_FILE_TEST_IS_DIR);
                                   if (_tmp13_) {
                                          {
                                                 const gchar* _tmp14_;
                                                 GDir* _tmp15_ = NULL;
                                                 GDir* dir;
                                                 GDir* _tmp16_;
                                                 const gchar* _tmp17_ = NULL;
                                                 const gchar* name;
                                                 _tmp14_ = path;
                                                 _tmp15_ = g_dir_open (_tmp14_, (guint) 0, &_inner_error_);
                                                 dir = _tmp15_;
                                                 if (_inner_error_ != NULL) {
                                                        goto __catch2_g_error;
                                                 }
                                                 _tmp16_ = dir;
                                                 _tmp17_ = g_dir_read_name (_tmp16_);
                                                 name = _tmp17_;
                                                 while (TRUE) {
                                                        const gchar* _tmp18_;
                                                        const gchar* _tmp19_;
                                                        const gchar* _tmp20_;
                                                        gchar* _tmp21_ = NULL;
                                                        gchar* child_path;
                                                        gboolean _tmp22_ = FALSE;
                                                        const gchar* _tmp23_;
                                                        gboolean _tmp24_ = FALSE;
                                                        gboolean _tmp27_;
                                                        GDir* _tmp31_;
                                                        const gchar* _tmp32_ = NULL;
                                                        _tmp18_ = name;
                                                        if (!(_tmp18_ != NULL)) {
                                                               break;
                                                        }
                                                        _tmp19_ = path;
                                                        _tmp20_ = name;
                                                        _tmp21_ = g_build_filename (_tmp19_, _tmp20_, NULL, NULL);
                                                        child_path = _tmp21_;
                                                        _tmp23_ = child_path;
                                                        _tmp24_ = g_file_test (_tmp23_, G_FILE_TEST_IS_REGULAR);
                                                        if (_tmp24_) {
                                                               const gchar* _tmp25_;
                                                               gboolean _tmp26_ = FALSE;
                                                               _tmp25_ = child_path;
                                                               _tmp26_ = g_file_test (_tmp25_, G_FILE_TEST_IS_EXECUTABLE);
                                                               _tmp22_ = _tmp26_;
                                                        } else {
                                                               _tmp22_ = FALSE;
                                                        }
                                                        _tmp27_ = _tmp22_;
                                                        if (_tmp27_) {
                                                               gchar** _tmp28_;
                                                               gint _tmp28__length1;
                                                               const gchar* _tmp29_;
                                                               gchar* _tmp30_;
                                                               _tmp28_ = results;
                                                               _tmp28__length1 = results_length1;
                                                               _tmp29_ = child_path;
                                                               _tmp30_ = g_strdup (_tmp29_);
                                                               _vala_array_add2 (&results, &results_length1, &_results_size_, _tmp30_);
                                                        }
                                                        _tmp31_ = dir;
                                                        _tmp32_ = g_dir_read_name (_tmp31_);
                                                        name = _tmp32_;
                                                        _g_free0 (child_path);
                                                 }
                                                 _g_dir_close0 (dir);
                                          }
                                          goto __finally2;
                                          __catch2_g_error:
                                          {
                                                 GError* e = NULL;
                                                 GError* _tmp33_;
                                                 const gchar* _tmp34_;
                                                 e = _inner_error_;
                                                 _inner_error_ = NULL;
                                                 _tmp33_ = e;
                                                 _tmp34_ = _tmp33_->message;
                                                 unity_tester_warn ("%s", _tmp34_, NULL);
                                                 _g_error_free0 (e);
                                          }
                                          __finally2:
                                          if (_inner_error_ != NULL) {
                                                 _g_free0 (path);
                                                 results = (_vala_array_free (results, results_length1, (GDestroyNotify) g_free), NULL);
                                                 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);
                                                 g_clear_error (&_inner_error_);
                                                 return NULL;
                                          }
                                   }
                            }
                            _g_free0 (path);
                     }
              }
       }
       _tmp35_ = results;
       _tmp35__length1 = results_length1;
       if (result_length1) {
              *result_length1 = _tmp35__length1;
       }
       result = _tmp35_;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_tester_lens_info_copy ( const UnityTesterLensInfo *  self,
UnityTesterLensInfo *  dest 
)

Definition at line 291 of file unity-tool.c.

                                                                                              {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       gboolean _tmp2_;
       gboolean _tmp3_;
       const gchar* _tmp4_;
       gchar* _tmp5_;
       const gchar* _tmp6_;
       gchar* _tmp7_;
       const gchar* _tmp8_;
       gchar* _tmp9_;
       const gchar* _tmp10_;
       gchar* _tmp11_;
       const gchar* _tmp12_;
       gchar* _tmp13_;
       const gchar* _tmp14_;
       gchar* _tmp15_;
       GHashTable* _tmp16_;
       GHashTable* _tmp17_;
       _tmp0_ = (*self).dbus_path;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 ((*dest).dbus_path);
       (*dest).dbus_path = _tmp1_;
       _tmp2_ = (*self).search_in_global;
       (*dest).search_in_global = _tmp2_;
       _tmp3_ = (*self).visible;
       (*dest).visible = _tmp3_;
       _tmp4_ = (*self).search_hint;
       _tmp5_ = g_strdup (_tmp4_);
       _g_free0 ((*dest).search_hint);
       (*dest).search_hint = _tmp5_;
       _tmp6_ = (*self).private_connection_name;
       _tmp7_ = g_strdup (_tmp6_);
       _g_free0 ((*dest).private_connection_name);
       (*dest).private_connection_name = _tmp7_;
       _tmp8_ = (*self).results_model_name;
       _tmp9_ = g_strdup (_tmp8_);
       _g_free0 ((*dest).results_model_name);
       (*dest).results_model_name = _tmp9_;
       _tmp10_ = (*self).global_results_model_name;
       _tmp11_ = g_strdup (_tmp10_);
       _g_free0 ((*dest).global_results_model_name);
       (*dest).global_results_model_name = _tmp11_;
       _tmp12_ = (*self).categories_model_name;
       _tmp13_ = g_strdup (_tmp12_);
       _g_free0 ((*dest).categories_model_name);
       (*dest).categories_model_name = _tmp13_;
       _tmp14_ = (*self).filters_model_name;
       _tmp15_ = g_strdup (_tmp14_);
       _g_free0 ((*dest).filters_model_name);
       (*dest).filters_model_name = _tmp15_;
       _tmp16_ = (*self).hints;
       _tmp17_ = _g_hash_table_ref0 (_tmp16_);
       _g_hash_table_unref0 ((*dest).hints);
       (*dest).hints = _tmp17_;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_tester_lens_info_destroy ( UnityTesterLensInfo *  self)

Definition at line 349 of file unity-tool.c.

                                                                {
       _g_free0 ((*self).dbus_path);
       _g_free0 ((*self).search_hint);
       _g_free0 ((*self).private_connection_name);
       _g_free0 ((*self).results_model_name);
       _g_free0 ((*self).global_results_model_name);
       _g_free0 ((*self).categories_model_name);
       _g_free0 ((*self).filters_model_name);
       _g_hash_table_unref0 ((*self).hints);
}

Here is the caller graph for this function:

UnityTesterLensInfo* unity_tester_lens_info_dup ( const UnityTesterLensInfo *  self)

Definition at line 361 of file unity-tool.c.

                                                                                  {
       UnityTesterLensInfo* dup;
       dup = g_new0 (UnityTesterLensInfo, 1);
       unity_tester_lens_info_copy (self, dup);
       return dup;
}

Here is the call graph for this function:

void unity_tester_lens_info_free ( UnityTesterLensInfo *  self)

Definition at line 369 of file unity-tool.c.

                                                             {
       unity_tester_lens_info_destroy (self);
       g_free (self);
}

Here is the call graph for this function:

Definition at line 191 of file unity-tool.c.

                                              {{"gui", 'g', 0, G_OPTION_ARG_NONE, &unity_tester_options_gui, "Run GUI", NULL}, {"dbus-name", 'n', 0, G_OPTION_ARG_STRING, &unity_tester_options_lens_dbus_name, "Unique dbus name of the tested lens", NULL}, {"dbus-path", 'p', 0, G_OPTION_ARG_STRING, &unity_tester_options_lens_dbus_path, "Object path of the lens", NULL}, {"lens-file", 'l', 0, G_OPTION_ARG_STRING, &unity_tester_options_lens_file, "Path to the lens file (to read out dbus name and path)", NULL}, {"common-tests", 'c', 0, G_OPTION_ARG_NONE, &unity_tester_options_common_tests, "Perform common tests each lens should conform to", NULL}, {"search", 's', 0, G_OPTION_ARG_STRING, &unity_tester_options_search_string, "Search string to send to the lens", NULL}, {"search-type", 't', 0, G_OPTION_ARG_INT, &unity_tester_options_search_type, "Type of the search (value from Unity.SearchType enum)", NULL}, {"dump-results", 'r', 0, G_OPTION_ARG_NONE, &unity_tester_options_dump_results, "Output the results model on stdout", NULL}, {"dump-filters", 'f', 0, G_OPTION_ARG_NONE, &unity_tester_options_dump_filters, "Output the filter model on stdout", NULL}, {"no-search-reply", (gchar) 0, 0, G_OPTION_ARG_NONE, &unity_tester_options_no_search_reply, "Don't output reply of the search call", NULL}, {"test-server-mode", (gchar) 0, 0, G_OPTION_ARG_NONE, &unity_tester_options_test_server_mode, "Run a collection of test scripts", NULL}, {"", (gchar) 0, 0, G_OPTION_ARG_FILENAME_ARRAY, &unity_tester_options_test_cases, "Invididual test cases", "<test-scripts>"}, {NULL}};
gint unity_tester_main ( gchar **  args,
int  args_length1 
)

Definition at line 575 of file unity-tool.c.

                                                        {
       gint result = 0;
       GOptionContext* _tmp0_;
       GOptionContext* opt_context;
       GOptionContext* _tmp1_;
       GError * _inner_error_ = NULL;
       g_set_prgname ("libunity-tool");
       _tmp0_ = g_option_context_new (" - libunity tool");
       opt_context = _tmp0_;
       _tmp1_ = opt_context;
       g_option_context_add_main_entries (_tmp1_, UNITY_TESTER_options, NULL);
       {
              gchar** _tmp2_;
              gint _tmp2__length1;
              GOptionContext* _tmp6_;
              gboolean _tmp7_;
              _tmp2_ = args;
              _tmp2__length1 = args_length1;
              if (_tmp2__length1 <= 1) {
                     GOptionContext* _tmp3_;
                     gchar* _tmp4_ = NULL;
                     gchar* _tmp5_;
                     _tmp3_ = opt_context;
                     _tmp4_ = g_option_context_get_help (_tmp3_, TRUE, NULL);
                     _tmp5_ = _tmp4_;
                     g_print ("%s\n", _tmp5_);
                     _g_free0 (_tmp5_);
                     result = 0;
                     _g_option_context_free0 (opt_context);
                     return result;
              }
              _tmp6_ = opt_context;
              g_option_context_parse (_tmp6_, &args_length1, &args, &_inner_error_);
              if (_inner_error_ != NULL) {
                     goto __catch0_g_error;
              }
              _tmp7_ = unity_tester_options_test_server_mode;
              if (_tmp7_) {
                     gboolean _tmp8_ = FALSE;
                     gchar** _tmp9_;
                     gint _tmp9__length1;
                     gboolean _tmp13_;
                     gint _tmp15_ = 0;
                     gchar** _tmp16_ = NULL;
                     gchar** test_scripts;
                     gint test_scripts_length1;
                     gint _test_scripts_size_;
                     gchar** _tmp17_;
                     gint _tmp17__length1;
                     gchar** _tmp18_;
                     gint _tmp18__length1;
                     gchar** _tmp19_;
                     gint _tmp19__length1;
                     gint _tmp25_ = 0;
                     _tmp9_ = unity_tester_options_test_cases;
                     _tmp9__length1 = unity_tester_options_test_cases_length1;
                     if (_tmp9_ == NULL) {
                            _tmp8_ = TRUE;
                     } else {
                            gchar** _tmp10_;
                            gint _tmp10__length1;
                            guint _tmp11_ = 0U;
                            gint _tmp12_;
                            _tmp10_ = unity_tester_options_test_cases;
                            _tmp10__length1 = unity_tester_options_test_cases_length1;
                            _tmp11_ = g_strv_length (_tmp10_);
                            unity_tester_options_test_cases_length1 = (gint) _tmp11_;
                            _tmp12_ = unity_tester_options_test_cases_length1;
                            _tmp8_ = _tmp12_ == 0;
                     }
                     _tmp13_ = _tmp8_;
                     if (_tmp13_) {
                            GError* _tmp14_;
                            _tmp14_ = g_error_new_literal (UNITY_TESTER_TESTER_ERROR, UNITY_TESTER_TESTER_ERROR_INVALID_ARGS, "No test cases specified");
                            _inner_error_ = _tmp14_;
                            goto __catch0_g_error;
                     }
                     _tmp16_ = unity_tester_get_test_cases (&_tmp15_);
                     test_scripts = _tmp16_;
                     test_scripts_length1 = _tmp15_;
                     _test_scripts_size_ = test_scripts_length1;
                     _tmp17_ = test_scripts;
                     _tmp17__length1 = test_scripts_length1;
                     _tmp18_ = (_tmp17_ != NULL) ? _vala_array_dup1 (_tmp17_, _tmp17__length1) : ((gpointer) _tmp17_);
                     _tmp18__length1 = _tmp17__length1;
                     unity_tester_test_runner_test_cases = (_vala_array_free (unity_tester_test_runner_test_cases, unity_tester_test_runner_test_cases_length1, (GDestroyNotify) g_free), NULL);
                     unity_tester_test_runner_test_cases = _tmp18_;
                     unity_tester_test_runner_test_cases_length1 = _tmp18__length1;
                     g_test_init (&args_length1, &args, NULL);
                     _tmp19_ = test_scripts;
                     _tmp19__length1 = test_scripts_length1;
                     {
                            gchar** test_case_collection = NULL;
                            gint test_case_collection_length1 = 0;
                            gint _test_case_collection_size_ = 0;
                            gint test_case_it = 0;
                            test_case_collection = _tmp19_;
                            test_case_collection_length1 = _tmp19__length1;
                            for (test_case_it = 0; test_case_it < _tmp19__length1; test_case_it = test_case_it + 1) {
                                   const gchar* test_case = NULL;
                                   test_case = test_case_collection[test_case_it];
                                   {
                                          const gchar* _tmp20_;
                                          gchar* _tmp21_ = NULL;
                                          gchar* _tmp22_;
                                          gchar* _tmp23_;
                                          gchar* _tmp24_;
                                          _tmp20_ = test_case;
                                          _tmp21_ = g_path_get_basename (_tmp20_);
                                          _tmp22_ = _tmp21_;
                                          _tmp23_ = g_strconcat ("/Integration/LensTest/", _tmp22_, NULL);
                                          _tmp24_ = _tmp23_;
                                          g_test_add_data_func (_tmp24_, NULL, _______lambda10__gtest_data_func);
                                          _g_free0 (_tmp24_);
                                          _g_free0 (_tmp22_);
                                   }
                            }
                     }
                     _tmp25_ = g_test_run ();
                     result = _tmp25_;
                     test_scripts = (_vala_array_free (test_scripts, test_scripts_length1, (GDestroyNotify) g_free), NULL);
                     _g_option_context_free0 (opt_context);
                     return result;
              } else {
                     const gchar* _tmp26_;
                     gboolean _tmp28_;
                     gboolean _tmp32_ = FALSE;
                     const gchar* _tmp33_;
                     gboolean _tmp35_;
                     gboolean _tmp37_;
                     const gchar* _tmp40_;
                     gboolean _tmp46_ = FALSE;
                     gboolean _tmp47_;
                     gboolean _tmp49_;
                     _tmp26_ = unity_tester_options_lens_file;
                     if (_tmp26_ != NULL) {
                            const gchar* _tmp27_;
                            _tmp27_ = unity_tester_options_lens_file;
                            unity_tester_get_lens_params_from_file (_tmp27_, &_inner_error_);
                            if (_inner_error_ != NULL) {
                                   goto __catch0_g_error;
                            }
                     }
                     _tmp28_ = unity_tester_options_gui;
                     if (_tmp28_) {
                            UnityTesterUnityToolUi* _tmp29_;
                            UnityTesterUnityToolUi* _tmp30_;
                            gboolean _tmp31_ = FALSE;
                            gtk_init (&args_length1, &args);
                            _tmp29_ = unity_tester_unity_tool_ui_new ();
                            _g_object_unref0 (unity_tester_ui);
                            unity_tester_ui = _tmp29_;
                            _tmp30_ = unity_tester_ui;
                            _tmp31_ = unity_tester_unity_tool_ui_init_gui (_tmp30_);
                            if (_tmp31_) {
                                   gtk_main ();
                            }
                            result = 0;
                            _g_option_context_free0 (opt_context);
                            return result;
                     }
                     _tmp33_ = unity_tester_options_lens_dbus_name;
                     if (_tmp33_ == NULL) {
                            _tmp32_ = TRUE;
                     } else {
                            const gchar* _tmp34_;
                            _tmp34_ = unity_tester_options_lens_dbus_path;
                            _tmp32_ = _tmp34_ == NULL;
                     }
                     _tmp35_ = _tmp32_;
                     if (_tmp35_) {
                            GError* _tmp36_;
                            _tmp36_ = g_error_new_literal (UNITY_TESTER_TESTER_ERROR, UNITY_TESTER_TESTER_ERROR_INVALID_ARGS, "Lens DBus name and path not specified!");
                            _inner_error_ = _tmp36_;
                            goto __catch0_g_error;
                     }
                     _tmp37_ = unity_tester_options_common_tests;
                     if (_tmp37_) {
                            gint _tmp38_ = 0;
                            gint status;
                            gint _tmp39_;
                            _tmp38_ = unity_tester_run_common_tests ();
                            status = _tmp38_;
                            _tmp39_ = status;
                            _vala_assert (_tmp39_ == 0, "status == 0");
                     }
                     _tmp40_ = unity_tester_options_search_string;
                     if (_tmp40_ != NULL) {
                            Block1Data* _data1_;
                            GMainLoop* _tmp41_;
                            const gchar* _tmp42_;
                            gint _tmp43_;
                            GMainLoop* _tmp44_;
                            gboolean _tmp45_ = FALSE;
                            _data1_ = g_slice_new0 (Block1Data);
                            _data1_->_ref_count_ = 1;
                            _tmp41_ = g_main_loop_new (NULL, FALSE);
                            _data1_->ml = _tmp41_;
                            _tmp42_ = unity_tester_options_search_string;
                            _tmp43_ = unity_tester_options_search_type;
                            unity_tester_call_lens_search (_tmp42_, _tmp43_, ______lambda23__gfunc, _data1_, NULL, NULL);
                            _tmp44_ = _data1_->ml;
                            _tmp45_ = unity_tester_run_with_timeout (_tmp44_, (guint) 15000);
                            _vala_assert (_tmp45_, "run_with_timeout (ml, 15000)");
                            block1_data_unref (_data1_);
                            _data1_ = NULL;
                     }
                     _tmp47_ = unity_tester_options_dump_results;
                     if (_tmp47_) {
                            _tmp46_ = TRUE;
                     } else {
                            gboolean _tmp48_;
                            _tmp48_ = unity_tester_options_dump_filters;
                            _tmp46_ = _tmp48_;
                     }
                     _tmp49_ = _tmp46_;
                     if (_tmp49_) {
                            UnityTesterLensInfo _tmp50_ = {0};
                            UnityTesterLensInfo li;
                            gboolean _tmp51_;
                            gboolean _tmp64_;
                            unity_tester_get_lens_info (NULL, NULL, &_tmp50_);
                            li = _tmp50_;
                            _tmp51_ = unity_tester_options_dump_results;
                            if (_tmp51_) {
                                   const gchar* _tmp52_ = NULL;
                                   gint _tmp53_;
                                   const gchar* _tmp58_;
                                   gchar* _tmp59_;
                                   gchar* model_name;
                                   const gchar* _tmp60_;
                                   DeeSharedModel* _tmp61_;
                                   DeeSharedModel* model;
                                   DeeSharedModel* _tmp62_;
                                   DeeSharedModel* _tmp63_;
                                   _tmp53_ = unity_tester_options_search_type;
                                   if (_tmp53_ == 0) {
                                          UnityTesterLensInfo _tmp54_;
                                          const gchar* _tmp55_;
                                          _tmp54_ = li;
                                          _tmp55_ = _tmp54_.results_model_name;
                                          _tmp52_ = _tmp55_;
                                   } else {
                                          UnityTesterLensInfo _tmp56_;
                                          const gchar* _tmp57_;
                                          _tmp56_ = li;
                                          _tmp57_ = _tmp56_.global_results_model_name;
                                          _tmp52_ = _tmp57_;
                                   }
                                   _tmp58_ = _tmp52_;
                                   _tmp59_ = g_strdup (_tmp58_);
                                   model_name = _tmp59_;
                                   _tmp60_ = model_name;
                                   _tmp61_ = (DeeSharedModel*) dee_shared_model_new (_tmp60_);
                                   model = _tmp61_;
                                   _tmp62_ = model;
                                   unity_tester_sync_model (_tmp62_);
                                   _tmp63_ = model;
                                   unity_tester_dump_results_model ((DeeModel*) _tmp63_);
                                   _g_object_unref0 (model);
                                   _g_free0 (model_name);
                            }
                            _tmp64_ = unity_tester_options_dump_filters;
                            if (_tmp64_) {
                                   UnityTesterLensInfo _tmp65_;
                                   const gchar* _tmp66_;
                                   DeeSharedModel* _tmp67_;
                                   DeeSharedModel* model;
                                   DeeSharedModel* _tmp68_;
                                   DeeSharedModel* _tmp69_;
                                   _tmp65_ = li;
                                   _tmp66_ = _tmp65_.filters_model_name;
                                   _tmp67_ = (DeeSharedModel*) dee_shared_model_new (_tmp66_);
                                   model = _tmp67_;
                                   _tmp68_ = model;
                                   unity_tester_sync_model (_tmp68_);
                                   _tmp69_ = model;
                                   unity_tester_dump_filters_model ((DeeModel*) _tmp69_);
                                   _g_object_unref0 (model);
                            }
                            unity_tester_lens_info_destroy (&li);
                     }
              }
       }
       goto __finally0;
       __catch0_g_error:
       {
              GError* err = NULL;
              GError* _tmp70_;
              const gchar* _tmp71_;
              err = _inner_error_;
              _inner_error_ = NULL;
              _tmp70_ = err;
              _tmp71_ = _tmp70_->message;
              unity_tester_warn ("%s", _tmp71_, NULL);
              result = 1;
              _g_error_free0 (err);
              _g_option_context_free0 (opt_context);
              return result;
       }
       __finally0:
       if (_inner_error_ != NULL) {
              _g_option_context_free0 (opt_context);
              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);
              g_clear_error (&_inner_error_);
              return 0;
       }
       result = 0;
       _g_option_context_free0 (opt_context);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1474 of file unity-tool.c.

                                          {
       gint result = 0;
       gchar* _tmp0_;
       gchar** _tmp1_ = NULL;
       gchar** args;
       gint args_length1;
       gint _args_size_;
       gchar** dummy;
       gint dummy_length1;
       gint _dummy_size_;
       gint _tmp2_ = 0;
       _tmp0_ = g_strdup ("./libunity-tool");
       _tmp1_ = g_new0 (gchar*, 1 + 1);
       _tmp1_[0] = _tmp0_;
       args = _tmp1_;
       args_length1 = 1;
       _args_size_ = args_length1;
       dummy = args;
       dummy_length1 = args_length1;
       _dummy_size_ = dummy_length1;
       g_test_init (&dummy_length1, &dummy, NULL);
       g_test_add_data_func ("/Integration/LensTest/DefaultSearch/Empty", NULL, ___lambda11__gtest_data_func);
       g_test_add_data_func ("/Integration/LensTest/DefaultSearch/NonEmpty", NULL, ___lambda13__gtest_data_func);
       g_test_add_data_func ("/Integration/LensTest/DefaultSearch/Empty2", NULL, ___lambda15__gtest_data_func);
       g_test_add_data_func ("/Integration/LensTest/GlobalSearch/Empty", NULL, ___lambda17__gtest_data_func);
       g_test_add_data_func ("/Integration/LensTest/GlobalSearch/NonEmpty", NULL, ___lambda19__gtest_data_func);
       g_test_add_data_func ("/Integration/LensTest/GlobalSearch/Empty2", NULL, ___lambda21__gtest_data_func);
       _tmp2_ = g_test_run ();
       result = _tmp2_;
       args = (_vala_array_free (args, args_length1, (GDestroyNotify) g_free), NULL);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean unity_tester_run_with_timeout ( GMainLoop *  ml,
guint  timeout_ms 
)

Definition at line 1119 of file unity-tool.c.

                                                                         {
       gboolean result = FALSE;
       Block2Data* _data2_;
       GMainLoop* _tmp0_;
       GMainLoop* _tmp1_;
       guint _tmp2_;
       guint _tmp3_ = 0U;
       guint t_id;
       GMainLoop* _tmp4_;
       gboolean _tmp5_;
       gboolean _tmp7_;
       g_return_val_if_fail (ml != NULL, FALSE);
       _data2_ = g_slice_new0 (Block2Data);
       _data2_->_ref_count_ = 1;
       _tmp0_ = ml;
       _tmp1_ = _g_main_loop_ref0 (_tmp0_);
       _data2_->ml = _tmp1_;
       _data2_->timeout_reached = FALSE;
       _tmp2_ = timeout_ms;
       _tmp3_ = g_timeout_add_full (G_PRIORITY_DEFAULT, _tmp2_, ___lambda5__gsource_func, block2_data_ref (_data2_), block2_data_unref);
       t_id = _tmp3_;
       _tmp4_ = _data2_->ml;
       g_main_loop_run (_tmp4_);
       _tmp5_ = _data2_->timeout_reached;
       if (!_tmp5_) {
              guint _tmp6_;
              _tmp6_ = t_id;
              g_source_remove (_tmp6_);
       }
       _tmp7_ = _data2_->timeout_reached;
       result = !_tmp7_;
       block2_data_unref (_data2_);
       _data2_ = NULL;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_tester_sync_model ( DeeSharedModel *  model)

Definition at line 1960 of file unity-tool.c.

                                                     {
       g_return_if_fail (model != NULL);
       while (TRUE) {
              Block12Data* _data12_;
              DeeSharedModel* _tmp0_;
              gboolean _tmp1_ = FALSE;
              gboolean _tmp2_;
              GMainLoop* _tmp3_;
              DeeSharedModel* _tmp4_;
              gulong _tmp5_ = 0UL;
              gulong sig_id;
              GMainLoop* _tmp6_;
              DeeSharedModel* _tmp7_;
              gulong _tmp8_;
              _data12_ = g_slice_new0 (Block12Data);
              _data12_->_ref_count_ = 1;
              _tmp0_ = model;
              g_object_get (_tmp0_, "synchronized", &_tmp1_, NULL);
              _tmp2_ = _tmp1_;
              if (!(!_tmp2_)) {
                     block12_data_unref (_data12_);
                     _data12_ = NULL;
                     break;
              }
              _tmp3_ = g_main_loop_new (NULL, FALSE);
              _data12_->ml = _tmp3_;
              _tmp4_ = model;
              _tmp5_ = g_signal_connect_data ((GObject*) _tmp4_, "notify::synchronized", (GCallback) ____lambda24__g_object_notify, block12_data_ref (_data12_), (GClosureNotify) block12_data_unref, 0);
              sig_id = _tmp5_;
              _tmp6_ = _data12_->ml;
              g_main_loop_run (_tmp6_);
              _tmp7_ = model;
              _tmp8_ = sig_id;
              g_signal_handler_disconnect (_tmp7_, _tmp8_);
              block12_data_unref (_data12_);
              _data12_ = NULL;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 281 of file unity-tool.c.

                                              {
       return g_quark_from_static_string ("unity_tester_tester_error-quark");
}
void unity_tester_warn ( const gchar *  format,
  ... 
)

Definition at line 454 of file unity-tool.c.

                                                  {
       va_list args = {0};
       const gchar* _tmp0_;
       g_return_if_fail (format != NULL);
       va_start (args, format);
       _tmp0_ = format;
       g_logv ("libunity-tool", G_LOG_LEVEL_WARNING, _tmp0_, args);
       va_end (args);
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 168 of file unity-tool.c.

Definition at line 174 of file unity-tool.c.

Definition at line 172 of file unity-tool.c.

gboolean unity_tester_options_gui = FALSE

Definition at line 156 of file unity-tool.c.

Definition at line 158 of file unity-tool.c.

Definition at line 160 of file unity-tool.c.

Definition at line 162 of file unity-tool.c.

Definition at line 170 of file unity-tool.c.

Definition at line 164 of file unity-tool.c.

Definition at line 166 of file unity-tool.c.

Definition at line 179 of file unity-tool.c.

Definition at line 180 of file unity-tool.c.

Definition at line 176 of file unity-tool.c.

Definition at line 183 of file unity-tool.c.

Definition at line 184 of file unity-tool.c.

Definition at line 186 of file unity-tool.c.

UnityTesterUnityToolUi * unity_tester_ui = NULL

Definition at line 188 of file unity-tool.c.