Exclude coverage for hid-agent 75/183275/2
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 4 Jul 2018 04:51:53 +0000 (13:51 +0900)
committerPyun DoHyun <dh79.pyun@samsung.com>
Wed, 4 Jul 2018 23:20:06 +0000 (23:20 +0000)
hid-agent - Line Cov: 89.7%, Func Cov: 100%)

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

index fcf5e01..8a95260 100644 (file)
@@ -65,6 +65,7 @@ static int bt_hid_sig_to_handle[] = { SIGABRT, SIGSEGV, SIGTERM };
 static void __bt_hid_agent_sigterm_handler(int signo);
 static GError *__bt_hid_agent_set_error(bt_hid_agent_error_t error);
 
+/* LCOV_EXCL_START */
 static void __on_log_glib(const gchar *log_domain, GLogLevelFlags log_level,
                const gchar *msg, gpointer user_data)
 {
@@ -775,9 +776,7 @@ static void __bt_hid_agent_dbus_deinit(void)
                gdbus_conn = NULL;
        }
 }
-
-
-
+/* LCOV_EXCL_STOP */
 
 bt_hid_agent_error_t _bt_hid_disconnect_profile(void)
 {
@@ -792,6 +791,7 @@ bt_hid_agent_error_t _bt_hid_disconnect_profile(void)
                return BT_HID_AGENT_ERROR_INTERNAL;
        }
 
+       /* LCOV_EXCL_START */
        g_dbus_proxy_call(proxy, "DisconnectProfile",
                        g_variant_new("(s)", HID_DEVICE_UUID),
                        G_DBUS_CALL_FLAGS_NONE, 2000,
@@ -800,8 +800,10 @@ bt_hid_agent_error_t _bt_hid_disconnect_profile(void)
        FN_END;
 
        return BT_HID_AGENT_ERROR_NONE;
+       /* LCOV_EXCL_STOP */
 }
 
+/* LCOV_EXCL_START */
 int main(void)
 {
        int i;
@@ -837,4 +839,4 @@ int main(void)
        INFO_C("### Terminating Bluetooth HID agent");
        return 0;
 }
-
+/* LCOV_EXCL_STOP */