From 32b2ebb384e9328a4b65273effb9f5c1e4c8ebe1 Mon Sep 17 00:00:00 2001 From: Dohyun Pyun Date: Tue, 11 Oct 2022 09:30:51 +0900 Subject: [PATCH] Add the coverage exception for internal API functions Change-Id: I6bd4fa1281cccd5c4c199ec72d35a67f6788ba8a Signed-off-by: Dohyun Pyun --- src/bluetooth-adapter.c | 2 +- src/bluetooth-common.c | 2 ++ src/bluetooth-gatt.c | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bluetooth-adapter.c b/src/bluetooth-adapter.c index 82f6188..e182783 100644 --- a/src/bluetooth-adapter.c +++ b/src/bluetooth-adapter.c @@ -233,6 +233,7 @@ int bt_adapter_get_address(char **address) return BT_ERROR_NONE; } +/* LCOV_EXCL_START */ int bt_adapter_get_hci_address(char **address) { BT_CHECK_SUPPORTED_FEATURE(BT_FEATURE_COMMON); @@ -273,7 +274,6 @@ int bt_adapter_get_hci_address(char **address) return BT_ERROR_NONE; } -/* LCOV_EXCL_START */ int bt_adapter_get_version(char **version) { int ret = BT_ERROR_NONE; diff --git a/src/bluetooth-common.c b/src/bluetooth-common.c index 60af564..a96d468 100644 --- a/src/bluetooth-common.c +++ b/src/bluetooth-common.c @@ -4728,6 +4728,7 @@ tizen_profile_t _get_tizen_profile() return profile; } +/* LCOV_EXCL_START */ tizen_model_t model = _MODEL_UNKNOWN; tizen_model_t _get_tizen_model(void) { @@ -4752,3 +4753,4 @@ tizen_model_t _get_tizen_model(void) return model; } +/* LCOV_EXCL_STOP */ diff --git a/src/bluetooth-gatt.c b/src/bluetooth-gatt.c index 5643b29..98e7f31 100644 --- a/src/bluetooth-gatt.c +++ b/src/bluetooth-gatt.c @@ -989,7 +989,7 @@ int bt_gatt_disconnect(const char *address) _bt_unset_cb(BT_EVENT_GATT_CONNECTION_STATUS); return ret; } -/* LCOV_EXCL_STOP */ + int bt_gatt_server_set_connection_state_changed_cb(bt_gatt_server_h server, bt_gatt_server_connection_state_changed_cb callback, void *user_data) { @@ -1019,6 +1019,7 @@ int bt_gatt_server_unset_connection_state_changed_cb(bt_gatt_server_h server) return BT_ERROR_NONE; } +/* LCOV_EXCL_STOP */ int bt_gatt_set_connection_state_changed_cb(bt_gatt_connection_state_changed_cb callback, void *user_data) -- 2.7.4