Add LCOV macro to exclude test code 50/311250/1 accepted/tizen_unified_dev accepted/tizen/unified/20240611.122625 accepted/tizen/unified/dev/20240620.004506 accepted/tizen/unified/toolchain/20240624.121223 accepted/tizen/unified/x/20240612.025842 accepted/tizen/unified/x/asan/20240625.091627
authorJaehyun Kim <jeik01.kim@samsung.com>
Fri, 17 May 2024 01:24:53 +0000 (10:24 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Fri, 17 May 2024 01:24:53 +0000 (10:24 +0900)
Change-Id: I6034390da03939196f2c37e7dd3cded776e9c5e3
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
packaging/capi-network-softap.spec
tests/softap-gtest-async.cpp
tests/softap-gtest-client.cpp
tests/softap-gtest-common.cpp
tests/softap-gtest-event-handler.cpp
tests/softap-gtest-util.cpp
tests/softap-gtest-vconf.cpp

index d48f45b2f935600d68d64b5efd164b57abbedb89..2172529ca3c19c180e0daf7c51369ccbfdb2e02c 100644 (file)
@@ -137,7 +137,6 @@ genhtml %{name}.info -o out --legend --show-details
 %if 0%{?gcov:1}
 %files gcov
 %{_datadir}/gcov/obj/*
-%exclude %{_datadir}/gcov/obj/*/*/tests/*
 %endif
 
 %if 0%{?asan} != 1
index 492e58debd0091f1f8975d6a50430af11d3fa4f2..baa4871695514f8b3ba399f6b3a1574218528db6 100755 (executable)
@@ -32,6 +32,7 @@ static int resultFlags;
 static void enabledCallback(softap_error_e error, bool requested, void *data);
 static void disabledCallback(softap_error_e error, softap_disabled_cause_e cause, void *data);
 
+//LCOV_EXCL_START
 class SoftApAsyncTest: public ::testing::Test {
        protected:
                softap_h handle;
@@ -322,3 +323,4 @@ TEST_F(SoftApAsyncTest, ClientConnectionStateChangedEventP)
        EXPECT_EQ(SOFTAP_ERROR_NONE,
                        softap_unset_client_connection_state_changed_cb(handle));
 }
+//LCOV_EXCL_STOP
index 587e6c7940d137935822c14bf1ba1ea024f47fde..89c227b5c1d41c1e48850c99cc65d01d694efca0 100755 (executable)
@@ -26,6 +26,7 @@ extern "C" {
 #include "mocks/softap_vconf.h"
 }
 
+//LCOV_EXCL_START
 class SoftApClientTest: public ::testing::Test {
        protected:
                softap_client_h client;
@@ -148,3 +149,4 @@ TEST_F(SoftApClientTest, GetTimeP)
 
        EXPECT_EQ(SOFTAP_ERROR_NONE, softap_client_get_time(client, &timestamp));
 }
+//LCOV_EXCL_STOP
index 89c38cf185b627859799a96a5f36fd58f699fea3..b6988f1c4df22f689c431cd6d0a06f33aa48e17c 100755 (executable)
@@ -26,6 +26,7 @@ extern "C" {
 #include "mocks/softap_vconf.h"
 }
 
+//LCOV_EXCL_START
 class SoftApTest: public ::testing::Test {
        protected:
                softap_h handle;
@@ -615,3 +616,4 @@ TEST_F(SoftApTest, ForeachConnectedClientsP)
        EXPECT_EQ(SOFTAP_ERROR_NONE,
                        softap_foreach_connected_clients(handle, ConnectedClientsCallbackP, NULL));
 }
+//LCOV_EXCL_STOP
index 65346dbcc35b23d6db048376b718156763e5a8f5..551358663480f7c6db0b291e7bbf9e750e6b0010 100755 (executable)
@@ -26,6 +26,7 @@ extern "C" {
 #include "mocks/softap_gdbus.h"
 }
 
+//LCOV_EXCL_START
 static void __handle_softap_on(bool is_requested, void *user_data);
 static void __handle_softap_off(int disabled_code, void *user_data);
 static void __handle_low_battery_mode(void *user_data);
@@ -147,4 +148,5 @@ TEST_F(SoftApEventHandlerTest, startDisabledEventP)
 {
        RegisterEvents();
        EXPECT_EQ(ERROR_NONE, eventHandler->startDisabledEvent());
-}
\ No newline at end of file
+}
+//LCOV_EXCL_STOP
index f61fe251a12beabf9804573e41daddb763bd71a4..900f5264664d9eab93c98bb5faebbdb40cf4e416 100755 (executable)
@@ -22,6 +22,7 @@ extern "C" {
 #include "mocks/softap_gdbus.h"
 };
 
+//LCOV_EXCL_START
 SoftApTestUtil::SoftApTestUtil(void) : testType(SOFTAP_TEST_UTIL_MAX), mainLoop(NULL), timeoutId(0)
 {
 }
@@ -101,3 +102,4 @@ gboolean SoftApTestUtil::timeoutCallback(gpointer user_data)
 
     return FALSE;
 }
+//LCOV_EXCL_STOP
index f1d385cb09fdac81924c1a6f7688caf308e0e731..83ded979b161df1dbcc23c0e4f1b3c8a68ea8f45 100644 (file)
@@ -25,6 +25,7 @@ extern "C" {
 #include "mocks/softap_vconf.h"
 }
 
+//LCOV_EXCL_START
 class SoftapVconfTest: public ::testing::Test {
        protected:
                void SetUp() override
@@ -93,3 +94,4 @@ TEST_F(SoftapVconfTest, getVsieN)
        EXPECT_EQ(SOFTAP_ERROR_INVALID_PARAMETER,
                SoftapVconf::getVsie(NULL, 0));
 }
+//LCOV_EXCL_STOP