insert LCOV_EXCL_START and LCOV_EXCL_STOP for TC coverage measurement 89/63889/5 accepted/tizen/3.0/common/20161114.105248 accepted/tizen/3.0/ivi/20161011.055346 accepted/tizen/3.0/mobile/20161015.032709 accepted/tizen/3.0/wearable/20161015.081740 accepted/tizen/common/20160617.121337 accepted/tizen/ivi/20160617.083405 accepted/tizen/mobile/20160617.083242 accepted/tizen/wearable/20160617.083226 submit/tizen/20160616.115303 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000005 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
authorKyeonghun Lee <kh9090.lee@samsung.com>
Mon, 28 Mar 2016 09:24:25 +0000 (18:24 +0900)
committerKyeonghun Lee <kh9090.lee@samsung.com>
Thu, 16 Jun 2016 04:09:06 +0000 (13:09 +0900)
Change-Id: I730826531737a9d9a58248144cf29aa281fa3832
Signed-off-by: Kyeonghun Lee <kh9090.lee@samsung.com>
src/messages.c
src/messages_push.c

index 333a640..140e74c 100644 (file)
@@ -255,6 +255,7 @@ int messages_get_message_type(messages_message_h msg, messages_message_type_e *
                return ERROR_CONVERT(ret);
 
        switch (msgType) {
+//LCOV_EXCL_START
        case MSG_TYPE_SMS_CB:
        case MSG_TYPE_SMS_JAVACB:
                *type = MESSAGES_TYPE_SMS_CB;
@@ -262,6 +263,7 @@ int messages_get_message_type(messages_message_h msg, messages_message_type_e *
        case MSG_TYPE_SMS_WAPPUSH:
                *type = MESSAGES_TYPE_SMS_PUSH;
                break;
+//LCOV_EXCL_STOP
        case MSG_TYPE_SMS:
        case MSG_TYPE_SMS_MWI:
        case MSG_TYPE_SMS_SYNCML:
@@ -273,9 +275,11 @@ int messages_get_message_type(messages_message_h msg, messages_message_type_e *
        case MSG_TYPE_MMS_JAVA:
                *type = MESSAGES_TYPE_MMS;
                break;
+//LCOV_EXCL_START
        default:
                *type = MESSAGES_TYPE_UNKNOWN;
                break;
+//LCOV_EXCL_STOP
        }
 
        return MESSAGES_ERROR_NONE;
@@ -732,6 +736,7 @@ int messages_foreach_message(messages_service_h svc, messages_message_box_e mbox
        return MESSAGES_ERROR_NONE;
 }
 
+//LCOV_EXCL_START
 void _messages_sent_mediator_cb(msg_handle_t handle, msg_struct_t pStatus, void *user_param)
 {
        messages_sending_result_e ret;
@@ -796,6 +801,7 @@ void _messages_incoming_mediator_cb(msg_handle_t handle, msg_struct_t msg, void
                free(_msg);
        }
 }
+//LCOV_EXCL_STOP
 
 int messages_set_message_incoming_cb(messages_service_h svc, messages_incoming_cb callback, void *user_data)
 {
@@ -1855,6 +1861,7 @@ int _messages_convert_recipient_to_fw(messages_recipient_type_e type)
 int _messages_error_converter(int err, const char *func, int line)
 {
        switch (err) {
+//LCOV_EXCL_START
        case MSG_ERR_NULL_POINTER:
                LOGE("[%s:%d] NULL_POINTER(0x%08x) : Error from internal Messaging F/W ret: %d.", func, line, MESSAGES_ERROR_INVALID_PARAMETER, err);
                return MESSAGES_ERROR_INVALID_PARAMETER;
@@ -1889,14 +1896,14 @@ int _messages_error_converter(int err, const char *func, int line)
 
        case MSG_ERR_PERMISSION_DENIED:
                return MESSAGES_ERROR_PERMISSION_DENIED;
-
+//LCOV_EXCL_STOP
        case MSG_SUCCESS:
                return MESSAGES_ERROR_NONE;
-
+//LCOV_EXCL_START
        default:
                LOGE("[%s:%d] OPERATION_FAILED(0x%08x) : Error from internal Messaging F/W ret: %d.", func, line, MESSAGES_ERROR_OPERATION_FAILED, err);
                return MESSAGES_ERROR_OPERATION_FAILED;
-
+//LCOV_EXCL_STOP
        }
 }
 
index 4283eb4..743c9d6 100644 (file)
@@ -39,6 +39,7 @@
 #endif
 #define LOG_TAG "CAPI_MESSAGING"
 
+//LCOV_EXCL_START
 void _messages_push_incoming_mediator_cb(msg_handle_t handle, const char *push_header, const char *push_body, int push_body_len, void *user_param)
 {
        messages_push_incoming_callback_s *_cb = (messages_push_incoming_callback_s *) user_param;
@@ -46,6 +47,7 @@ void _messages_push_incoming_mediator_cb(msg_handle_t handle, const char *push_h
        if (_cb && _cb->callback)
                ((messages_push_incoming_cb) _cb->callback) (push_header, push_body, push_body_len, _cb->user_data);
 }
+//LCOV_EXCL_STOP
 
 int messages_push_add_incoming_cb(messages_service_h service, const char *app_id, messages_push_incoming_cb callback, void *user_data)
 {