From f9673e549f76db8fe0c483b7ad63206c1950ad63 Mon Sep 17 00:00:00 2001 From: "jh8801.jung" Date: Thu, 8 Jun 2017 13:17:04 +0900 Subject: [PATCH] Add EXCL macro for coverage. (Except legacy code) Signed-off-by: Jihoon Jung Change-Id: Icc1305cc92e9e922cc6f375e8b0fa387faeeaed3 --- include/ClientChannel.h | 5 +++++ include/ClientGDBus.h | 5 +++++ include/Reader.h | 5 +++++ include/SEService.h | 5 +++++ include/SEServiceListener.h | 5 +++++ include/Session.h | 5 +++++ src/ClientChannel.cpp | 5 +++++ src/ClientGDBus.cpp | 5 +++++ src/Reader.cpp | 5 +++++ src/SEService.cpp | 5 +++++ src/Session.cpp | 4 ++++ 11 files changed, 54 insertions(+) mode change 100644 => 100755 include/ClientChannel.h mode change 100644 => 100755 include/ClientGDBus.h mode change 100644 => 100755 include/SEService.h mode change 100644 => 100755 include/SEServiceListener.h mode change 100644 => 100755 include/Session.h mode change 100644 => 100755 src/ClientChannel.cpp mode change 100644 => 100755 src/Reader.cpp mode change 100644 => 100755 src/Session.cpp diff --git a/include/ClientChannel.h b/include/ClientChannel.h old mode 100644 new mode 100755 index 2e046f6..8566aa9 --- a/include/ClientChannel.h +++ b/include/ClientChannel.h @@ -29,6 +29,8 @@ #include "Session.h" #endif /* __cplusplus */ +/* LCOV_EXCL_START */ + #ifdef __cplusplus namespace smartcard_service_api { @@ -99,3 +101,6 @@ void channel_destroy_instance(channel_h handle) __attribute__((deprecated)); #endif /* __cplusplus */ #endif /* CLIENTCHANNEL_H_ */ + +/* LCOV_EXCL_STOP */ + diff --git a/include/ClientGDBus.h b/include/ClientGDBus.h old mode 100644 new mode 100755 index c111874..f55271b --- a/include/ClientGDBus.h +++ b/include/ClientGDBus.h @@ -26,6 +26,8 @@ #include "GDBusHelper.h" #include "smartcard-service-gdbus.h" +/* LCOV_EXCL_START */ + namespace smartcard_service_api { class ClientGDBus @@ -34,3 +36,6 @@ namespace smartcard_service_api } /* namespace smartcard_service_api */ #endif /* CLIENTGDBUS_H_ */ + +/* LCOV_EXCL_STOP */ + diff --git a/include/Reader.h b/include/Reader.h index cfcfa1d..98763ba 100755 --- a/include/Reader.h +++ b/include/Reader.h @@ -30,6 +30,8 @@ #include "Session.h" #endif /* __cplusplus */ +/* LCOV_EXCL_START */ + #ifdef __cplusplus namespace smartcard_service_api { @@ -85,3 +87,6 @@ __attribute__((deprecated)) void reader_destroy_instance(reader_h handle); #endif /* __cplusplus */ #endif /* READER_H_ */ + +/* LCOV_EXCL_STOP */ + diff --git a/include/SEService.h b/include/SEService.h old mode 100644 new mode 100755 index 6a6351d..8a8aea9 --- a/include/SEService.h +++ b/include/SEService.h @@ -30,6 +30,8 @@ #include "SEServiceHelper.h" #endif /* __cplusplus */ +/* LCOV_EXCL_START */ + #ifdef __cplusplus using namespace std; @@ -133,3 +135,6 @@ int se_service_destroy_instance(se_service_h handle); #endif /* __cplusplus */ #endif /* SESERVICE_H_ */ + +/* LCOV_EXCL_STOP */ + diff --git a/include/SEServiceListener.h b/include/SEServiceListener.h old mode 100644 new mode 100755 index 2cedf27..69df306 --- a/include/SEServiceListener.h +++ b/include/SEServiceListener.h @@ -23,6 +23,8 @@ /* local header */ +/* LCOV_EXCL_START */ + namespace smartcard_service_api { class SEServiceHelper; @@ -40,3 +42,6 @@ public: } /* namespace open_mobile_api */ #endif /* SESERVICELISTENER_H_ */ + +/* LCOV_EXCL_STOP */ + diff --git a/include/Session.h b/include/Session.h old mode 100644 new mode 100755 index 59796fc..b7933b5 --- a/include/Session.h +++ b/include/Session.h @@ -28,6 +28,8 @@ #include "SessionHelper.h" #endif /* __cplusplus */ +/* LCOV_EXCL_START */ + #ifdef __cplusplus namespace smartcard_service_api { @@ -155,3 +157,6 @@ __attribute__((deprecated)) void session_destroy_instance(session_h handle); #endif /* __cplusplus */ #endif /* SESSION_H_ */ + +/* LCOV_EXCL_STOP */ + diff --git a/src/ClientChannel.cpp b/src/ClientChannel.cpp old mode 100644 new mode 100755 index b30e2e1..3f515ec --- a/src/ClientChannel.cpp +++ b/src/ClientChannel.cpp @@ -29,6 +29,8 @@ #include "APDUHelper.h" #include "ClientGDBus.h" +/* LCOV_EXCL_START */ + #ifndef EXTERN_API #define EXTERN_API __attribute__((visibility("default"))) #endif @@ -608,3 +610,6 @@ EXTERN_API void channel_destroy_instance(channel_h handle) { /* do nothing */ } + +/* LCOV_EXCL_STOP */ + diff --git a/src/ClientGDBus.cpp b/src/ClientGDBus.cpp index 8753572..90c7373 100755 --- a/src/ClientGDBus.cpp +++ b/src/ClientGDBus.cpp @@ -25,6 +25,8 @@ #include "ByteArray.h" #include "ClientGDBus.h" +/* LCOV_EXCL_START */ + using namespace std; /* below functions will be called when dlopen or dlclose is called */ @@ -43,3 +45,6 @@ void __attribute__((destructor)) lib_fini() namespace smartcard_service_api { } /* namespace smartcard_service_api */ + +/* LCOV_EXCL_STOP */ + diff --git a/src/Reader.cpp b/src/Reader.cpp old mode 100644 new mode 100755 index 06857ed..1c4f198 --- a/src/Reader.cpp +++ b/src/Reader.cpp @@ -27,6 +27,8 @@ #include "Session.h" #include "ClientGDBus.h" +/* LCOV_EXCL_START */ + #ifndef EXTERN_API #define EXTERN_API __attribute__((visibility("default"))) #endif @@ -362,3 +364,6 @@ EXTERN_API int reader_open_session(reader_h handle, reader_open_session_cb callb EXTERN_API void reader_destroy_instance(reader_h handle) { } + +/* LCOV_EXCL_STOP */ + diff --git a/src/SEService.cpp b/src/SEService.cpp index 6c3882f..03d2d20 100755 --- a/src/SEService.cpp +++ b/src/SEService.cpp @@ -28,6 +28,8 @@ #include "Reader.h" #include "ClientGDBus.h" +/* LCOV_EXCL_START */ + #ifndef EXTERN_API #define EXTERN_API __attribute__((visibility("default"))) #endif @@ -732,3 +734,6 @@ EXTERN_API int se_service_destroy_instance(se_service_h handle) return result; } + +/* LCOV_EXCL_STOP */ + diff --git a/src/Session.cpp b/src/Session.cpp old mode 100644 new mode 100755 index 5089a4b..00dfe3e --- a/src/Session.cpp +++ b/src/Session.cpp @@ -29,6 +29,8 @@ #include "ClientChannel.h" #include "ClientGDBus.h" +/* LCOV_EXCL_START */ + #ifndef EXTERN_API #define EXTERN_API __attribute__((visibility("default"))) #endif @@ -866,3 +868,5 @@ EXTERN_API void session_destroy_instance(session_h handle) { } +/* LCOV_EXCL_STOP */ + -- 2.34.1