Add coverage exception macros 24/219424/2
authorjiyong.min <jiyong.min@samsung.com>
Wed, 4 Dec 2019 23:31:51 +0000 (08:31 +0900)
committerjiyong.min <jiyong.min@samsung.com>
Wed, 4 Dec 2019 23:33:29 +0000 (08:33 +0900)
Change-Id: I884da8d4ced2485d8b1656b125d53cbb1c2ea665

packaging/capi-media-image-util.spec
src/image_util.c
src/image_util_decode.c
src/image_util_encode.c

index db0cffd..5ec5442 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-media-image-util
 Summary:    A Image Utility library in Tizen Native API
-Version:    0.2.2
+Version:    0.2.3
 Release:    2
 Group:      Multimedia/API
 License:    Apache-2.0
index b7e6ac9..5ec1295 100644 (file)
@@ -168,6 +168,7 @@ static int __clone_transform(transformation_h src, transformation_h *dst)
        return ret;
 }
 
+/* LCOV_EXCL_START */
 static void __destroy_async_queue(gpointer data)
 {
        t_data_s *_t_data = (t_data_s *)data;
@@ -178,6 +179,7 @@ static void __destroy_async_queue(gpointer data)
        IMAGE_UTIL_SAFE_FREE(_t_data->transform);
        IMAGE_UTIL_SAFE_FREE(_t_data);
 }
+/* LCOV_EXCL_STOP */
 
 static gboolean __is_valid_condition(transformation_h handle)
 {
index 1b2c000..3127b1e 100644 (file)
@@ -598,6 +598,7 @@ int image_util_decode_destroy(image_util_decode_h handle)
        return IMAGE_UTIL_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 #ifdef TIZEN_FEATURE_COMPATIBILITY
 static int __image_util_get_image(mm_util_image_h image, int *width, int *height, unsigned char **buffer, unsigned int *size)
 {
@@ -709,3 +710,4 @@ int image_util_decode_jpeg_from_memory_with_downscale(const unsigned char *jpeg_
        return _image_error_capi(err);
 }
 #endif
+/* LCOV_EXCL_STOP */
index 9bf4924..d1c4575 100644 (file)
@@ -753,6 +753,7 @@ int image_util_agif_encode_destroy(image_util_agif_encode_h handle)
        return IMAGE_UTIL_ERROR_NONE;
 }
 
+/* LCOV_EXCL_START */
 #ifdef TIZEN_FEATURE_COMPATIBILITY
 int image_util_encode_jpeg(const unsigned char *buffer, int width, int height, image_util_colorspace_e colorspace, int quality, const char *path)
 {
@@ -802,3 +803,4 @@ int image_util_encode_jpeg_to_memory(const unsigned char *image_buffer, int widt
        return _image_error_capi(err);
 }
 #endif
+/* LCOV_EXCL_STOP */