Bug Summary

File:core/class/IdentifierClassHierarchyTest.cc
Location:line 145, 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/class/OrxonoxClass.h"
5#include "core/class/OrxonoxInterface.h"
6#include "core/module/ModuleInstance.h"
7
8namespace orxonox
9{
10 // +------ Class0
11 // BaseClass <-----+---------------------+--- Class1
12 // +---------------------+-+- Class2a
13 // +---------------------+-+- Class2b
14 // +-+-+-- Class3 | |
15 // | | | |
16 // BaseInterface1 <--+---- Interface1 <--´ |
17 // | |
18 // BaseInterface2 <----+-- Interface2 <----´
19
20 namespace
21 {
22 class BaseInterface1 : virtual public OrxonoxInterface
23 {
24 public:
25 BaseInterface1()
26 {
27 RegisterObject(BaseInterface1)if (ClassIdentifier<BaseInterface1>::getIdentifier()->
initializeObject(this)) return; else ((void)0)
;
28 }
29
30 virtual void test1() = 0;
31 };
32
33 class BaseInterface2 : virtual public OrxonoxInterface
34 {
35 public:
36 BaseInterface2()
37 {
38 RegisterObject(BaseInterface2)if (ClassIdentifier<BaseInterface2>::getIdentifier()->
initializeObject(this)) return; else ((void)0)
;
39 }
40
41 virtual void test2() = 0;
42 };
43
44 class Interface1 : public BaseInterface1
45 {
46 public:
47 Interface1()
48 {
49 RegisterObject(Interface1)if (ClassIdentifier<Interface1>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
50 }
51 };
52
53 class Interface2 : public BaseInterface2
54 {
55 public:
56 Interface2()
57 {
58 RegisterObject(Interface2)if (ClassIdentifier<Interface2>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
59 }
60 };
61
62 class BaseClass : public OrxonoxClass
63 {
64 public:
65 BaseClass()
66 {
67 RegisterObject(BaseClass)if (ClassIdentifier<BaseClass>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
68 }
69 };
70
71 class Class0 : public BaseClass
72 {
73 public:
74 Class0()
75 {
76 RegisterObject(Class0)if (ClassIdentifier<Class0>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
77 }
78 };
79
80 class Class1 : public BaseClass, public Interface1
81 {
82 public:
83 Class1()
84 {
85 RegisterObject(Class1)if (ClassIdentifier<Class1>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
86 }
87
88 virtual void test1() override {}
89 };
90
91 class Class2a : public BaseClass, public Interface1, Interface2
92 {
93 public:
94 Class2a()
95 {
96 RegisterObject(Class2a)if (ClassIdentifier<Class2a>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
97 }
98
99 virtual void test1() override {}
100 virtual void test2() override {}
101 };
102
103 class Class2b : public BaseClass, public Interface2, Interface1
104 {
105 public:
106 Class2b()
107 {
108 RegisterObject(Class2b)if (ClassIdentifier<Class2b>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
109 }
110
111 virtual void test1() override {}
112 virtual void test2() override {}
113 };
114
115 class Class3 : public BaseClass, public BaseInterface1, BaseInterface2
116 {
117 public:
118 Class3()
119 {
120 RegisterObject(Class3)if (ClassIdentifier<Class3>::getIdentifier()->initializeObject
(this)) return; else ((void)0)
;
121 }
122
123 virtual void test1() override {}
124 virtual void test2() override {}
125 };
126
127 RegisterAbstractClass(BaseInterface1)orxonox::SI_I& _BaseInterface1Identifier = (*new orxonox::
SI_I(orxonox::registerClass<BaseInterface1>("BaseInterface1"
, static_cast<ClassFactory<BaseInterface1>*>(nullptr
), false)))
.inheritsFrom<OrxonoxInterface>();
128 RegisterAbstractClass(BaseInterface2)orxonox::SI_I& _BaseInterface2Identifier = (*new orxonox::
SI_I(orxonox::registerClass<BaseInterface2>("BaseInterface2"
, static_cast<ClassFactory<BaseInterface2>*>(nullptr
), false)))
.inheritsFrom<OrxonoxInterface>();
129 RegisterAbstractClass(Interface1)orxonox::SI_I& _Interface1Identifier = (*new orxonox::SI_I
(orxonox::registerClass<Interface1>("Interface1", static_cast
<ClassFactory<Interface1>*>(nullptr), false)))
.inheritsFrom<BaseInterface1>();
130 RegisterAbstractClass(Interface2)orxonox::SI_I& _Interface2Identifier = (*new orxonox::SI_I
(orxonox::registerClass<Interface2>("Interface2", static_cast
<ClassFactory<Interface2>*>(nullptr), false)))
.inheritsFrom<BaseInterface2>();
131 RegisterClassNoArgs(BaseClass)orxonox::SI_I& _BaseClassIdentifier = (*new orxonox::SI_I
(orxonox::registerClass<BaseClass>("BaseClass", new orxonox
::ClassFactoryNoArgs<BaseClass>(), true)))
;
132 RegisterClassNoArgs(Class0)orxonox::SI_I& _Class0Identifier = (*new orxonox::SI_I(orxonox
::registerClass<Class0>("Class0", new orxonox::ClassFactoryNoArgs
<Class0>(), true)))
;
133 RegisterClassNoArgs(Class1)orxonox::SI_I& _Class1Identifier = (*new orxonox::SI_I(orxonox
::registerClass<Class1>("Class1", new orxonox::ClassFactoryNoArgs
<Class1>(), true)))
;
134 RegisterClassNoArgs(Class2a)orxonox::SI_I& _Class2aIdentifier = (*new orxonox::SI_I(orxonox
::registerClass<Class2a>("Class2a", new orxonox::ClassFactoryNoArgs
<Class2a>(), true)))
;
135 RegisterClassNoArgs(Class2b)orxonox::SI_I& _Class2bIdentifier = (*new orxonox::SI_I(orxonox
::registerClass<Class2b>("Class2b", new orxonox::ClassFactoryNoArgs
<Class2b>(), true)))
;
136 RegisterClassNoArgs(Class3)orxonox::SI_I& _Class3Identifier = (*new orxonox::SI_I(orxonox
::registerClass<Class3>("Class3", new orxonox::ClassFactoryNoArgs
<Class3>(), true)))
;
137
138 // Fixture
139 class IdentifierClassHierarchyTest : public ::testing::Test
140 {
141 public:
142 virtual void SetUp() override
143 {
144 new IdentifierManager();
1
Memory is allocated
145 ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
2
Potential memory leak
146 Context::setRootContext(new Context(nullptr));
147 Identifier::initConfigValues_s = false; // TODO: hack!
148 IdentifierManager::getInstance().createClassHierarchy();
149 }
150
151 virtual void TearDown() override
152 {
153 IdentifierManager::getInstance().destroyClassHierarchy();
154 Context::destroyRootContext();
155 ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER);
156 delete &IdentifierManager::getInstance();
157 }
158 };
159
160 bool contains(const std::list<const Identifier*> identifiers, Identifier* identifier)
161 {
162 return std::find(identifiers.begin(), identifiers.end(), identifier) != identifiers.end();
163 }
164
165 bool contains(const std::set<const Identifier*> identifiers, Identifier* identifier)
166 {
167 return identifiers.find(identifier) != identifiers.end();
168 }
169 }
170
171 TEST_F(IdentifierClassHierarchyTest, TestBaseInterface1)class IdentifierClassHierarchyTest_TestBaseInterface1_Test : public
IdentifierClassHierarchyTest { public: IdentifierClassHierarchyTest_TestBaseInterface1_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierClassHierarchyTest_TestBaseInterface1_Test
(IdentifierClassHierarchyTest_TestBaseInterface1_Test const &
); void operator=(IdentifierClassHierarchyTest_TestBaseInterface1_Test
const &);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestBaseInterface1_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestBaseInterface1", __null
, __null, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestBaseInterface1_Test>);void
IdentifierClassHierarchyTest_TestBaseInterface1_Test::TestBody
()
172 {
173 Identifier* identifier = Class(BaseInterface1)orxonox::ClassIdentifier<BaseInterface1>::getIdentifier
()
;
174
175 EXPECT_EQ(2u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2u)) == 1)>::Compare("2u",
"identifier->getDirectChildren().size()", 2u, identifier->
getDirectChildren().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 175, gtest_ar.failure_message()) = ::testing::Message()
;
176 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Interface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Interface1>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 176, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Interface1))"
, "false", "true").c_str()) = ::testing::Message()
;
177 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class3)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class3>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 177, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class3))"
, "false", "true").c_str()) = ::testing::Message()
;
178
179 EXPECT_EQ(5u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(5u)) == 1)>::Compare("5u",
"identifier->getChildren().size()", 5u, identifier->getChildren
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 179, gtest_ar.failure_message()) = ::testing::Message()
;
180 EXPECT_TRUE(contains(identifier->getChildren(), Class(Interface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Interface1>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 180, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Interface1))"
, "false", "true").c_str()) = ::testing::Message()
;
181 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class3)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class3>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 181, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class3))", "false"
, "true").c_str()) = ::testing::Message()
;
182 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class1>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 182, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class1))", "false"
, "true").c_str()) = ::testing::Message()
;
183 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2a)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2a>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 183, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2a))", "false"
, "true").c_str()) = ::testing::Message()
;
184 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2b)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2b>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 184, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2b))", "false"
, "true").c_str()) = ::testing::Message()
;
185
186 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/IdentifierClassHierarchyTest.cc"
, 186, gtest_ar.failure_message()) = ::testing::Message()
;
187 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<OrxonoxInterface
>::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 187, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
188
189 EXPECT_EQ(4u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(4u)) == 1)>::Compare("4u",
"identifier->getParents().size()", 4u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 189, gtest_ar.failure_message()) = ::testing::Message()
;
190 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/IdentifierClassHierarchyTest.cc"
, 190, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
191 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 191, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
192 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 192, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
193 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxInterface>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 193, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
194 }
195
196 TEST_F(IdentifierClassHierarchyTest, TestBaseInterface2)class IdentifierClassHierarchyTest_TestBaseInterface2_Test : public
IdentifierClassHierarchyTest { public: IdentifierClassHierarchyTest_TestBaseInterface2_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierClassHierarchyTest_TestBaseInterface2_Test
(IdentifierClassHierarchyTest_TestBaseInterface2_Test const &
); void operator=(IdentifierClassHierarchyTest_TestBaseInterface2_Test
const &);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestBaseInterface2_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestBaseInterface2", __null
, __null, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestBaseInterface2_Test>);void
IdentifierClassHierarchyTest_TestBaseInterface2_Test::TestBody
()
197 {
198 Identifier* identifier = Class(BaseInterface2)orxonox::ClassIdentifier<BaseInterface2>::getIdentifier
()
;
199
200 EXPECT_EQ(2u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2u)) == 1)>::Compare("2u",
"identifier->getDirectChildren().size()", 2u, identifier->
getDirectChildren().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 200, gtest_ar.failure_message()) = ::testing::Message()
;
201 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Interface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Interface2>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 201, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Interface2))"
, "false", "true").c_str()) = ::testing::Message()
;
202 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class3)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class3>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 202, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class3))"
, "false", "true").c_str()) = ::testing::Message()
;
203
204 EXPECT_EQ(4u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(4u)) == 1)>::Compare("4u",
"identifier->getChildren().size()", 4u, identifier->getChildren
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 204, gtest_ar.failure_message()) = ::testing::Message()
;
205 EXPECT_TRUE(contains(identifier->getChildren(), Class(Interface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Interface2>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 205, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Interface2))"
, "false", "true").c_str()) = ::testing::Message()
;
206 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class3)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class3>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 206, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class3))", "false"
, "true").c_str()) = ::testing::Message()
;
207 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2a)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2a>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 207, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2a))", "false"
, "true").c_str()) = ::testing::Message()
;
208 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2b)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2b>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 208, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2b))", "false"
, "true").c_str()) = ::testing::Message()
;
209
210 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/IdentifierClassHierarchyTest.cc"
, 210, gtest_ar.failure_message()) = ::testing::Message()
;
211 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<OrxonoxInterface
>::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 211, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
212
213 EXPECT_EQ(4u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(4u)) == 1)>::Compare("4u",
"identifier->getParents().size()", 4u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 213, gtest_ar.failure_message()) = ::testing::Message()
;
214 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/IdentifierClassHierarchyTest.cc"
, 214, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
215 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 215, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
216 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 216, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
217 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxInterface>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 217, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
218 }
219
220 TEST_F(IdentifierClassHierarchyTest, TestInterface1)class IdentifierClassHierarchyTest_TestInterface1_Test : public
IdentifierClassHierarchyTest { public: IdentifierClassHierarchyTest_TestInterface1_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierClassHierarchyTest_TestInterface1_Test
(IdentifierClassHierarchyTest_TestInterface1_Test const &
); void operator=(IdentifierClassHierarchyTest_TestInterface1_Test
const &);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestInterface1_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestInterface1", __null, __null
, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestInterface1_Test>);void IdentifierClassHierarchyTest_TestInterface1_Test
::TestBody()
221 {
222 Identifier* identifier = Class(Interface1)orxonox::ClassIdentifier<Interface1>::getIdentifier();
223
224 EXPECT_EQ(3u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3u)) == 1)>::Compare("3u",
"identifier->getDirectChildren().size()", 3u, identifier->
getDirectChildren().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 224, gtest_ar.failure_message()) = ::testing::Message()
;
225 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class1>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 225, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class1))"
, "false", "true").c_str()) = ::testing::Message()
;
226 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class2a)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class2a>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 226, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class2a))"
, "false", "true").c_str()) = ::testing::Message()
;
227 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class2b)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class2b>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 227, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class2b))"
, "false", "true").c_str()) = ::testing::Message()
;
228
229 EXPECT_EQ(3u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3u)) == 1)>::Compare("3u",
"identifier->getChildren().size()", 3u, identifier->getChildren
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 229, gtest_ar.failure_message()) = ::testing::Message()
;
230 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class1>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 230, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class1))", "false"
, "true").c_str()) = ::testing::Message()
;
231 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2a)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2a>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 231, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2a))", "false"
, "true").c_str()) = ::testing::Message()
;
232 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2b)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2b>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 232, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2b))", "false"
, "true").c_str()) = ::testing::Message()
;
233
234 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/IdentifierClassHierarchyTest.cc"
, 234, gtest_ar.failure_message()) = ::testing::Message()
;
235 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(BaseInterface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<BaseInterface1
>::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 235, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseInterface1))"
, "false", "true").c_str()) = ::testing::Message()
;
236
237 EXPECT_EQ(5u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(5u)) == 1)>::Compare("5u",
"identifier->getParents().size()", 5u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 237, gtest_ar.failure_message()) = ::testing::Message()
;
238 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/IdentifierClassHierarchyTest.cc"
, 238, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
239 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 239, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
240 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 240, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
241 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxInterface>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 241, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
242 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseInterface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseInterface1>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 242, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseInterface1))"
, "false", "true").c_str()) = ::testing::Message()
;
243 }
244
245 TEST_F(IdentifierClassHierarchyTest, TestInterface2)class IdentifierClassHierarchyTest_TestInterface2_Test : public
IdentifierClassHierarchyTest { public: IdentifierClassHierarchyTest_TestInterface2_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierClassHierarchyTest_TestInterface2_Test
(IdentifierClassHierarchyTest_TestInterface2_Test const &
); void operator=(IdentifierClassHierarchyTest_TestInterface2_Test
const &);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestInterface2_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestInterface2", __null, __null
, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestInterface2_Test>);void IdentifierClassHierarchyTest_TestInterface2_Test
::TestBody()
246 {
247 Identifier* identifier = Class(Interface2)orxonox::ClassIdentifier<Interface2>::getIdentifier();
248
249 EXPECT_EQ(2u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2u)) == 1)>::Compare("2u",
"identifier->getDirectChildren().size()", 2u, identifier->
getDirectChildren().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 249, gtest_ar.failure_message()) = ::testing::Message()
;
250 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class2a)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class2a>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 250, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class2a))"
, "false", "true").c_str()) = ::testing::Message()
;
251 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class2b)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class2b>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 251, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class2b))"
, "false", "true").c_str()) = ::testing::Message()
;
252
253 EXPECT_EQ(2u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(2u)) == 1)>::Compare("2u",
"identifier->getChildren().size()", 2u, identifier->getChildren
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 253, gtest_ar.failure_message()) = ::testing::Message()
;
254 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2a)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2a>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 254, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2a))", "false"
, "true").c_str()) = ::testing::Message()
;
255 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2b)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2b>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 255, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2b))", "false"
, "true").c_str()) = ::testing::Message()
;
256
257 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/IdentifierClassHierarchyTest.cc"
, 257, gtest_ar.failure_message()) = ::testing::Message()
;
258 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(BaseInterface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<BaseInterface2
>::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 258, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseInterface2))"
, "false", "true").c_str()) = ::testing::Message()
;
259
260 EXPECT_EQ(5u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(5u)) == 1)>::Compare("5u",
"identifier->getParents().size()", 5u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 260, gtest_ar.failure_message()) = ::testing::Message()
;
261 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/IdentifierClassHierarchyTest.cc"
, 261, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
262 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 262, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
263 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 263, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
264 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxInterface>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 264, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
265 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseInterface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseInterface2>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 265, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseInterface2))"
, "false", "true").c_str()) = ::testing::Message()
;
266 }
267
268 TEST_F(IdentifierClassHierarchyTest, TestBaseClass)class IdentifierClassHierarchyTest_TestBaseClass_Test : public
IdentifierClassHierarchyTest { public: IdentifierClassHierarchyTest_TestBaseClass_Test
() {} private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierClassHierarchyTest_TestBaseClass_Test
(IdentifierClassHierarchyTest_TestBaseClass_Test const &)
; void operator=(IdentifierClassHierarchyTest_TestBaseClass_Test
const &);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestBaseClass_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestBaseClass", __null, __null
, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestBaseClass_Test>);void IdentifierClassHierarchyTest_TestBaseClass_Test
::TestBody()
269 {
270 Identifier* identifier = Class(BaseClass)orxonox::ClassIdentifier<BaseClass>::getIdentifier();
271
272 EXPECT_EQ(5u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(5u)) == 1)>::Compare("5u",
"identifier->getDirectChildren().size()", 5u, identifier->
getDirectChildren().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 272, gtest_ar.failure_message()) = ::testing::Message()
;
273 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class0>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 273, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class0))"
, "false", "true").c_str()) = ::testing::Message()
;
274 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class1>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 274, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class1))"
, "false", "true").c_str()) = ::testing::Message()
;
275 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class2a)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class2a>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 275, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class2a))"
, "false", "true").c_str()) = ::testing::Message()
;
276 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class2b)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class2b>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 276, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class2b))"
, "false", "true").c_str()) = ::testing::Message()
;
277 EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class3)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectChildren(), orxonox::ClassIdentifier<Class3>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 277, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectChildren(), Class(Class3))"
, "false", "true").c_str()) = ::testing::Message()
;
278
279 EXPECT_EQ(5u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(5u)) == 1)>::Compare("5u",
"identifier->getChildren().size()", 5u, identifier->getChildren
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 279, gtest_ar.failure_message()) = ::testing::Message()
;
280 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class0)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class0>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 280, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class0))", "false"
, "true").c_str()) = ::testing::Message()
;
281 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class1>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 281, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class1))", "false"
, "true").c_str()) = ::testing::Message()
;
282 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2a)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2a>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 282, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2a))", "false"
, "true").c_str()) = ::testing::Message()
;
283 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2b)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class2b>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 283, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class2b))", "false"
, "true").c_str()) = ::testing::Message()
;
284 EXPECT_TRUE(contains(identifier->getChildren(), Class(Class3)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getChildren(), orxonox::ClassIdentifier<Class3>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 284, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getChildren(), Class(Class3))", "false"
, "true").c_str()) = ::testing::Message()
;
285
286 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/IdentifierClassHierarchyTest.cc"
, 286, gtest_ar.failure_message()) = ::testing::Message()
;
287 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(OrxonoxClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<OrxonoxClass>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 287, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(OrxonoxClass))"
, "false", "true").c_str()) = ::testing::Message()
;
288
289 EXPECT_EQ(4u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(4u)) == 1)>::Compare("4u",
"identifier->getParents().size()", 4u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 289, gtest_ar.failure_message()) = ::testing::Message()
;
290 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/IdentifierClassHierarchyTest.cc"
, 290, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
291 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 291, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
292 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 292, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
293 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxClass>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 293, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxClass))"
, "false", "true").c_str()) = ::testing::Message()
;
294 }
295
296 TEST_F(IdentifierClassHierarchyTest, TestClass0)class IdentifierClassHierarchyTest_TestClass0_Test : public IdentifierClassHierarchyTest
{ public: IdentifierClassHierarchyTest_TestClass0_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); IdentifierClassHierarchyTest_TestClass0_Test
(IdentifierClassHierarchyTest_TestClass0_Test const &); void
operator=(IdentifierClassHierarchyTest_TestClass0_Test const
&);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestClass0_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestClass0", __null, __null
, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestClass0_Test>);void IdentifierClassHierarchyTest_TestClass0_Test
::TestBody()
297 {
298 Identifier* identifier = Class(Class0)orxonox::ClassIdentifier<Class0>::getIdentifier();
299
300 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/IdentifierClassHierarchyTest.cc"
, 300, gtest_ar.failure_message()) = ::testing::Message()
;
301
302 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/IdentifierClassHierarchyTest.cc"
, 302, gtest_ar.failure_message()) = ::testing::Message()
;
303
304 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/IdentifierClassHierarchyTest.cc"
, 304, gtest_ar.failure_message()) = ::testing::Message()
;
305 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/IdentifierClassHierarchyTest.cc"
, 305, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseClass))"
, "false", "true").c_str()) = ::testing::Message()
;
306
307 EXPECT_EQ(5u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(5u)) == 1)>::Compare("5u",
"identifier->getParents().size()", 5u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 307, gtest_ar.failure_message()) = ::testing::Message()
;
308 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/IdentifierClassHierarchyTest.cc"
, 308, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
309 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 309, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
310 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 310, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
311 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxClass>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 311, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxClass))"
, "false", "true").c_str()) = ::testing::Message()
;
312 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/IdentifierClassHierarchyTest.cc"
, 312, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseClass))", "false"
, "true").c_str()) = ::testing::Message()
;
313 }
314
315 TEST_F(IdentifierClassHierarchyTest, TestClass1)class IdentifierClassHierarchyTest_TestClass1_Test : public IdentifierClassHierarchyTest
{ public: IdentifierClassHierarchyTest_TestClass1_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); IdentifierClassHierarchyTest_TestClass1_Test
(IdentifierClassHierarchyTest_TestClass1_Test const &); void
operator=(IdentifierClassHierarchyTest_TestClass1_Test const
&);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestClass1_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestClass1", __null, __null
, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestClass1_Test>);void IdentifierClassHierarchyTest_TestClass1_Test
::TestBody()
316 {
317 Identifier* identifier = Class(Class1)orxonox::ClassIdentifier<Class1>::getIdentifier();
318
319 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/IdentifierClassHierarchyTest.cc"
, 319, gtest_ar.failure_message()) = ::testing::Message()
;
320
321 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/IdentifierClassHierarchyTest.cc"
, 321, gtest_ar.failure_message()) = ::testing::Message()
;
322
323 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/IdentifierClassHierarchyTest.cc"
, 323, gtest_ar.failure_message()) = ::testing::Message()
;
324 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/IdentifierClassHierarchyTest.cc"
, 324, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseClass))"
, "false", "true").c_str()) = ::testing::Message()
;
325 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Interface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<Interface1>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 325, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(Interface1))"
, "false", "true").c_str()) = ::testing::Message()
;
326
327 EXPECT_EQ(8u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(8u)) == 1)>::Compare("8u",
"identifier->getParents().size()", 8u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 327, gtest_ar.failure_message()) = ::testing::Message()
;
328 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/IdentifierClassHierarchyTest.cc"
, 328, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
329 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 329, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
330 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 330, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
331 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxClass>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 331, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxClass))"
, "false", "true").c_str()) = ::testing::Message()
;
332 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/IdentifierClassHierarchyTest.cc"
, 332, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseClass))", "false"
, "true").c_str()) = ::testing::Message()
;
333 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxInterface>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 333, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
334 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseInterface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseInterface1>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 334, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseInterface1))"
, "false", "true").c_str()) = ::testing::Message()
;
335 EXPECT_TRUE(contains(identifier->getParents(), Class(Interface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Interface1>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 335, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Interface1))",
"false", "true").c_str()) = ::testing::Message()
;
336 }
337
338 TEST_F(IdentifierClassHierarchyTest, TestClass2a)class IdentifierClassHierarchyTest_TestClass2a_Test : public IdentifierClassHierarchyTest
{ public: IdentifierClassHierarchyTest_TestClass2a_Test() {}
private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierClassHierarchyTest_TestClass2a_Test
(IdentifierClassHierarchyTest_TestClass2a_Test const &); void
operator=(IdentifierClassHierarchyTest_TestClass2a_Test const
&);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestClass2a_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestClass2a", __null, __null
, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestClass2a_Test>);void IdentifierClassHierarchyTest_TestClass2a_Test
::TestBody()
339 {
340 Identifier* identifier = Class(Class2a)orxonox::ClassIdentifier<Class2a>::getIdentifier();
341
342 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/IdentifierClassHierarchyTest.cc"
, 342, gtest_ar.failure_message()) = ::testing::Message()
;
343
344 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/IdentifierClassHierarchyTest.cc"
, 344, gtest_ar.failure_message()) = ::testing::Message()
;
345
346 EXPECT_EQ(3u, identifier->getDirectParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3u)) == 1)>::Compare("3u",
"identifier->getDirectParents().size()", 3u, identifier->
getDirectParents().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 346, gtest_ar.failure_message()) = ::testing::Message()
;
347 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/IdentifierClassHierarchyTest.cc"
, 347, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseClass))"
, "false", "true").c_str()) = ::testing::Message()
;
348 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Interface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<Interface1>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 348, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(Interface1))"
, "false", "true").c_str()) = ::testing::Message()
;
349 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Interface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<Interface2>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 349, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(Interface2))"
, "false", "true").c_str()) = ::testing::Message()
;
350
351 EXPECT_EQ(10u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(10u)) == 1)>::Compare("10u"
, "identifier->getParents().size()", 10u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 351, gtest_ar.failure_message()) = ::testing::Message()
;
352 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/IdentifierClassHierarchyTest.cc"
, 352, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
353 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 353, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
354 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 354, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
355 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxClass>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 355, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxClass))"
, "false", "true").c_str()) = ::testing::Message()
;
356 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/IdentifierClassHierarchyTest.cc"
, 356, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseClass))", "false"
, "true").c_str()) = ::testing::Message()
;
357 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxInterface>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 357, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
358 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseInterface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseInterface1>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 358, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseInterface1))"
, "false", "true").c_str()) = ::testing::Message()
;
359 EXPECT_TRUE(contains(identifier->getParents(), Class(Interface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Interface1>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 359, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Interface1))",
"false", "true").c_str()) = ::testing::Message()
;
360 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseInterface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseInterface2>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 360, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseInterface2))"
, "false", "true").c_str()) = ::testing::Message()
;
361 EXPECT_TRUE(contains(identifier->getParents(), Class(Interface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Interface2>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 361, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Interface2))",
"false", "true").c_str()) = ::testing::Message()
;
362 }
363
364 TEST_F(IdentifierClassHierarchyTest, TestClass2b)class IdentifierClassHierarchyTest_TestClass2b_Test : public IdentifierClassHierarchyTest
{ public: IdentifierClassHierarchyTest_TestClass2b_Test() {}
private: virtual void TestBody(); static ::testing::TestInfo
* const test_info_ __attribute__ ((unused)); IdentifierClassHierarchyTest_TestClass2b_Test
(IdentifierClassHierarchyTest_TestClass2b_Test const &); void
operator=(IdentifierClassHierarchyTest_TestClass2b_Test const
&);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestClass2b_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestClass2b", __null, __null
, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestClass2b_Test>);void IdentifierClassHierarchyTest_TestClass2b_Test
::TestBody()
365 {
366 Identifier* identifier = Class(Class2b)orxonox::ClassIdentifier<Class2b>::getIdentifier();
367
368 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/IdentifierClassHierarchyTest.cc"
, 368, gtest_ar.failure_message()) = ::testing::Message()
;
369
370 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/IdentifierClassHierarchyTest.cc"
, 370, gtest_ar.failure_message()) = ::testing::Message()
;
371
372 EXPECT_EQ(3u, identifier->getDirectParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3u)) == 1)>::Compare("3u",
"identifier->getDirectParents().size()", 3u, identifier->
getDirectParents().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 372, gtest_ar.failure_message()) = ::testing::Message()
;
373 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/IdentifierClassHierarchyTest.cc"
, 373, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseClass))"
, "false", "true").c_str()) = ::testing::Message()
;
374 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Interface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<Interface1>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 374, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(Interface1))"
, "false", "true").c_str()) = ::testing::Message()
;
375 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Interface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<Interface2>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 375, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(Interface2))"
, "false", "true").c_str()) = ::testing::Message()
;
376
377 EXPECT_EQ(10u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(10u)) == 1)>::Compare("10u"
, "identifier->getParents().size()", 10u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 377, gtest_ar.failure_message()) = ::testing::Message()
;
378 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/IdentifierClassHierarchyTest.cc"
, 378, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
379 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 379, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
380 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 380, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
381 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxClass>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 381, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxClass))"
, "false", "true").c_str()) = ::testing::Message()
;
382 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/IdentifierClassHierarchyTest.cc"
, 382, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseClass))", "false"
, "true").c_str()) = ::testing::Message()
;
383 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxInterface>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 383, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
384 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseInterface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseInterface1>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 384, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseInterface1))"
, "false", "true").c_str()) = ::testing::Message()
;
385 EXPECT_TRUE(contains(identifier->getParents(), Class(Interface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Interface1>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 385, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Interface1))",
"false", "true").c_str()) = ::testing::Message()
;
386 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseInterface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseInterface2>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 386, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseInterface2))"
, "false", "true").c_str()) = ::testing::Message()
;
387 EXPECT_TRUE(contains(identifier->getParents(), Class(Interface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Interface2>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 387, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Interface2))",
"false", "true").c_str()) = ::testing::Message()
;
388 }
389
390 TEST_F(IdentifierClassHierarchyTest, TestClass3)class IdentifierClassHierarchyTest_TestClass3_Test : public IdentifierClassHierarchyTest
{ public: IdentifierClassHierarchyTest_TestClass3_Test() {} private
: virtual void TestBody(); static ::testing::TestInfo* const test_info_
__attribute__ ((unused)); IdentifierClassHierarchyTest_TestClass3_Test
(IdentifierClassHierarchyTest_TestClass3_Test const &); void
operator=(IdentifierClassHierarchyTest_TestClass3_Test const
&);};::testing::TestInfo* const IdentifierClassHierarchyTest_TestClass3_Test
::test_info_ = ::testing::internal::MakeAndRegisterTestInfo(
"IdentifierClassHierarchyTest", "TestClass3", __null, __null
, (::testing::internal::GetTypeId<IdentifierClassHierarchyTest
>()), IdentifierClassHierarchyTest::SetUpTestCase, IdentifierClassHierarchyTest
::TearDownTestCase, new ::testing::internal::TestFactoryImpl<
IdentifierClassHierarchyTest_TestClass3_Test>);void IdentifierClassHierarchyTest_TestClass3_Test
::TestBody()
391 {
392 Identifier* identifier = Class(Class3)orxonox::ClassIdentifier<Class3>::getIdentifier();
393
394 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/IdentifierClassHierarchyTest.cc"
, 394, gtest_ar.failure_message()) = ::testing::Message()
;
395
396 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/IdentifierClassHierarchyTest.cc"
, 396, gtest_ar.failure_message()) = ::testing::Message()
;
397
398 EXPECT_EQ(3u, identifier->getDirectParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(3u)) == 1)>::Compare("3u",
"identifier->getDirectParents().size()", 3u, identifier->
getDirectParents().size()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 398, gtest_ar.failure_message()) = ::testing::Message()
;
399 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/IdentifierClassHierarchyTest.cc"
, 399, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseClass))"
, "false", "true").c_str()) = ::testing::Message()
;
400 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(BaseInterface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<BaseInterface1
>::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 400, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseInterface1))"
, "false", "true").c_str()) = ::testing::Message()
;
401 EXPECT_TRUE(contains(identifier->getDirectParents(), Class(BaseInterface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getDirectParents(), orxonox::ClassIdentifier<BaseInterface2
>::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 401, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getDirectParents(), Class(BaseInterface2))"
, "false", "true").c_str()) = ::testing::Message()
;
402
403 EXPECT_EQ(8u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing
::internal::IsNullLiteralHelper(8u)) == 1)>::Compare("8u",
"identifier->getParents().size()", 8u, identifier->getParents
().size()))) ; else ::testing::internal::AssertHelper(::testing
::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 403, gtest_ar.failure_message()) = ::testing::Message()
;
404 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/IdentifierClassHierarchyTest.cc"
, 404, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Identifiable))"
, "false", "true").c_str()) = ::testing::Message()
;
405 EXPECT_TRUE(contains(identifier->getParents(), Class(Listable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Listable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 405, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Listable))", "false"
, "true").c_str()) = ::testing::Message()
;
406 EXPECT_TRUE(contains(identifier->getParents(), Class(Configurable)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<Configurable>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 406, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(Configurable))"
, "false", "true").c_str()) = ::testing::Message()
;
407 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxClass)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxClass>::getIdentifier
()))) ; else ::testing::internal::AssertHelper(::testing::TestPartResult
::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 407, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxClass))"
, "false", "true").c_str()) = ::testing::Message()
;
408 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/IdentifierClassHierarchyTest.cc"
, 408, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseClass))", "false"
, "true").c_str()) = ::testing::Message()
;
409 EXPECT_TRUE(contains(identifier->getParents(), Class(OrxonoxInterface)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<OrxonoxInterface>
::getIdentifier()))) ; else ::testing::internal::AssertHelper
(::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 409, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(OrxonoxInterface))"
, "false", "true").c_str()) = ::testing::Message()
;
410 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseInterface1)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseInterface1>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 410, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseInterface1))"
, "false", "true").c_str()) = ::testing::Message()
;
411 EXPECT_TRUE(contains(identifier->getParents(), Class(BaseInterface2)))switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar_ = ::testing::AssertionResult(contains(identifier->
getParents(), orxonox::ClassIdentifier<BaseInterface2>::
getIdentifier()))) ; else ::testing::internal::AssertHelper(::
testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierClassHierarchyTest.cc"
, 411, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_
, "contains(identifier->getParents(), Class(BaseInterface2))"
, "false", "true").c_str()) = ::testing::Message()
;
412 }
413}