From 631de16f207464ea21fea2d4c3c463247bc669fb Mon Sep 17 00:00:00 2001 From: NAUD Maxence <maxence.naud@cea.fr> Date: Tue, 5 Dec 2023 10:46:08 +0000 Subject: [PATCH] update Test_GraphView.cpp test names --- unit_tests/graph/Test_GraphView.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/unit_tests/graph/Test_GraphView.cpp b/unit_tests/graph/Test_GraphView.cpp index 25aa4b461..bf20473ef 100644 --- a/unit_tests/graph/Test_GraphView.cpp +++ b/unit_tests/graph/Test_GraphView.cpp @@ -9,6 +9,7 @@ * ********************************************************************************/ +#include <algorithm> // std::sort #include <cassert> #include <map> #include <memory> @@ -40,7 +41,7 @@ public: } }; -TEST_CASE("genRandomGraph") { +TEST_CASE("genRandomGraph", "[GraphView][randomGen]") { const size_t nbTests = 100; size_t nbUnicity = 0; @@ -89,7 +90,7 @@ TEST_CASE("genRandomGraph") { printf("nbUnicity = %zu/%zu\n", nbUnicity, nbTests); } -TEST_CASE("clone") { +TEST_CASE("clone", "[GraphView][clone]") { const size_t nbTests = 100; for (int test = 0; test < nbTests; ++test) { @@ -115,7 +116,7 @@ NodePtr nodeDel(NodePtr node) { return node->clone(); } -TEST_CASE("clone_with_delete") { +TEST_CASE("clone_with_delete", "[GraphView][cloneDelete]") { const size_t nbTests = 100; size_t nbClonedWithDelete = 0; @@ -162,7 +163,7 @@ TEST_CASE("clone_with_delete") { printf("nbClonedWithDelete = %zu/%zu\n", nbClonedWithDelete, nbTests); } -TEST_CASE("remove") { +TEST_CASE("remove", "[GraphView][remove]") { const size_t nbTests = 100; size_t nbTested = 0; @@ -220,14 +221,14 @@ TEST_CASE("remove") { printf("nbTested = %zu/%zu\n", nbTested, nbTests); } -TEST_CASE("[core/graph] GraphView(Constructor)") { +TEST_CASE("[core/graph] GraphView(Constructor)", "[GraphView][constructor()]") { std::shared_ptr<GraphView> g0 = std::make_shared<GraphView>(); std::shared_ptr<GraphView> g1 = std::make_shared<GraphView>("G1"); REQUIRE(g0 != nullptr); REQUIRE(g1 != nullptr); } -TEST_CASE("[core/graph] GraphView(add)") { +TEST_CASE("[core/graph] GraphView(add)", "[GraphView][add]") { SECTION("Node alone") { std::shared_ptr<GraphView> g = std::make_shared<GraphView>("TestGraph"); std::shared_ptr<Node> GOp1 = GenericOperator("Fictive", 0, 0, 0, "Gop1"); -- GitLab