From: Kyeonghun Lee Date: Mon, 28 Mar 2016 09:24:25 +0000 (+0900) Subject: insert LCOV_EXCL_START and LCOV_EXCL_STOP for TC coverage measurement X-Git-Tag: submit/tizen/20160616.115303^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bb7edf1901b42aafd0db548fdcb8a3bdee36a512;p=platform%2Fcore%2Fapi%2Fmessages.git insert LCOV_EXCL_START and LCOV_EXCL_STOP for TC coverage measurement Change-Id: I730826531737a9d9a58248144cf29aa281fa3832 Signed-off-by: Kyeonghun Lee --- diff --git a/src/messages.c b/src/messages.c index 333a640..140e74c 100644 --- a/src/messages.c +++ b/src/messages.c @@ -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 } } diff --git a/src/messages_push.c b/src/messages_push.c index 4283eb4..743c9d6 100644 --- a/src/messages_push.c +++ b/src/messages_push.c @@ -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) {