From 7f1a06b8b1b5613ddf6bc05aafe144844f326dc2 Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Mon, 15 Feb 2021 16:23:18 +0900 Subject: [PATCH] Add comments for line coverage Change-Id: If5658a2478d341631749b5338d58e83701d8932d Signed-off-by: lokilee73 --- src/booting-internal.c | 2 ++ src/display.c | 7 +++++++ src/led.c | 4 ++++ src/pmqos.c | 4 ++++ src/power.c | 2 ++ src/touchscreen-internal.c | 4 ++++ 6 files changed, 23 insertions(+) diff --git a/src/booting-internal.c b/src/booting-internal.c index 42682bb..d5148e0 100644 --- a/src/booting-internal.c +++ b/src/booting-internal.c @@ -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 diff --git a/src/display.c b/src/display.c index 7aa5d67..ca776b6 100644 --- a/src/display.c +++ b/src/display.c @@ -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 diff --git a/src/led.c b/src/led.c index e31d302..a5ff47d 100644 --- 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 diff --git a/src/pmqos.c b/src/pmqos.c index 9d732db..7373edc 100644 --- a/src/pmqos.c +++ b/src/pmqos.c @@ -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 diff --git a/src/power.c b/src/power.c index 325a313..5999d12 100644 --- a/src/power.c +++ b/src/power.c @@ -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; diff --git a/src/touchscreen-internal.c b/src/touchscreen-internal.c index a0da8ec..a333cfb 100644 --- a/src/touchscreen-internal.c +++ b/src/touchscreen-internal.c @@ -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 -- 2.7.4