From 517660eb85d25929407cdd0dbf0877a3ddf2ef83 Mon Sep 17 00:00:00 2001 From: Kamaljeet Chauhan Date: Fri, 1 Sep 2023 11:51:03 +0530 Subject: [PATCH] lcov statement added Change-Id: I7361ad8d317f1305861187837ead7cabe74a5038 Signed-off-by: Kamaljeet Chauhan --- common/cal_record.c | 4 ++++ common/cal_time.cpp | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/common/cal_record.c b/common/cal_record.c index cd5e3f7..749127b 100644 --- a/common/cal_record.c +++ b/common/cal_record.c @@ -149,6 +149,7 @@ bool cal_record_check_property_flag(calendar_record_h record, unsigned int prope } +/* LCOV_EXCL_START */ int cal_record_set_projection(calendar_record_h record, const unsigned int *projection, const int projection_count, int properties_max_count) { int i; @@ -171,6 +172,7 @@ int cal_record_set_projection(calendar_record_h record, const unsigned int *proj return CALENDAR_ERROR_NONE; } +/* LCOV_EXCL_STOP */ EXPORT_API int calendar_record_create(const char* view_uri, calendar_record_h* out_record) { @@ -354,6 +356,7 @@ EXPORT_API int calendar_record_get_lli(calendar_record_h record, unsigned int pr return ret; } +/* LCOV_EXCL_START */ //Getters & Setters of local caltime EXPORT_API calendar_time_s *cal_caltime_create(void) { @@ -553,6 +556,7 @@ EXPORT_API int cal_caltime_get_caltime(calendar_record_h record, unsigned int pr return ret; } +/* LCOV_EXCL_STOP */ EXPORT_API int calendar_record_get_caltime(calendar_record_h record, unsigned int property_id, calendar_time_s *out_value) { diff --git a/common/cal_time.cpp b/common/cal_time.cpp index 80e3c91..b1e9b8b 100644 --- a/common/cal_time.cpp +++ b/common/cal_time.cpp @@ -336,6 +336,7 @@ long long int cal_time_convert_lli(char *p) return 0; } +/* LCOV_EXCL_START */ void cal_time_modify_caltime(calendar_time_s *caltime, long long int diff) { UErrorCode status = U_ZERO_ERROR; @@ -371,6 +372,7 @@ void cal_time_modify_caltime(calendar_time_s *caltime, long long int diff) break; } } +/* LCOV_EXCL_STOP */ void cal_time_get_nth_wday(long long int t, int *nth, int *wday) { @@ -452,6 +454,7 @@ bool cal_time_is_available_tzid(char *tzid) return false; } +/* LCOV_EXCL_START */ int _get_dst_savings(char *tzid) { UChar utf16_timezone[CAL_STR_SHORT_LEN64] = {0}; @@ -497,4 +500,4 @@ bool cal_time_is_dst_savings(void) return _get_dst_savings(timezone) == 0 ? false : true; } - +/* LCOV_EXCL_STOP */ -- 2.7.4