add excluding coverage comments for tdm_helper.c 04/161504/3
authorRoman Marchenko <r.marchenko@samsung.com>
Thu, 23 Nov 2017 17:04:23 +0000 (19:04 +0200)
committerSooChan Lim <sc1.lim@samsung.com>
Sun, 26 Nov 2017 03:39:34 +0000 (03:39 +0000)
add excluding coverage comments for tdm_helper.c for folowing code:
    - inner function;
    - deprecated function;

Change-Id: I9b4fb790bd3576fc0bc6a5e76579f74fbb817105
Signed-off-by: Roman Marchenko <r.marchenko@samsung.com>
src/tdm_helper.c

index bcd7aec..74d8bb5 100644 (file)
@@ -207,6 +207,7 @@ _tdm_helper_dump_png(const char *file, const void *data, int width,
        fclose(fp);
 }
 
+/* LCOV_EXCL_START */
 INTERN char *
 tdm_helper_dump_make_directory(const char *path, char *reply, int *len)
 {
@@ -272,6 +273,7 @@ tdm_helper_dump_buffer_str(tbm_surface_h buffer, char *dir, char *str)
 
        tdm_helper_dump_buffer(buffer, file);
 }
+/* LCOV_EXCL_STOP */
 
 EXTERN void
 tdm_helper_dump_buffer(tbm_surface_h buffer, const char *file)
@@ -578,6 +580,7 @@ unmap_srcbuf:
        return ret;
 }
 
+/* LCOV_EXCL_START */
 EXTERN int
 tdm_helper_get_fd(const char *env)
 {
@@ -599,6 +602,7 @@ tdm_helper_set_fd(const char *env, int fd)
 
        tbm_drm_helper_set_tbm_master_fd(fd);
 }
+/* LCOV_EXCL_STOP */
 
 EXTERN void
 tdm_helper_dump_start(char *dumppath, int *count)
@@ -621,6 +625,7 @@ tdm_helper_dump_stop(void)
        TDM_DBG("tdm_helper_dump stop.");
 }
 
+/* LCOV_EXCL_START */
 static tdm_error
 _tdm_helper_buffer_convert(tbm_surface_h srcbuf, tbm_surface_h dstbuf,
                                                   int dx, int dy, int dw, int dh, int count)
@@ -708,6 +713,8 @@ cant_convert:
 
        return TDM_ERROR_OPERATION_FAILED;
 }
+/* LCOV_EXCL_STOP */
+
 
 EXTERN tdm_error
 tdm_helper_capture_output(tdm_output *output, tbm_surface_h dst_buffer,
@@ -1061,6 +1068,7 @@ tdm_helper_get_display_information(tdm_display *dpy, char *reply, int *len)
        TDM_SNPRINTF(reply, len, "\n");
 }
 
+/* LCOV_EXCL_START */
 EXTERN int
 tdm_helper_commit_per_vblank_enabled(tdm_display *dpy)
 {
@@ -1068,6 +1076,7 @@ tdm_helper_commit_per_vblank_enabled(tdm_display *dpy)
 
        return 0;
 }
+/* LCOV_EXCL_STOP */
 
 EXTERN int
 tdm_helper_output_commit_per_vblank_enabled(tdm_output *output)