summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYunhee Seo <yuni.seo@samsung.com>2024-04-02 18:18:34 +0900
committerYunhee Seo <yuni.seo@samsung.com>2024-04-02 18:59:01 +0900
commite82d9011047d3ce6de32c2d1a1ba2ebb62ba641b (patch)
tree674a896e8872c66d3a67ffe619cd15bf3ceb0306
parentd5558057136b51c1a2bdf5c8d56d5bb4f859a30a (diff)
downloadlibsvi-tizen_8.0.tar.gz
libsvi-tizen_8.0.tar.bz2
libsvi-tizen_8.0.zip
check: Relocate line coverage comment at profile_get_num_of_standard()accepted/tizen/8.0/unified/20240404.154956tizen_8.0accepted/tizen_8.0_unified
profile_get_num_of_standard() returns the size of standard_pattern array. However, standard pattern array is only used at mobile and wearable profile. Because this function cannot be tested in the 8.0 public image, it is excluded from line coverage target. Change-Id: If039e7b71465ad53e120256d40485886d96e426e Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
-rw-r--r--src/check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check.c b/src/check.c
index 0d5d8b0..ee14d18 100644
--- a/src/check.c
+++ b/src/check.c
@@ -943,6 +943,7 @@ static int profile_get_num_of_pattern()
//LCOV_EXCL_STOP
}
+//LCOV_EXCL_START
static int profile_get_num_of_standard(void)
{
static int size = -1;
@@ -953,16 +954,15 @@ static int profile_get_num_of_standard(void)
prof = get_profile();
-//LCOV_EXCL_START
if (prof == PROFILE_MOBILE)
size = ARR_SIZE(mobile_str_standard);
else if (prof == PROFILE_WEARABLE)
size = ARR_SIZE(wearable_str_standard);
else
size = 0;
-//LCOV_EXCL_STOP
return size;
}
+//LCOV_EXCL_STOP
static const char *profile_str_pattern(int pattern)
{