Add the exclude code to internal APIs to exclude from coverage measurement 81/192381/1
authorInhong Han <inhong1.han@samsung.com>
Mon, 5 Nov 2018 06:19:51 +0000 (15:19 +0900)
committerInhong Han <inhong1.han@samsung.com>
Mon, 5 Nov 2018 06:22:12 +0000 (15:22 +0900)
Change-Id: Ic7efc3cd4213a7a5efc76c9041e139c59b72c980

src/inputmethod.cpp

index 829f76d..930dc40 100644 (file)
@@ -500,6 +500,7 @@ ime_error_e _check_privilege()
     return ret;
 }
 
+//LCOV_EXCL_START
 bool g_from_dotnet = false;
 EXPORT_API int ime_set_dotnet_flag(bool set)
 {
@@ -512,6 +513,7 @@ EXPORT_API int ime_set_dotnet_flag(bool set)
 
     return retVal;
 }
+//LCOV_EXCL_STOP
 
 EXPORT_API int ime_run(ime_callback_s *basic_cb, void *user_data)
 {
@@ -904,6 +906,7 @@ EXPORT_API int ime_event_set_option_window_destroyed_cb(ime_option_window_destro
     return IME_ERROR_NONE;
 }
 
+//LCOV_EXCL_START
 EXPORT_API int ime_event_set_caps_mode_changed_cb(ime_caps_mode_changed_cb callback_func, void *user_data)
 {
     ime_error_e retVal = IME_ERROR_NONE;
@@ -975,6 +978,7 @@ EXPORT_API int ime_event_set_lookup_table_changed_cb(ime_lookup_table_changed_cb
 
     return IME_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
 EXPORT_API int ime_send_key_event(ime_key_code_e keycode, ime_key_mask_e keymask, bool forward_key)
 {
@@ -1319,6 +1323,7 @@ EXPORT_API int ime_destroy_option_window(Evas_Object *window)
     return IME_ERROR_NONE;
 }
 
+//LCOV_EXCL_START
 EXPORT_API int ime_set_imengine(const char *engine_id)
 {
     ime_error_e retVal = IME_ERROR_NONE;
@@ -1386,6 +1391,7 @@ EXPORT_API int ime_update_input_context(unsigned int type, unsigned int value)
 
     return IME_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
 EXPORT_API int ime_request_hide(void)
 {
@@ -1404,6 +1410,7 @@ EXPORT_API int ime_request_hide(void)
     return IME_ERROR_NONE;
 }
 
+//LCOV_EXCL_START
 EXPORT_API int ime_initialize()
 {
     ime_error_e retVal = IME_ERROR_NONE;
@@ -1468,6 +1475,7 @@ EXPORT_API int ime_select_candidate(unsigned int index)
 
     return IME_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
 EXPORT_API int ime_send_private_command(const char *command)
 {
@@ -1755,6 +1763,7 @@ EXPORT_API int ime_context_get_language(ime_context_h context, Ecore_IMF_Input_P
     return IME_ERROR_NONE;
 }
 
+//LCOV_EXCL_START
 EXPORT_API int ime_context_get_caps_mode(ime_context_h context, bool *caps_mode)
 {
     ime_error_e retVal = IME_ERROR_NONE;
@@ -1776,6 +1785,7 @@ EXPORT_API int ime_context_get_caps_mode(ime_context_h context, bool *caps_mode)
 
     return IME_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
 EXPORT_API int ime_device_info_get_name(ime_device_info_h dev_info, char **dev_name)
 {
@@ -2001,6 +2011,7 @@ EXPORT_API int ime_set_floating_drag_end(void)
     return IME_ERROR_NONE;
 }
 
+//LCOV_EXCL_START
 EXPORT_API int ime_set_window_creation_defer_flag(bool flag)
 {
     ime_error_e retVal = IME_ERROR_NONE;
@@ -2012,6 +2023,7 @@ EXPORT_API int ime_set_window_creation_defer_flag(bool flag)
 
     return IME_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
 EXPORT_API int ime_event_set_prediction_hint_data_set_cb(ime_prediction_hint_data_set_cb callback_func, void *user_data)
 {
@@ -2031,6 +2043,7 @@ EXPORT_API int ime_event_set_prediction_hint_data_set_cb(ime_prediction_hint_dat
     return IME_ERROR_NONE;
 }
 
+//LCOV_EXCL_START
 EXPORT_API int ime_event_set_optimization_hint_set_cb(ime_optimization_hint_set_cb callback_func, void *user_data)
 {
     LOGD("");
@@ -2051,3 +2064,4 @@ EXPORT_API int ime_event_set_optimization_hint_set_cb(ime_optimization_hint_set_
 
     return IME_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
\ No newline at end of file