From 360ffb0fdbb572bcf43c6801ade62b69e01e5c87 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Wed, 4 Sep 2024 11:11:33 +0900 Subject: [PATCH] Exclude unittest directory Change-Id: Ie5251546ef7c124489f2f21de63fd5640d9a19b0 Signed-off-by: Jihoon Kim --- tests/src/autofill_client_unittests.cpp | 2 +- tests/src/autofill_common_unittests.cpp | 2 ++ tests/src/autofill_manager_denied_unittest.cpp | 2 ++ tests/src/autofill_manager_unittest.cpp | 4 +++- tests/src/autofill_service_unittests.cpp | 4 ++-- tests/src/cynara_mock.cpp | 2 ++ tests/src/main.cpp | 2 ++ 7 files changed, 14 insertions(+), 4 deletions(-) diff --git a/tests/src/autofill_client_unittests.cpp b/tests/src/autofill_client_unittests.cpp index 323c965..0e425e0 100644 --- a/tests/src/autofill_client_unittests.cpp +++ b/tests/src/autofill_client_unittests.cpp @@ -47,7 +47,6 @@ void error_info_cb(autofill_h ah, autofill_error_info_h error_info, void *user_d { } -//LCOV_EXCL_STOP static void connect_status_changed_cb(autofill_h ah, autofill_connection_status_e status, void* user_data) { @@ -474,3 +473,4 @@ TEST_F(AutofillClientTest, utc_autofill_commit_n3) } } // namespace +//LCOV_EXCL_STOP diff --git a/tests/src/autofill_common_unittests.cpp b/tests/src/autofill_common_unittests.cpp index d4519b6..3b34110 100644 --- a/tests/src/autofill_common_unittests.cpp +++ b/tests/src/autofill_common_unittests.cpp @@ -26,6 +26,7 @@ #define VIEW_ID "login" +//LCOV_EXCL_START namespace { static bool view_info_item_cb_result = false; @@ -3451,3 +3452,4 @@ TEST_F(AutofillCommonTest, utc_autofill_error_info_get_error_code_n) } } // namespace +//LCOV_EXCL_STOP \ No newline at end of file diff --git a/tests/src/autofill_manager_denied_unittest.cpp b/tests/src/autofill_manager_denied_unittest.cpp index 6fff893..23f073d 100644 --- a/tests/src/autofill_manager_denied_unittest.cpp +++ b/tests/src/autofill_manager_denied_unittest.cpp @@ -24,6 +24,7 @@ static autofill_manager_h g_amh = NULL; +//LCOV_EXCL_START class AutofillManagerDeniedTest : public testing::Test { public: virtual void SetUp() { @@ -122,3 +123,4 @@ TEST_F(AutofillManagerDeniedTest, utc_autofill_manager_denied_set_autofill_servi int ret = autofill_manager_set_autofill_service(NULL, NULL); EXPECT_EQ(ret, AUTOFILL_ERROR_PERMISSION_DENIED); } +//LCOV_EXCL_STOP \ No newline at end of file diff --git a/tests/src/autofill_manager_unittest.cpp b/tests/src/autofill_manager_unittest.cpp index f1ee54e..0bcaa8a 100644 --- a/tests/src/autofill_manager_unittest.cpp +++ b/tests/src/autofill_manager_unittest.cpp @@ -25,6 +25,7 @@ static autofill_manager_h g_amh = NULL; +//LCOV_EXCL_START static bool autofill_service_info_cb(const char* app_id, void* user_data) { app_info_h app_h; @@ -192,4 +193,5 @@ TEST_F(AutofillManagerTest, utc_autofill_manager_set_autofill_service_n2) { int ret = autofill_manager_set_autofill_service(g_amh, "org.tizen.autofill-service"); EXPECT_EQ(ret, AUTOFILL_ERROR_OPERATION_FAILED); -} \ No newline at end of file +} +//LCOV_EXCL_STOP \ No newline at end of file diff --git a/tests/src/autofill_service_unittests.cpp b/tests/src/autofill_service_unittests.cpp index 0a41134..6cb0d2e 100644 --- a/tests/src/autofill_service_unittests.cpp +++ b/tests/src/autofill_service_unittests.cpp @@ -25,9 +25,9 @@ #include +//LCOV_EXCL_START namespace { -//LCOV_EXCL_START static void auth_info_requested_cb(int context_id, autofill_view_info_h vi, void *user_data) { @@ -52,7 +52,6 @@ static void terminate_received_cb(void *user_data) { } -//LCOV_EXCL_STOP class AutofillServiceTest : public testing::Test { public: @@ -277,3 +276,4 @@ TEST_F(AutofillServiceTest, utc_autofill_service_unset_terminate_received_cb_p) } } // namespace +//LCOV_EXCL_STOP \ No newline at end of file diff --git a/tests/src/cynara_mock.cpp b/tests/src/cynara_mock.cpp index ff6e88f..8b49f1b 100644 --- a/tests/src/cynara_mock.cpp +++ b/tests/src/cynara_mock.cpp @@ -5,6 +5,7 @@ static int check_result = CYNARA_API_ACCESS_ALLOWED; +//LCOV_EXCL_START void cynara_check_set_result(int result) { check_result = result; @@ -32,3 +33,4 @@ EXPORT_API char *__wrap_cynara_session_from_pid(pid_t pid) { return strdup("session"); } +//LCOV_EXCL_STOP \ No newline at end of file diff --git a/tests/src/main.cpp b/tests/src/main.cpp index a37d671..dfdeda1 100644 --- a/tests/src/main.cpp +++ b/tests/src/main.cpp @@ -1,7 +1,9 @@ #include #include +//LCOV_EXCL_START int main(int argc, char** argv) { testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } +//LCOV_EXCL_STOP \ No newline at end of file -- 2.7.4