Exclude utility functions 78/243378/3 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_unified accepted/tizen_unified_riscv tizen_6.0 tizen_6.0_hotfix tizen_7.0 tizen_7.0_hotfix tizen_8.0 accepted/tizen/6.0/unified/20201030.121503 accepted/tizen/6.0/unified/hotfix/20201103.003726 accepted/tizen/6.0/unified/hotfix/20201103.050544 accepted/tizen/6.5/unified/20211028.094540 accepted/tizen/7.0/unified/20221110.061953 accepted/tizen/7.0/unified/hotfix/20221116.104612 accepted/tizen/8.0/unified/20231005.092626 accepted/tizen/unified/20200918.073725 accepted/tizen/unified/riscv/20230724.093716 submit/tizen/20200917.120030 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 submit/tizen_6.5/20211028.161701 tizen_6.0.m2_release tizen_6.5.m2_release tizen_7.0_m2_release tizen_8.0_m2_release
authorDewal Agarwal <d1.agarwal@samsung.com>
Mon, 7 Sep 2020 07:07:50 +0000 (12:37 +0530)
committerDewal Agarwal <d1.agarwal@samsung.com>
Thu, 17 Sep 2020 11:25:47 +0000 (16:55 +0530)
Change-Id: Ief1a8a968f9b2c9775da602980192c5d53f259bc
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
src/battery_monitor.c
src/battery_monitor_util.c

index 64b8b0a..86655a7 100644 (file)
@@ -30,6 +30,7 @@ static GDBusConnection *connection = NULL;
 static int instance_count = 0;
 static pthread_mutex_t bm_proxy_instance_mutex = PTHREAD_MUTEX_INITIALIZER;
 
+/* LCOV_EXCL_START */
 static void battery_monitor_destroy_instance()
 {
        ENTER;
@@ -149,6 +150,7 @@ static int battery_monitor_check_time_interval(time_t *start_time, time_t *end_t
        EXIT;
        return BATTERY_MONITOR_ERROR_INVALID_PARAMETER;
 }
+/* LCOV_EXCL_STOP */
 
 BM_API int battery_monitor_battery_usage_data_destroy(battery_usage_data_h result)
 {
index 2c7fac4..f19bade 100644 (file)
@@ -35,7 +35,7 @@ GDBusErrorEntry battery_monitor_svc_errors[] = {
        {BATTERY_MONITOR_ERROR_INTERNAL, BATTERY_MONITOR_SVC_ERROR_PREFIX".Internal"}
 };
 
-
+/* LCOV_EXCL_START */
 int battery_monitor_get_error_code(bool is_success, GError *error)
 {
        ENTER;
@@ -65,18 +65,19 @@ int battery_monitor_get_error_code(bool is_success, GError *error)
        EXIT;
        return BATTERY_MONITOR_ERROR_NONE;
 }
+/* LCOV_EXCL_STOP */
 
 void unmarshal_serialized_data(GVariant *handle, battery_monitor_total_consumption_s *data_handle)
 {
        ENTER;
 
        if (!handle) {
-               _ERR("invalid variant handle");
+               _ERR("invalid variant handle"); //LCOV_EXCL_LINE
                return;
        }
 
        if (!data_handle) {
-               _ERR("invalid data handle");
+               _ERR("invalid data handle"); //LCOV_EXCL_LINE
                return;
        }
 
@@ -116,6 +117,7 @@ void unmarshal_serialized_data(GVariant *handle, battery_monitor_total_consumpti
        return;
 }
 
+/* LCOV_EXCL_START */
 int battery_monitor_resource_id_is_supported(battery_monitor_resource_id_e resource_id)
 {
        ENTER;
@@ -149,3 +151,4 @@ int battery_monitor_resource_id_is_supported(battery_monitor_resource_id_e resou
        EXIT;
        return error_code;
 }
+/* LCOV_EXCL_STOP */