From a924210e2d1668cb8705f8b4b2dc08b1cff3fb62 Mon Sep 17 00:00:00 2001 From: "seungha.son" Date: Fri, 8 Jul 2016 09:29:18 +0900 Subject: [PATCH] Exclude function from measure coverage Signed-off-by: seungha.son Change-Id: I4ec56e8e9e64a4f80f72af0d7e718d81cefcf534 --- src/notification_internal.c | 4 ++++ src/notification_setting_service.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/notification_internal.c b/src/notification_internal.c index 0647f72..28d6fb8 100755 --- a/src/notification_internal.c +++ b/src/notification_internal.c @@ -58,19 +58,23 @@ struct _notification_cb_info { static GHashTable *_noti_cb_hash = NULL; +/* LCOV_EXCL_START */ static void __free_changed_cb_info(gpointer data) { notification_cb_info_s *noti_cb_info = (notification_cb_info_s *)data; if (noti_cb_info) free(noti_cb_info); } +/* LCOV_EXCL_STOP */ +/* LCOV_EXCL_START */ static void __free_changed_cb_hash(gpointer data) { GList *changed_cb_list = (GList *)data; if (changed_cb_list) g_list_free_full(changed_cb_list, __free_changed_cb_info); } +/* LCOV_EXCL_STOP */ void notification_call_changed_cb_for_uid(notification_op *op_list, int op_num, uid_t uid) { diff --git a/src/notification_setting_service.c b/src/notification_setting_service.c index 2da4c87..3ce82fe 100644 --- a/src/notification_setting_service.c +++ b/src/notification_setting_service.c @@ -490,6 +490,7 @@ return_close_db: return err; } +/* LCOV_EXCL_START */ EXPORT_API int notification_setting_db_update_do_not_disturb(int do_not_disturb, uid_t uid) { @@ -523,6 +524,7 @@ return_close_db: return err; } +/* LCOV_EXCL_STOP */ EXPORT_API int noti_system_setting_set_alarm(int week_flag, int hour, int min, alarm_cb_t handler, alarm_id_t *dnd_schedule_alarm_id) -- 2.7.4