Bug Summary

File:core/class/IdentifierExternalClassHierarchyTest.cc
Location:line 52, column 21
Description:Potential memory leak

Annotated Source Code

1#include <gtest/gtest.h>
2#include "core/CoreIncludes.h"
3#include "core/class/Identifiable.h"
4#include "core/module/ModuleInstance.h"
5
6namespace orxonox
7{
8 namespace
9 {
10 class Interface : virtual public Identifiable
11 {
12 public:
13 Interface()
14 {
15 RegisterObject(Interface)if (ClassIdentifier<Interface>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
16 }
17
18 virtual void test() = 0;
19 };
20
21 class BaseClass : virtual public Identifiable
22 {
23 public:
24 BaseClass()
25 {
26 RegisterObject(BaseClass)if (ClassIdentifier<BaseClass>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
27 }
28 };
29
30 class RealClass : public BaseClass, public Interface
31 {
32 public:
33 RealClass()
34 {
35 RegisterObject(RealClass)if (ClassIdentifier<RealClass>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
36 }
37
38 virtual void test() override {}
39 };
40
41 RegisterAbstractClass(Interface)orxonox::SI_I& _InterfaceIdentifier = (*new orxonox::SI_I
(orxonox::registerClass<Interface>("Interface", static_cast
<ClassFactory<Interface>*>(nullptr), false)))
.inheritsFrom<Identifiable>();
42 RegisterClassNoArgs(BaseClass)orxonox::SI_I& _BaseClassIdentifier = (*new orxonox::SI_I
(orxonox::registerClass<BaseClass>("BaseClass", new orxonox
::ClassFactoryNoArgs<BaseClass>(), true)))
;
43 RegisterClassNoArgs(RealClass)orxonox::SI_I& _RealClassIdentifier = (*new orxonox::SI_I
(orxonox::registerClass<RealClass>("RealClass", new orxonox
::ClassFactoryNoArgs<RealClass>(), true)))
;
44
45 // Fixture
46 class IdentifierExternalClassHierarchyTest : public ::testing::Test
47 {
48 public:
49 virtual void SetUp() override
50 {
51 new IdentifierManager();
1
Memory is allocated
52 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
2
Potential memory leak
53 Context::setRootContext(new Context(nullptr));
54 Identifier::initConfigValues_s = false; // TODO: hack!
55 IdentifierManager::getInstance().createClassHierarchy();
56 }
57
58 virtual void TearDown() override
59 {
60 IdentifierManager::getInstance().destroyClassHierarchy();
61 Context::destroyRootContext();
62 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
63 delete &IdentifierManager::getInstance();
64 }
65 };
66
67 bool contains(const std::list<const Identifier*> identifiers, Identifier* identifier)
68 {
69 return std::find(identifiers.begin(), identifiers.end(), identifier) != identifiers.end();
70 }
71
72 bool contains(const std::set<const Identifier*> identifiers, Identifier* identifier)
73 {
74 return identifiers.find(identifier) != identifiers.end();
75 }
76 }
77
78 TEST_F(IdentifierExternalClassHierarchyTest, TestInterface)class IdentifierExternalClassHierarchyTest_TestInterface_Test
: public IdentifierExternalClassHierarchyTest { public: IdentifierExternalClassHierarchyTest_TestInterface_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierExternalClassHierarchyTest_TestInterface_Test
(IdentifierExternalClassHierarchyTest_TestInterface_Test const
&); void operator=(IdentifierExternalClassHierarchyTest_TestInterface_Test
const &);};::testing::TestInfo* const IdentifierExternalClassHierarchyTest_TestInterface_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierExternalClassHierarchyTest", "TestInterface", __null
, __null, (::testing::internal::GetTypeId<IdentifierExternalClassHierarchyTest
>()), IdentifierExternalClassHierarchyTest::SetUpTestCase,
IdentifierExternalClassHierarchyTest::TearDownTestCase, new ::
testing::internal::TestFactoryImpl< IdentifierExternalClassHierarchyTest_TestInterface_Test
>);void IdentifierExternalClassHierarchyTest_TestInterface_Test
::TestBody()
79 {
80 Identifier* identifier = Class(Interface)orxonox::ClassIdentifier<Interface>::getIdentifier();
81
82 EXPECT_EQ(1u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"identifier->getDirectChildren().size()", 1u, identifier->
getDirectChildren().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 82, gtest_ar.failure_message()) = ::testing::Message()
;
83 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(RealClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<RealClass>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 83, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(RealClass))"
, "false", "true").c_str()) = ::testing::Message()
;
84
85 EXPECT_EQ(1u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"identifier->getChildren().size()", 1u, identifier->getChildren
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 85, gtest_ar.failure_message()) = ::testing::Message()
;
86 EXPECT_TRUE(contains(identifier->getChildren(), Class(RealClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<RealClass>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 86, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(RealClass))",
"false", "true").c_str()) = ::testing::Message()
;
87
88 EXPECT_EQ(1u, identifier->getDirectParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"identifier->getDirectParents().size()", 1u, identifier->
getDirectParents().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 88, gtest_ar.failure_message()) = ::testing::Message()
;
89 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Identifiable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<Identifiable>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 89, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
90
91 EXPECT_EQ(1u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"identifier->getParents().size()", 1u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 91, gtest_ar.failure_message()) = ::testing::Message()
;
92 EXPECT_TRUE(contains(identifier->getParents(), Class(Identifiable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Identifiable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 92, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
93 }
94
95 TEST_F(IdentifierExternalClassHierarchyTest, BaseClass)class IdentifierExternalClassHierarchyTest_BaseClass_Test : public
IdentifierExternalClassHierarchyTest { public: IdentifierExternalClassHierarchyTest_BaseClass_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierExternalClassHierarchyTest_BaseClass_Test
(IdentifierExternalClassHierarchyTest_BaseClass_Test const &
); void operator=(IdentifierExternalClassHierarchyTest_BaseClass_Test
const &);};::testing::TestInfo* const IdentifierExternalClassHierarchyTest_BaseClass_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierExternalClassHierarchyTest", "BaseClass", __null,
__null, (::testing::internal::GetTypeId<IdentifierExternalClassHierarchyTest
>()), IdentifierExternalClassHierarchyTest::SetUpTestCase,
IdentifierExternalClassHierarchyTest::TearDownTestCase, new ::
testing::internal::TestFactoryImpl< IdentifierExternalClassHierarchyTest_BaseClass_Test
>);void IdentifierExternalClassHierarchyTest_BaseClass_Test
::TestBody()
96 {
97 Identifier* identifier = Class(BaseClass)orxonox::ClassIdentifier<BaseClass>::getIdentifier();
98
99 EXPECT_EQ(1u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"identifier->getDirectChildren().size()", 1u, identifier->
getDirectChildren().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 99, gtest_ar.failure_message()) = ::testing::Message()
;
100 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(RealClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<RealClass>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 100, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(RealClass))"
, "false", "true").c_str()) = ::testing::Message()
;
101
102 EXPECT_EQ(1u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"identifier->getChildren().size()", 1u, identifier->getChildren
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 102, gtest_ar.failure_message()) = ::testing::Message()
;
103 EXPECT_TRUE(contains(identifier->getChildren(), Class(RealClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<RealClass>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 103, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(RealClass))",
"false", "true").c_str()) = ::testing::Message()
;
104
105 EXPECT_EQ(1u, identifier->getDirectParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"identifier->getDirectParents().size()", 1u, identifier->
getDirectParents().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 105, gtest_ar.failure_message()) = ::testing::Message()
;
106 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Identifiable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<Identifiable>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 106, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
107
108 EXPECT_EQ(1u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u",
"identifier->getParents().size()", 1u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 108, gtest_ar.failure_message()) = ::testing::Message()
;
109 EXPECT_TRUE(contains(identifier->getParents(), Class(Identifiable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Identifiable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 109, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
110 }
111
112 TEST_F(IdentifierExternalClassHierarchyTest, RealClass)class IdentifierExternalClassHierarchyTest_RealClass_Test : public
IdentifierExternalClassHierarchyTest { public: IdentifierExternalClassHierarchyTest_RealClass_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierExternalClassHierarchyTest_RealClass_Test
(IdentifierExternalClassHierarchyTest_RealClass_Test const &
); void operator=(IdentifierExternalClassHierarchyTest_RealClass_Test
const &);};::testing::TestInfo* const IdentifierExternalClassHierarchyTest_RealClass_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierExternalClassHierarchyTest", "RealClass", __null,
__null, (::testing::internal::GetTypeId<IdentifierExternalClassHierarchyTest
>()), IdentifierExternalClassHierarchyTest::SetUpTestCase,
IdentifierExternalClassHierarchyTest::TearDownTestCase, new ::
testing::internal::TestFactoryImpl< IdentifierExternalClassHierarchyTest_RealClass_Test
>);void IdentifierExternalClassHierarchyTest_RealClass_Test
::TestBody()
113 {
114 Identifier* identifier = Class(RealClass)orxonox::ClassIdentifier<RealClass>::getIdentifier();
115
116 EXPECT_EQ(0u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"identifier->getDirectChildren().size()", 0u, identifier->
getDirectChildren().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 116, gtest_ar.failure_message()) = ::testing::Message()
;
117
118 EXPECT_EQ(0u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(0u)) == 1)>::Compare("0u",
"identifier->getChildren().size()", 0u, identifier->getChildren
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 118, gtest_ar.failure_message()) = ::testing::Message()
;
119
120 EXPECT_EQ(2u, identifier->getDirectParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2u)) == 1)>::Compare("2u",
"identifier->getDirectParents().size()", 2u, identifier->
getDirectParents().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 120, gtest_ar.failure_message()) = ::testing::Message()
;
121 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Interface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<Interface>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 121, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(Interface))"
, "false", "true").c_str()) = ::testing::Message()
;
122 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(BaseClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<BaseClass>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 122, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseClass))"
, "false", "true").c_str()) = ::testing::Message()
;
123
124 EXPECT_EQ(3u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3u)) == 1)>::Compare("3u",
"identifier->getParents().size()", 3u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 124, gtest_ar.failure_message()) = ::testing::Message()
;
125 EXPECT_TRUE(contains(identifier->getParents(), Class(Identifiable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Identifiable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 125, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
126 EXPECT_TRUE(contains(identifier->getParents(), Class(Interface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Interface>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 126, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Interface))", "false"
, "true").c_str()) = ::testing::Message()
;
127 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseClass>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierExternalClassHierarchyTest.cc"
, 127, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseClass))", "false"
, "true").c_str()) = ::testing::Message()
;
128 }
129}