From 97abc2ad905a068fa766a87836b0fe9662235864 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 22 Aug 2023 10:45:54 +0200 Subject: [PATCH] Update test/t8_forest/* --- test/t8_forest/t8_gtest_element_general_function.cxx | 4 ---- test/t8_forest/t8_gtest_element_volume.cxx | 3 +-- test/t8_forest/t8_gtest_find_owner.cxx | 4 ---- test/t8_forest/t8_gtest_forest_commit.cxx | 4 ---- test/t8_forest/t8_gtest_ghost_and_owner.cxx | 4 ---- test/t8_forest/t8_gtest_ghost_exchange.cxx | 4 ---- test/t8_forest/t8_gtest_half_neighbors.cxx | 4 ---- test/t8_forest/t8_gtest_search.cxx | 4 ---- test/t8_forest/t8_gtest_transform.cxx | 4 ---- 9 files changed, 1 insertion(+), 34 deletions(-) diff --git a/test/t8_forest/t8_gtest_element_general_function.cxx b/test/t8_forest/t8_gtest_element_general_function.cxx index 13840d1476..8eb0855589 100644 --- a/test/t8_forest/t8_gtest_element_general_function.cxx +++ b/test/t8_forest/t8_gtest_element_general_function.cxx @@ -42,7 +42,6 @@ * - Add a test for different schemes as soon as they are implemented */ -/* *INDENT-OFF* */ class forest_element_function: public testing::TestWithParam > { protected: void @@ -68,7 +67,6 @@ class forest_element_function: public testing::TestWithParam> { protected: void @@ -59,7 +59,6 @@ class t8_forest_volume: public testing::TestWithParam #include -/* *INDENT-OFF* */ class forest_find_owner: public testing::TestWithParam { protected: void @@ -49,7 +48,6 @@ class forest_find_owner: public testing::TestWithParam { t8_cmesh_t cmesh; t8_scheme_cxx_t *default_scheme; }; -/* *INDENT-ON* */ #if 0 /* Depending on an integer i create a different cmesh. @@ -171,6 +169,4 @@ TEST_P (forest_find_owner, find_multiple_owners) sc_array_reset (&owners); } -/* *INDENT-OFF* */ INSTANTIATE_TEST_SUITE_P (t8_gtest_find_owner, forest_find_owner, testing::Range (T8_ECLASS_VERTEX, T8_ECLASS_COUNT)); -/* *INDENT-ON* */ diff --git a/test/t8_forest/t8_gtest_forest_commit.cxx b/test/t8_forest/t8_gtest_forest_commit.cxx index 6bfe279b4a..1cca0c6fc5 100644 --- a/test/t8_forest/t8_gtest_forest_commit.cxx +++ b/test/t8_forest/t8_gtest_forest_commit.cxx @@ -37,7 +37,6 @@ * After these two forests are created, we check for equality. */ -/* *INDENT-OFF* */ class forest_commit: public testing::TestWithParam { protected: void @@ -56,7 +55,6 @@ class forest_commit: public testing::TestWithParam { int cmesh_id; t8_cmesh_t cmesh; }; -/* *INDENT-ON* */ /* Adapt a forest such that always the first child of a * tree is refined and no other elements. This results in a highly @@ -172,6 +170,4 @@ TEST_P (forest_commit, test_forest_commit) t8_debugf ("Done testing forest commit."); } -/* *INDENT-OFF* */ INSTANTIATE_TEST_SUITE_P (t8_gtest_forest_commit, forest_commit, testing::Range (0, t8_get_number_of_all_testcases ())); -/* *INDENT-ON* */ diff --git a/test/t8_forest/t8_gtest_ghost_and_owner.cxx b/test/t8_forest/t8_gtest_ghost_and_owner.cxx index f991fbde64..bcde30f54b 100644 --- a/test/t8_forest/t8_gtest_ghost_and_owner.cxx +++ b/test/t8_forest/t8_gtest_ghost_and_owner.cxx @@ -35,7 +35,6 @@ * element is in face the owner that is stored in the ghost layer. */ -/* *INDENT-OFF* */ class forest_ghost_owner: public testing::TestWithParam { protected: void @@ -57,7 +56,6 @@ class forest_ghost_owner: public testing::TestWithParam { t8_cmesh_t cmesh; t8_scheme_cxx_t *scheme; }; -/* *INDENT-ON* */ static int t8_test_gao_adapt (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t which_tree, t8_locidx_t lelement_id, @@ -143,7 +141,5 @@ TEST_P (forest_ghost_owner, test_ghost_owner) } } -/* *INDENT-OFF* */ INSTANTIATE_TEST_SUITE_P (t8_gtest_ghost_and_owner, forest_ghost_owner, testing::Range (0, t8_get_number_of_all_testcases ())); -/* *INDENT-ON* */ diff --git a/test/t8_forest/t8_gtest_ghost_exchange.cxx b/test/t8_forest/t8_gtest_ghost_exchange.cxx index c716a01028..4d932e533c 100644 --- a/test/t8_forest/t8_gtest_ghost_exchange.cxx +++ b/test/t8_forest/t8_gtest_ghost_exchange.cxx @@ -42,7 +42,6 @@ * in a second test, we store the element's linear id in the data array. */ -/* *INDENT-OFF* */ class forest_ghost_exchange: public testing::TestWithParam { protected: void @@ -64,7 +63,6 @@ class forest_ghost_exchange: public testing::TestWithParam { t8_scheme_cxx_t *scheme; t8_cmesh_t cmesh; }; -/* *INDENT-ON* */ static int t8_test_exchange_adapt (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t which_tree, t8_locidx_t lelement_id, @@ -196,7 +194,5 @@ TEST_P (forest_ghost_exchange, test_ghost_exchange) } } -/* *INDENT-OFF* */ INSTANTIATE_TEST_SUITE_P (t8_gtest_ghost_exchange, forest_ghost_exchange, testing::Range (0, t8_get_number_of_all_testcases ())); -/* *INDENT-ON* */ diff --git a/test/t8_forest/t8_gtest_half_neighbors.cxx b/test/t8_forest/t8_gtest_half_neighbors.cxx index 82030fa58d..7e263de657 100644 --- a/test/t8_forest/t8_gtest_half_neighbors.cxx +++ b/test/t8_forest/t8_gtest_half_neighbors.cxx @@ -32,7 +32,6 @@ #include #include -/* *INDENT-OFF* */ class forest_half_neighbors: public testing::TestWithParam> { protected: void @@ -52,7 +51,6 @@ class forest_half_neighbors: public testing::TestWithParam #include -/* *INDENT-OFF* */ class forest_search: public testing::TestWithParam> { protected: void @@ -53,7 +52,6 @@ class forest_search: public testing::TestWithParam> { t8_forest_t forest; t8_scheme_cxx_t *default_scheme; }; -/* *INDENT-ON* */ /* A search function that matches all elements. * This function assumes that the forest user pointer is an sc_array @@ -153,7 +151,5 @@ TEST_P (forest_search, test_search_one_query_matches_all) sc_array_reset (&queries); } -/* *INDENT-OFF* */ INSTANTIATE_TEST_SUITE_P (t8_gtest_search, forest_search, testing::Combine (testing::Range (T8_ECLASS_VERTEX, T8_ECLASS_COUNT), testing::Range (0, 6))); -/* *INDENT-ON* */ diff --git a/test/t8_forest/t8_gtest_transform.cxx b/test/t8_forest/t8_gtest_transform.cxx index 0f3fbb783c..19310eb5c3 100644 --- a/test/t8_forest/t8_gtest_transform.cxx +++ b/test/t8_forest/t8_gtest_transform.cxx @@ -38,7 +38,6 @@ #include #include -/* *INDENT-OFF* */ class forest_transform: public testing::TestWithParam> { protected: void @@ -70,7 +69,6 @@ class forest_transform: public testing::TestWithParam t8_forest_t forest; int level; }; -/* *INDENT-ON* */ static void t8_test_transform_element (t8_eclass_scheme_c *ts, const t8_element_t *elem, t8_eclass_t eclass) @@ -178,8 +176,6 @@ TEST_P (forest_transform, test_forest_transform_elements) } } -/* *INDENT-OFF* */ INSTANTIATE_TEST_SUITE_P (t8_gtest_forest_transform, forest_transform, testing::Combine (testing::Range (T8_ECLASS_QUAD, T8_ECLASS_TRIANGLE), testing::Range (0, 6))); -/* *INDENT-ON* */