Add comments for line coverage 42/253542/4
authorlokilee73 <changjoo.lee@samsung.com>
Mon, 15 Feb 2021 07:23:18 +0000 (16:23 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Mon, 15 Feb 2021 11:10:04 +0000 (20:10 +0900)
Change-Id: If5658a2478d341631749b5338d58e83701d8932d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/booting-internal.c
src/display.c
src/led.c
src/pmqos.c
src/power.c
src/touchscreen-internal.c

index 42682bb..d5148e0 100644 (file)
@@ -22,6 +22,7 @@
 
 #define BOOT_SO_PATH   "/usr/lib/deviced/bootmode.so"
 
+//LCOV_EXCL_START Not tested API
 int device_get_reboot_mode(void)
 {
        int (*get_reboot_mode) (void);
@@ -52,3 +53,4 @@ int device_get_reboot_mode(void)
 
        return ret;
 }
+//LCOV_EXCL_STOP
index 7aa5d67..ca776b6 100644 (file)
@@ -290,6 +290,7 @@ int device_display_change_state(display_state_e state)
        return ret;
 }
 
+//LCOV_EXCL_START Not tested API
 int device_display_get_max_brightness_state(int display_index, display_state_e state, int *brightness)
 {
        int ret;
@@ -334,6 +335,7 @@ int device_display_get_max_brightness_state(int display_index, display_state_e s
 }
 //LCOV_EXCL_STOP
 
+//LCOV_EXCL_START Not tested API
 int device_display_get_brightness_state(int display_index, display_state_e state, int *brightness)
 {
        int ret;
@@ -367,7 +369,9 @@ int device_display_get_brightness_state(int display_index, display_state_e state
 
        return DEVICE_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
+//LCOV_EXCL_START Not tested API
 int device_display_set_brightness_state(int display_index, display_state_e state, int brightness)
 {
        int ret, max;
@@ -413,7 +417,9 @@ int device_display_set_brightness_state(int display_index, display_state_e state
 
        return DEVICE_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
+//LCOV_EXCL_START Not tested API
 int device_display_change_state_by_reason(display_state_e type, const char *reason, int timeout, dbus_pending_cb cb)
 {
        int ret;
@@ -424,3 +430,4 @@ int device_display_change_state_by_reason(display_state_e type, const char *reas
 
        return errno_to_device_error(ret);
 }
+//LCOV_EXCL_STOP
index e31d302..a5ff47d 100644 (file)
--- a/src/led.c
+++ b/src/led.c
@@ -157,6 +157,7 @@ int device_led_stop_custom(void)
        return DEVICE_ERROR_NONE;
 }
 
+//LCOV_EXCL_START Not tested API
 int device_multi_led_get_number(int *num_of_leds)
 {
        int ret;
@@ -180,7 +181,9 @@ int device_multi_led_get_number(int *num_of_leds)
 
        return DEVICE_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
+//LCOV_EXCL_START Not tested API
 int device_multi_led_control(unsigned int color[])
 {
        GVariantBuilder *builder = NULL;
@@ -213,3 +216,4 @@ int device_multi_led_control(unsigned int color[])
 
        return DEVICE_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
index 9d732db..7373edc 100644 (file)
@@ -22,6 +22,7 @@
 #define METHOD_APP_LAUNCH_HOME "AppLaunchHome"
 #define METHOD_HOMESCREEN              "HomeScreen"
 
+//LCOV_EXCL_START Not tested API
 int device_pmqos_app_launch_home(int timeout)
 {
        int ret;
@@ -39,7 +40,9 @@ int device_pmqos_app_launch_home(int timeout)
 
        return DEVICE_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
+//LCOV_EXCL_START Not tested API
 int device_pmqos_homescreen(int timeout)
 {
        int ret;
@@ -57,3 +60,4 @@ int device_pmqos_homescreen(int timeout)
 
        return DEVICE_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
index 325a313..5999d12 100644 (file)
@@ -539,7 +539,9 @@ int device_power_reboot(const char *reason)
                        method, param);
        return errno_to_device_error(ret);
 }
+//LCOV_EXCL_STOP
 
+//LCOV_EXCL_START Not available to test (Reboot during TCT)
 int device_power_poweroff(void)
 {
        int ret;
index a0da8ec..a333cfb 100644 (file)
@@ -22,6 +22,7 @@
 #define METHOD_TOUCHSCREEN_ENABLE  "Enable"
 #define METHOD_TOUCHSCREEN_DISABLE "Disable"
 
+//LCOV_EXCL_START Not tested API
 int device_touchscreen_enable(dbus_pending_cb cb)
 {
        int ret;
@@ -32,7 +33,9 @@ int device_touchscreen_enable(dbus_pending_cb cb)
 
        return errno_to_device_error(ret);
 }
+//LCOV_EXCL_STOP
 
+//LCOV_EXCL_START Not tested API
 int device_touchscreen_disable(dbus_pending_cb cb)
 {
        int ret;
@@ -43,3 +46,4 @@ int device_touchscreen_disable(dbus_pending_cb cb)
 
        return errno_to_device_error(ret);
 }
+//LCOV_EXCL_STOP