Skip to content
Snippets Groups Projects
Commit 631de16f authored by Maxence Naud's avatar Maxence Naud
Browse files

update Test_GraphView.cpp test names

parent a25416e4
No related branches found
No related tags found
1 merge request!53GraphView inputs/outputs ordering
Pipeline #35331 passed
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment