Apply macros to exclude lines from coverage measurement 04/265404/1
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 18 Oct 2021 09:47:41 +0000 (18:47 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Mon, 18 Oct 2021 09:48:29 +0000 (18:48 +0900)
[Version] 0.2.126
[Issue Type] Line coverage

Change-Id: I7ec0f6c1aaf05d23d393fb0d4fec098ad2b58599
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/capi-media-webrtc.spec
src/webrtc_internal.c
src/webrtc_options.c
src/webrtc_signaling_client.c
src/webrtc_signaling_server.c
src/webrtc_source.c
src/webrtc_stats.c
src/webrtc_websocket.c

index 1e2b46d319ba4a48284d76bf99c627de1e105fdb..a525020aa1fb3e3bbb91d2474940e7362211adc9 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-webrtc
 Summary:    A WebRTC library in Tizen Native API
-Version:    0.2.125
+Version:    0.2.126
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 3af38ad94f5eb7d43be18232ea69237b5ffa967c..84fb66c51062d577524dce98a6d747870201f257 100644 (file)
@@ -17,6 +17,7 @@
 #include "webrtc_internal.h"
 #include "webrtc_private.h"
 
+//LCOV_EXCL_START
 int webrtc_set_ecore_wl_display(webrtc_h webrtc, unsigned int track_id, void *ecore_wl_window)
 {
        int ret = WEBRTC_ERROR_NONE;
@@ -162,4 +163,4 @@ int webrtc_screen_source_unset_crop(webrtc_h webrtc, unsigned int source_id)
 
        return ret;
 }
-
+//LCOV_EXCL_STOP
\ No newline at end of file
index fc37189c304a1e6907c4185f352bcc2531b23e34..0a43bce6591194234bd5e53e996bc0da39c344ef 100644 (file)
@@ -17,6 +17,7 @@
 #include "webrtc.h"
 #include "webrtc_private.h"
 
+//LCOV_EXCL_START
 typedef struct {
        char *key;
        GType type;
@@ -160,3 +161,4 @@ GstStructure* _get_structure_from_data_channel_options(bundle *options)
 
        return __get_matched_structure_from_bundle(options, data_channel_avail_options, "data-channel-options");
 }
+//LCOV_EXCL_STOP
\ No newline at end of file
index 2076ec9194c55629d26db0cf82db89bcdf4bedfc..17f509f57d95b0dcb29c63484f37898d269e7a98 100644 (file)
@@ -18,6 +18,7 @@
 #include "webrtc_private.h"
 #include "webrtc_internal.h"
 
+//LCOV_EXCL_START
 static int __parse_message(gchar *message, webrtc_signaling_message_type_e *type, gchar **content)
 {
        gchar **contents;
@@ -304,3 +305,4 @@ int webrtc_signaling_get_id(webrtc_signaling_client_h client, int *id)
 
        return WEBRTC_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
\ No newline at end of file
index a47d2ff802e55ac7c19e2a02db691958c77ccdc5..98d24d55f2e4811a0cd1fb78a4b2f32711d9498e 100644 (file)
@@ -18,6 +18,7 @@
 #include "webrtc_private.h"
 #include "webrtc_internal.h"
 
+//LCOV_EXCL_START
 #define SIGNALING_MESSAGE_REPLY_UNKNOWN_ERROR        "ERROR unknown"
 #define SIGNALING_MESSAGE_REPLY_CONNECT_ERROR        "ERROR connection"
 #define SIGNALING_MESSAGE_REPLY_SESSION_ERROR        "ERROR session"
@@ -503,3 +504,4 @@ int webrtc_signaling_server_destroy(webrtc_signaling_server_h server)
 
        return WEBRTC_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
\ No newline at end of file
index de920856821065f265e69c65965556b80bc8fc39..c428c89bd8f760fd015938e01eed18fa5ca62231 100644 (file)
@@ -2661,6 +2661,7 @@ int _add_media_source(webrtc_s *webrtc, int type, unsigned int *source_id)
        return __add_media_source(webrtc, type, source_id);
 }
 
+//LCOV_EXCL_START
 int _add_media_source_internal(webrtc_s *webrtc, int type, unsigned int *source_id)
 {
        RET_VAL_IF(webrtc == NULL, WEBRTC_ERROR_INVALID_PARAMETER, "webrtc is NULL");
@@ -2671,6 +2672,7 @@ int _add_media_source_internal(webrtc_s *webrtc, int type, unsigned int *source_
 
        return __add_media_source(webrtc, type, source_id);
 }
+//LCOV_EXCL_STOP
 
 int _remove_media_source(webrtc_s *webrtc, unsigned int source_id)
 {
@@ -3084,6 +3086,7 @@ static void __remove_filesrc_element(webrtc_gst_slot_s *source)
        source->media_types = 0;
 }
 
+//LCOV_EXCL_START
 int _set_media_path(webrtc_s *webrtc, unsigned int source_id, const char *path)
 {
        webrtc_gst_slot_s *source = NULL;
@@ -3121,6 +3124,7 @@ int _set_media_path(webrtc_s *webrtc, unsigned int source_id, const char *path)
 
        return WEBRTC_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
 
 static gboolean __check_path_is_not_set_cb(gpointer key, gpointer value, gpointer user_data)
 {
@@ -4130,6 +4134,7 @@ int _get_display_visible_from_loopback(webrtc_s *webrtc, unsigned int track_id,
        return WEBRTC_ERROR_NONE;
 }
 
+//LCOV_EXCL_START
 int _set_screen_source_crop(webrtc_s *webrtc, unsigned int source_id, int x, int y, int w, int h, bool portrait_mode, int *width, int *height)
 {
        webrtc_gst_slot_s *source = NULL;
@@ -4281,3 +4286,4 @@ int _get_filesrc_looping(webrtc_s * webrtc, unsigned int source_id, bool *loopin
 
        return WEBRTC_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
index 45864121408275696a8551fbe8c510abf0d56424..1a2bfeab0ffaa72617c56292762286b3d1548b2f 100644 (file)
@@ -17,6 +17,7 @@
 #include "webrtc.h"
 #include "webrtc_private.h"
 
+//LCOV_EXCL_START
 typedef void (*__parse_stats_func)(const GstStructure *s, webrtc_callbacks_s *cb);
 
 /*
@@ -584,4 +585,5 @@ void _unset_stats_timer(webrtc_s *webrtc)
 
        LOG_DEBUG("remove stats_timer_src[%u]", webrtc->stats_timer_src);
        webrtc->stats_timer_src = 0;
-}
\ No newline at end of file
+}
+//LCOV_EXCL_STOP
\ No newline at end of file
index 85bb6c73cddee131daeee98e9543eee71936ffdc..46cf449e07ca89679c7b7a88afa5bd4776cfc338 100644 (file)
@@ -17,6 +17,7 @@
 #include "webrtc.h"
 #include "webrtc_private.h"
 
+//LCOV_EXCL_START
 webrtc_websocket_s *_alloc_websocket(const int port, const char *ssl_cert_path, const char *ssl_private_key_path, const char *ssl_ca_path, _websocket_cb callback, void *user_data)
 {
        struct lws_protocols protocols[] = {
@@ -116,3 +117,4 @@ int _stop_websocket(webrtc_websocket_s *ws)
 
        return WEBRTC_ERROR_NONE;
 }
+//LCOV_EXCL_STOP
\ No newline at end of file