Adjust the coverage exception section 81/178281/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 9 May 2018 06:48:23 +0000 (15:48 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 9 May 2018 06:48:23 +0000 (15:48 +0900)
Change-Id: Ie743248c7bdd27ee2d02657df51f8aa2cc377562
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
src/bluetooth-adapter.c
src/bluetooth-common.c
src/bluetooth-device.c
src/bluetooth-gatt.c
src/bluetooth-map-client.c

index 29cff0e1873ab59de539f5eeb1ee99845cb12f64..d092ceee45d9f5bf9ee4ae13955328d6fc96a47f 100644 (file)
@@ -1571,6 +1571,7 @@ int bt_adapter_le_destroy_advertiser(bt_advertiser_h advertiser)
        return ret;
 }
 
+/* LCOV_EXCL_START */
 static int __bt_remove_ad_data_by_type(char *in_data, unsigned int in_len,
                char in_type, char **data, unsigned int *data_len)
 {
@@ -1620,6 +1621,7 @@ static int __bt_remove_ad_data_by_type(char *in_data, unsigned int in_len,
 
        return BT_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 static int bt_adapter_le_add_advertising_data(bt_advertiser_h advertiser,
                bt_adapter_le_packet_type_e pkt_type,
@@ -1690,6 +1692,7 @@ static int bt_adapter_le_add_advertising_data(bt_advertiser_h advertiser,
        return BT_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 static int bt_adapter_le_remove_advertising_data(bt_advertiser_h advertiser,
                bt_adapter_le_packet_type_e pkt_type,
                bt_adapter_le_advertising_data_type_e data_type)
@@ -1739,6 +1742,7 @@ static int bt_adapter_le_remove_advertising_data(bt_advertiser_h advertiser,
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
 
 static int __bt_convert_string_to_uuid(const char *string,
                                        char **uuid, int *bit)
index c7adf14a84625dd57c05d0ce75883bbd47937f2e..3200a898364136a1554ad933993408d9ac35dfe2 100644 (file)
@@ -152,6 +152,7 @@ int _bt_le_adapter_init(void)
        return BT_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 int _bt_le_adapter_deinit(void)
 {
        if (!is_le_initialized) {
@@ -160,15 +161,16 @@ int _bt_le_adapter_deinit(void)
        }
 
        if (!_bt_check_cb(BT_EVENT_LE_STATE_CHANGED)) {
-               if (bluetooth_le_unregister_callback() != BLUETOOTH_ERROR_NONE) { /* LCOV_EXCL_LINE */
-                       BT_ERR("OPERATION_FAILED(0x%08x)", BT_ERROR_OPERATION_FAILED); /* LCOV_EXCL_LINE */
-                       return BT_ERROR_OPERATION_FAILED; /* LCOV_EXCL_LINE */
+               if (bluetooth_le_unregister_callback() != BLUETOOTH_ERROR_NONE) {
+                       BT_ERR("OPERATION_FAILED(0x%08x)", BT_ERROR_OPERATION_FAILED);
+                       return BT_ERROR_OPERATION_FAILED;
                }
-               is_le_initialized = false; /* LCOV_EXCL_LINE */
+               is_le_initialized = false;
        }
 
        return BT_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 int _bt_get_error_code(int origin_error)
 {
index a8de42fbc70fa5008ce8a06214c666411693e561..09f40080de7d5d5847924bd7144c07438f514b0e 100644 (file)
@@ -332,6 +332,7 @@ int bt_device_set_connection_state_changed_cb(bt_device_connection_state_changed
        return BT_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 int bt_device_set_att_mtu_changed_cb(bt_device_att_mtu_changed_cb callback, void *user_data)
 {
        BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON);
@@ -341,6 +342,7 @@ int bt_device_set_att_mtu_changed_cb(bt_device_att_mtu_changed_cb callback, void
 
        return BT_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 int bt_device_unset_bond_created_cb(void)
 {
@@ -395,8 +397,10 @@ int bt_device_unset_rssi_alert_cb(void)
        BT_CHECK_INIT_STATUS();
        _bt_unset_cb(BT_EVENT_RSSI_ALERT_EVENT);
        return BT_ERROR_NONE;
-} /* LCOV_EXCL_STOP */
+}
+/* LCOV_EXCL_STOP */
 
+/* LCOV_EXCL_START */
 int bt_device_unset_att_mtu_changed_cb(void)
 {
        BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON);
@@ -404,6 +408,7 @@ int bt_device_unset_att_mtu_changed_cb(void)
        _bt_unset_cb(BT_EVENT_GATT_ATT_MTU_CHANGE_STATUS);
        return BT_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 /* LCOV_EXCL_START */
 int bt_device_enable_rssi_monitor(const char *remote_address,
index 520b580b8e2c30b36e8f291aa4a759c4b91b230d..2b6313e2c9a0e32b57daf41acf4e0e3cc6566ed0 100644 (file)
@@ -723,6 +723,7 @@ int bt_gatt_destroy(bt_gatt_h gatt_handle)
        return BT_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 static int __get_write_prop(bt_gatt_write_type_e type, bt_gatt_property_e *prop)
 {
        if (!prop)
@@ -748,6 +749,7 @@ static int __get_write_prop(bt_gatt_write_type_e type, bt_gatt_property_e *prop)
 
        return BT_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 int bt_gatt_service_destroy(bt_gatt_h gatt_handle)
 {
index a7e92dd01c280a98cead5657ff2f362ba9097eac..c6b99539a8560ee0f512c88c441f9c7aa00bcfbf 100644 (file)
@@ -194,7 +194,7 @@ int bt_map_client_list_folders(bt_map_client_session_info_h handle,
                _bt_set_cb(BT_EVENT_MAP_CLIENT_LIST_FOLDERS, callback, user_data);
        }
 
-       return error_code; /* LCOV_EXCL_STOP */
+       return error_code;
 }
 
 int bt_map_client_list_filter_fields(bt_map_client_session_info_h handle,
@@ -346,7 +346,7 @@ int bt_map_client_get_message(bt_map_client_session_info_h handle,
                _bt_set_cb(BT_EVENT_MAP_CLIENT_GET_MESSAGE, callback, data);
        }
 
-       return error_code; /* LCOV_EXCL_STOP */
+       return error_code;
 }
 
 void bt_map_client_list_folders_filter_create(bt_map_client_list_folders_filter_h *filter)