From 406744b3fca529838a2e20f175cd1fee250e645b Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Wed, 6 Jul 2016 17:15:21 +0900 Subject: [PATCH] Add comments for line coverage Change-Id: Ie7f3971201fbfb8e35dc2527ee331d29c257c7f9 Signed-off-by: cheoleun --- src/dns-sd/dns-sd.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/dns-sd/dns-sd.c b/src/dns-sd/dns-sd.c index 0449fdb..1941d5d 100644 --- a/src/dns-sd/dns-sd.c +++ b/src/dns-sd/dns-sd.c @@ -69,6 +69,7 @@ static bool __dnssd_is_init(void) return g_is_init; } +//LCOV_EXCL_START static int __dnssd_ref_mdns_dbus(void) { GDBusConnection *netconfig_bus = NULL; @@ -113,7 +114,9 @@ static int __dnssd_ref_mdns_dbus(void) return DNSSD_ERROR_NONE; } +//LCOV_EXCL_STOP +//LCOV_EXCL_START static int __dnssd_unref_mdns_dbus(void) { GDBusConnection *netconfig_bus = NULL; @@ -157,7 +160,9 @@ static int __dnssd_unref_mdns_dbus(void) return DNSSD_ERROR_NONE; } +//LCOV_EXCL_STOP +//LCOV_EXCL_START static int __dnssd_launch_mdns_dbus(void) { GDBusConnection *netconfig_bus = NULL; @@ -200,7 +205,9 @@ static int __dnssd_launch_mdns_dbus(void) DNSSD_LOGD("Successfully launched mdnsresponder"); return DNSSD_ERROR_NONE; } +//LCOV_EXCL_STOP +//LCOV_EXCL_START static int __dnssd_launch_mdns() { int res = DNSSD_ERROR_NONE; @@ -234,7 +241,9 @@ static int __dnssd_launch_mdns() } return res; } +//LCOV_EXCL_STOP +//LCOV_EXCL_START static gboolean __dnssd_process_result(GIOChannel *source, GIOCondition condition, gpointer data) { @@ -268,6 +277,7 @@ static gboolean __dnssd_process_result(GIOChannel *source, } return FALSE; } +//LCOV_EXCL_STOP void __dnssd_handle_events(int *watch_id, DNSServiceRef *sdRef) { @@ -1567,6 +1577,7 @@ int dnssd_service_get_ip(dnssd_service_h dnssd_service, char **ip_v4_address, return DNSSD_ERROR_SERVICE_NOT_FOUND; } +//LCOV_EXCL_START if (local_handle->op_type != DNSSD_TYPE_FOUND) { DNSSD_LOGD("Invalid DNS SD Service"); __DNSSD_LOG_FUNC_EXIT__; @@ -1596,6 +1607,7 @@ int dnssd_service_get_ip(dnssd_service_h dnssd_service, char **ip_v4_address, __DNSSD_LOG_FUNC_EXIT__; return DNSSD_ERROR_NONE; +//LCOV_EXCL_STOP } int dnssd_service_get_port(dnssd_service_h dnssd_service, int *port) -- 2.7.4