Exclude coverage for ipsp-agent 56/183356/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 5 Jul 2018 00:05:50 +0000 (09:05 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Thu, 5 Jul 2018 00:05:50 +0000 (09:05 +0900)
ipsp-agent - Line Cov: 100%, Func Cov: 100%)

Change-Id: I8fde27e2daa9a168444c6af82456ed7a691d4df9
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
ipsp-agent/bluetooth-ipsp-agent.c

index fc5e831..f16531c 100644 (file)
@@ -99,6 +99,7 @@ void _bt_ipsp_gdbus_deinit_proxys(void)
        BT_DBG("-");
 }
 
+/* LCOV_EXCL_START */
 void _bt_ipsp_terminate(void)
 {
        _bt_ipsp_gdbus_deinit_proxys();
@@ -109,6 +110,7 @@ void _bt_ipsp_terminate(void)
                exit(0);
        }
 }
+/* LCOV_EXCL_STOP */
 
 static GDBusConnection *__bt_ipsp_get_gdbus_connection(void)
 {
@@ -118,11 +120,13 @@ static GDBusConnection *__bt_ipsp_get_gdbus_connection(void)
                service_gconn = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &err);
 
        if (!service_gconn) {
+               /* LCOV_EXCL_START */
                if (err) {
                        BT_ERR("Unable to connect to dbus: %s", err->message);
                        g_clear_error(&err);
                }
                return NULL;
+               /* LCOV_EXCL_STOP */
        }
 
        return service_gconn;
@@ -158,6 +162,7 @@ void  _bt_ipsp_unregister_dbus(void)
        }
 }
 
+/* LCOV_EXCL_START */
 static void __bt_ipsp_sigterm_handler(int signo)
 {
        BT_DBG("Got the signal: %d", signo);
@@ -819,6 +824,7 @@ static void __bt_ipsp_event_filter(GDBusConnection *connection,
 //                     __handle_name_owner_changed(name);
        }
 }
+/* LCOV_EXCL_STOP */
 
 static GDBusNodeInfo *__bt_ipsp_create_node_info(
                                        const gchar *introspection_data)
@@ -832,8 +838,10 @@ static GDBusNodeInfo *__bt_ipsp_create_node_info(
        node_info = g_dbus_node_info_new_for_xml(introspection_data, &err);
 
        if (err) {
+               /* LCOV_EXCL_START */
                BT_ERR("Unable to create node: %s", err->message);
                g_clear_error(&err);
+               /* LCOV_EXCL_STOP */
        }
        return node_info;
 }
@@ -870,9 +878,11 @@ gboolean _bt_ipsp_register_dbus(void)
                                        &method_table,
                                        NULL, NULL, &error);
        if (obj_id == 0) {
+               /* LCOV_EXCL_START */
                BT_ERR("Failed to register: %s", error->message);
                g_error_free(error);
                g_free(path);
+               /* LCOV_EXCL_STOP */
                return FALSE;
        }
 
@@ -894,6 +904,7 @@ gboolean _bt_ipsp_register_dbus(void)
        return TRUE;
 }
 
+/* LCOV_EXCL_START */
 int main(void)
 {
        gboolean ret;
@@ -935,3 +946,4 @@ fail:
 
 
 }
+/* LCOV_EXCL_STOP */