Added Gtest for smartcard-service
[platform/core/connectivity/smartcard-service.git] / server / ClientInstance.cpp
index 8f91315..2606405 100644 (file)
@@ -35,7 +35,7 @@ namespace smartcard_service_api
                if (result != NULL) {
                        mapServices.insert(make_pair(result->getHandle(), result));
                } else {
-                       _ERR("alloc failed");
+                       _ERR("alloc failed"); //LCOV_EXCL_LINE
                }
 
                return result;
@@ -43,6 +43,7 @@ namespace smartcard_service_api
 
        ServiceInstance *ClientInstance::getService(unsigned int handle)
        {
+               /* LCOV_EXCL_START */
                ServiceInstance *result = NULL;
                map<unsigned int, ServiceInstance *>::iterator item;
 
@@ -52,10 +53,12 @@ namespace smartcard_service_api
                }
 
                return result;
+               /* LCOV_EXCL_STOP */
        }
 
        void ClientInstance::removeService(unsigned int handle)
        {
+               /* LCOV_EXCL_START */
                map<unsigned int, ServiceInstance *>::iterator item;
 
                if ((item = mapServices.find(handle)) != mapServices.end())
@@ -63,6 +66,7 @@ namespace smartcard_service_api
                        delete item->second;
                        mapServices.erase(item);
                }
+               /* LCOV_EXCL_STOP */
        }
 
        void ClientInstance::removeServices()