Add lcov tag for non public API 11/229011/1 accepted/tizen/unified/20200330.054448 submit/tizen/20200327.063924
authorsinikang <sinikang@samsung.com>
Fri, 27 Mar 2020 05:32:09 +0000 (14:32 +0900)
committersinikang <sinikang@samsung.com>
Fri, 27 Mar 2020 05:32:09 +0000 (14:32 +0900)
 - IMEI, MEID and ICCID getter API should be excluded from function coverage
   because these functions are partner level APIs.
 - telephony_priviate.c should be excluded from function coverage
   because there is no public API implementation, but just utility fuctions only.

Change-Id: I94b926d41c6803921578d9be825fcb15387c26ee
Signed-off-by: sinikang <sinikang@samsung.com>
packaging/capi-telephony.spec
src/telephony_modem.c
src/telephony_private.c
src/telephony_sim.c

index 0a95d272c41bf15a0002383642129ea454b57747..24ffeee6c0e9bd1155a7e477e9d385840c389123 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-telephony
 Summary:    Telephony Core API
-Version:    0.1.84
+Version:    0.1.85
 Release:    1
 Group:      System/Libraries
 License:    Apache-2.0
index 45b92b2e7d35f4f4721013f0998d5e054f8dff86..6a322ac8c1d22993fbd8b6bbea99bb11ff7fb15c 100644 (file)
@@ -27,6 +27,7 @@
 #include "telephony_modem.h"
 #include "telephony_private.h"
 
+/* LCOV_EXCL_START */
 int telephony_modem_get_imei(telephony_h handle, char **imei)
 {
        GVariant *gv = NULL;
@@ -76,11 +77,11 @@ int telephony_modem_get_imei(telephony_h handle, char **imei)
                        error = TELEPHONY_ERROR_OPERATION_FAILED;
                }
                g_error_free(gerr);
-               /* LCOV_EXCL_STOP */
        }
 
        return error;
 }
+/* LCOV_EXCL_STOP */
 
 int telephony_modem_get_power_status(telephony_h handle,
        telephony_modem_power_status_e *status)
@@ -132,6 +133,7 @@ int telephony_modem_get_power_status(telephony_h handle,
 
 }
 
+/* LCOV_EXCL_START */
 int telephony_modem_get_meid(telephony_h handle, char **meid)
 {
        int ret = TELEPHONY_ERROR_NONE;
@@ -170,7 +172,6 @@ int telephony_modem_get_meid(telephony_h handle, char **meid)
                }
                g_variant_unref(gv);
        } else {
-               /* LCOV_EXCL_START */
                LOGE("g_dbus_conn failed. error (%s)", gerr->message);
                if (strstr(gerr->message, "AccessDenied")) {
                        if (telephony_check_legacy_telephony_privilege()) {
@@ -185,8 +186,8 @@ int telephony_modem_get_meid(telephony_h handle, char **meid)
                        ret = TELEPHONY_ERROR_OPERATION_FAILED;
                }
                g_error_free(gerr);
-               /* LCOV_EXCL_STOP */
        }
 
        return ret;
 }
+/* LCOV_EXCL_STOP */
index 133b2589d3d89af793b5610d0cab8da9a14c601c..d2b39813fd19df1fd592d864520df1b9e32b2507 100644 (file)
@@ -26,6 +26,7 @@
 
 #include "telephony_private.h"
 
+/* LCOV_EXCL_START */
 static bool telephony_check_privilege(const char *privilege)
 {
        cynara *cynara_handle;
@@ -96,3 +97,4 @@ bool telephony_check_legacy_telephony_privilege()
        return telephony_check_privilege(
                "http://tizen.org/privilege/telephony");
 }
+/* LCOV_EXCL_STOP */
index 121d10405219a0939cccb0a6e93081f4b739bc15..a76b67b41e452c77076765875faa8df278e66039 100644 (file)
@@ -85,6 +85,7 @@ static telephony_error_e _convert_dbus_errmsg_to_sim_error(gchar *err_msg)
 }
 /* LCOV_EXCL_STOP */
 
+/* LCOV_EXCL_START */
 int telephony_sim_get_icc_id(telephony_h handle, char **icc_id)
 {
        int error_code = TELEPHONY_ERROR_NONE;
@@ -121,7 +122,6 @@ int telephony_sim_get_icc_id(telephony_h handle, char **icc_id)
                g_free(iccid);
                g_variant_unref(sync_gv);
        } else {
-               /* LCOV_EXCL_START */
                LOGE("g_dbus_conn failed. error (%s)", gerr->message);
                error_code = _convert_dbus_errmsg_to_sim_error(gerr->message);
                if (error_code == TELEPHONY_ERROR_PERMISSION_DENIED) {
@@ -134,11 +134,11 @@ int telephony_sim_get_icc_id(telephony_h handle, char **icc_id)
                        }
                }
                g_error_free(gerr);
-               /* LCOV_EXCL_STOP */
        }
 
        return error_code;
 }
+/* LCOV_EXCL_STOP */
 
 int telephony_sim_get_operator(telephony_h handle, char **sim_operator)
 {