From 580a58a5043066cb2a9ed07af9e764a942637bd0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Berg=C3=A9?= <corentin.berge@outlook.fr>
Date: Wed, 3 Jul 2019 12:35:26 +0200
Subject: [PATCH] Increase the coverage (include/dynamic-graph/Entity.h ->
 100%) Add on test/Entity.h the virtual function (Entity::getClassName)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Bergé <corentin.berge@outlook.fr>
---
 tests/custom-entity.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/custom-entity.cpp b/tests/custom-entity.cpp
index e744826..54c3b13 100644
--- a/tests/custom-entity.cpp
+++ b/tests/custom-entity.cpp
@@ -50,8 +50,8 @@ BOOST_AUTO_TEST_CASE (constructor)
     dynamicgraph::FactoryStorage::getInstance()->
     newEntity("CustomEntity", "my-entity");
   BOOST_CHECK_EQUAL (entity->getName (), "my-entity");
+  BOOST_CHECK_EQUAL (entity->Entity::getClassName (), "Entity");
   BOOST_CHECK_EQUAL (entity->getClassName (), CustomEntity::CLASS_NAME);
-
   //CustomEntity entity2 ("");
   // Deregister entities before destroying them
   dynamicgraph::PoolStorage::destroy();
-- 
GitLab