check: Relocate line coverage comment at profile_get_num_of_standard() 92/308892/1 accepted/tizen/unified/20240404.164408 accepted/tizen/unified/dev/20240620.005738 accepted/tizen/unified/x/20240408.053745
authorYunhee Seo <yuni.seo@samsung.com>
Tue, 2 Apr 2024 09:18:34 +0000 (18:18 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Tue, 2 Apr 2024 09:18:34 +0000 (18:18 +0900)
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 9.0 public image,
it is excluded from line coverage target.

Change-Id: If039e7b71465ad53e120256d40485886d96e426e
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/check.c

index 0d5d8b089788c3406efb2c15afccfbb79f9bf100..ee14d186f155e774b8854bab474bc2e45d5621f2 100644 (file)
@@ -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)
 {