File: | core/class/IdentifierNestedClassHierarchyTest.cc |
Location: | line 112, column 21 |
Description: | Potential memory leak |
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 | ||||
8 | namespace orxonox | |||
9 | { | |||
10 | // Tests the class hierarchy with classes that contain other classes as members. | |||
11 | // | |||
12 | // +------ Nested1 +------ Class1_notNested | |||
13 | // +------ Nested2 +------ Class2_oneNested | |||
14 | // OrxonoxClass <-----+------ BaseClass <-----+------ Class3_twoNested <----------- Class3_Child | |||
15 | // +------ Class4_class1Nested | |||
16 | // +------ Class5_class2Nested | |||
17 | // +------ Class6_class3Nested <-------- Class6_Child | |||
18 | ||||
19 | namespace | |||
20 | { | |||
21 | class Nested1 : public OrxonoxClass | |||
22 | { | |||
23 | public: | |||
24 | Nested1() { RegisterObject(Nested1)if (ClassIdentifier<Nested1>::getIdentifier()->initializeObject (this)) return; else ((void)0); } | |||
25 | }; | |||
26 | ||||
27 | class Nested2 : public OrxonoxClass | |||
28 | { | |||
29 | public: | |||
30 | Nested2() { RegisterObject(Nested2)if (ClassIdentifier<Nested2>::getIdentifier()->initializeObject (this)) return; else ((void)0); } | |||
31 | }; | |||
32 | ||||
33 | class BaseClass : public OrxonoxClass | |||
34 | { | |||
35 | public: | |||
36 | BaseClass() { RegisterObject(BaseClass)if (ClassIdentifier<BaseClass>::getIdentifier()->initializeObject (this)) return; else ((void)0); } | |||
37 | }; | |||
38 | ||||
39 | class Class1_notNested : public BaseClass | |||
40 | { | |||
41 | public: | |||
42 | Class1_notNested() { RegisterObject(Class1_notNested)if (ClassIdentifier<Class1_notNested>::getIdentifier()-> initializeObject(this)) return; else ((void)0); } | |||
43 | }; | |||
44 | ||||
45 | class Class2_oneNested : public BaseClass | |||
46 | { | |||
47 | public: | |||
48 | Class2_oneNested() { RegisterObject(Class2_oneNested)if (ClassIdentifier<Class2_oneNested>::getIdentifier()-> initializeObject(this)) return; else ((void)0); } | |||
49 | Nested1 nested1_; | |||
50 | }; | |||
51 | ||||
52 | class Class3_twoNested : public BaseClass | |||
53 | { | |||
54 | public: | |||
55 | Class3_twoNested() { RegisterObject(Class3_twoNested)if (ClassIdentifier<Class3_twoNested>::getIdentifier()-> initializeObject(this)) return; else ((void)0); } | |||
56 | Nested1 nested1_; | |||
57 | Nested2 nested2_; | |||
58 | }; | |||
59 | ||||
60 | class Class4_class1Nested : public BaseClass | |||
61 | { | |||
62 | public: | |||
63 | Class4_class1Nested() { RegisterObject(Class4_class1Nested)if (ClassIdentifier<Class4_class1Nested>::getIdentifier ()->initializeObject(this)) return; else ((void)0); } | |||
64 | Class1_notNested nested_; | |||
65 | }; | |||
66 | ||||
67 | class Class5_class2Nested : public BaseClass | |||
68 | { | |||
69 | public: | |||
70 | Class5_class2Nested() { RegisterObject(Class5_class2Nested)if (ClassIdentifier<Class5_class2Nested>::getIdentifier ()->initializeObject(this)) return; else ((void)0); } | |||
71 | Class2_oneNested nested_; | |||
72 | }; | |||
73 | ||||
74 | class Class6_class3Nested : public BaseClass | |||
75 | { | |||
76 | public: | |||
77 | Class6_class3Nested() { RegisterObject(Class6_class3Nested)if (ClassIdentifier<Class6_class3Nested>::getIdentifier ()->initializeObject(this)) return; else ((void)0); } | |||
78 | Class3_twoNested nested_; | |||
79 | }; | |||
80 | ||||
81 | class Class3_Child : public Class3_twoNested | |||
82 | { | |||
83 | public: | |||
84 | Class3_Child() { RegisterObject(Class3_Child)if (ClassIdentifier<Class3_Child>::getIdentifier()-> initializeObject(this)) return; else ((void)0); } | |||
85 | }; | |||
86 | ||||
87 | class Class6_Child : public Class6_class3Nested | |||
88 | { | |||
89 | public: | |||
90 | Class6_Child() { RegisterObject(Class6_Child)if (ClassIdentifier<Class6_Child>::getIdentifier()-> initializeObject(this)) return; else ((void)0); } | |||
91 | }; | |||
92 | ||||
93 | RegisterClassNoArgs(Nested1)orxonox::SI_I& _Nested1Identifier = (*new orxonox::SI_I(orxonox ::registerClass<Nested1>("Nested1", new orxonox::ClassFactoryNoArgs <Nested1>(), true))); | |||
94 | RegisterClassNoArgs(Nested2)orxonox::SI_I& _Nested2Identifier = (*new orxonox::SI_I(orxonox ::registerClass<Nested2>("Nested2", new orxonox::ClassFactoryNoArgs <Nested2>(), true))); | |||
95 | RegisterClassNoArgs(BaseClass)orxonox::SI_I& _BaseClassIdentifier = (*new orxonox::SI_I (orxonox::registerClass<BaseClass>("BaseClass", new orxonox ::ClassFactoryNoArgs<BaseClass>(), true))); | |||
96 | RegisterClassNoArgs(Class1_notNested)orxonox::SI_I& _Class1_notNestedIdentifier = (*new orxonox ::SI_I(orxonox::registerClass<Class1_notNested>("Class1_notNested" , new orxonox::ClassFactoryNoArgs<Class1_notNested>(), true ))); | |||
97 | RegisterClassNoArgs(Class2_oneNested)orxonox::SI_I& _Class2_oneNestedIdentifier = (*new orxonox ::SI_I(orxonox::registerClass<Class2_oneNested>("Class2_oneNested" , new orxonox::ClassFactoryNoArgs<Class2_oneNested>(), true ))); | |||
98 | RegisterClassNoArgs(Class3_twoNested)orxonox::SI_I& _Class3_twoNestedIdentifier = (*new orxonox ::SI_I(orxonox::registerClass<Class3_twoNested>("Class3_twoNested" , new orxonox::ClassFactoryNoArgs<Class3_twoNested>(), true ))); | |||
99 | RegisterClassNoArgs(Class4_class1Nested)orxonox::SI_I& _Class4_class1NestedIdentifier = (*new orxonox ::SI_I(orxonox::registerClass<Class4_class1Nested>("Class4_class1Nested" , new orxonox::ClassFactoryNoArgs<Class4_class1Nested>( ), true))); | |||
100 | RegisterClassNoArgs(Class5_class2Nested)orxonox::SI_I& _Class5_class2NestedIdentifier = (*new orxonox ::SI_I(orxonox::registerClass<Class5_class2Nested>("Class5_class2Nested" , new orxonox::ClassFactoryNoArgs<Class5_class2Nested>( ), true))); | |||
101 | RegisterClassNoArgs(Class6_class3Nested)orxonox::SI_I& _Class6_class3NestedIdentifier = (*new orxonox ::SI_I(orxonox::registerClass<Class6_class3Nested>("Class6_class3Nested" , new orxonox::ClassFactoryNoArgs<Class6_class3Nested>( ), true))); | |||
102 | RegisterClassNoArgs(Class3_Child)orxonox::SI_I& _Class3_ChildIdentifier = (*new orxonox::SI_I (orxonox::registerClass<Class3_Child>("Class3_Child", new orxonox::ClassFactoryNoArgs<Class3_Child>(), true))); | |||
103 | RegisterClassNoArgs(Class6_Child)orxonox::SI_I& _Class6_ChildIdentifier = (*new orxonox::SI_I (orxonox::registerClass<Class6_Child>("Class6_Child", new orxonox::ClassFactoryNoArgs<Class6_Child>(), true))); | |||
104 | ||||
105 | // Fixture | |||
106 | class IdentifierNestedClassHierarchyTest : public ::testing::Test | |||
107 | { | |||
108 | public: | |||
109 | virtual void SetUp() override | |||
110 | { | |||
111 | new IdentifierManager(); | |||
| ||||
112 | ModuleInstance::getCurrentModuleInstance()->loadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); | |||
| ||||
113 | Context::setRootContext(new Context(nullptr)); | |||
114 | Identifier::initConfigValues_s = false; // TODO: hack! | |||
115 | IdentifierManager::getInstance().createClassHierarchy(); | |||
116 | } | |||
117 | ||||
118 | virtual void TearDown() override | |||
119 | { | |||
120 | IdentifierManager::getInstance().destroyClassHierarchy(); | |||
121 | Context::destroyRootContext(); | |||
122 | ModuleInstance::getCurrentModuleInstance()->unloadAllStaticallyInitializedInstances(StaticInitialization::IDENTIFIER); | |||
123 | delete &IdentifierManager::getInstance(); | |||
124 | } | |||
125 | }; | |||
126 | ||||
127 | bool contains(const std::list<const Identifier*> identifiers, Identifier* identifier) | |||
128 | { | |||
129 | return std::find(identifiers.begin(), identifiers.end(), identifier) != identifiers.end(); | |||
130 | } | |||
131 | ||||
132 | bool contains(const std::set<const Identifier*> identifiers, Identifier* identifier) | |||
133 | { | |||
134 | return identifiers.find(identifier) != identifiers.end(); | |||
135 | } | |||
136 | } | |||
137 | ||||
138 | TEST_F(IdentifierNestedClassHierarchyTest, TestNested1)class IdentifierNestedClassHierarchyTest_TestNested1_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestNested1_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestNested1_Test (IdentifierNestedClassHierarchyTest_TestNested1_Test const & ); void operator=(IdentifierNestedClassHierarchyTest_TestNested1_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestNested1_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestNested1", __null, __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestNested1_Test>);void IdentifierNestedClassHierarchyTest_TestNested1_Test::TestBody () | |||
139 | { | |||
140 | Identifier* identifier = Class(Nested1)orxonox::ClassIdentifier<Nested1>::getIdentifier(); | |||
141 | ||||
142 | 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/IdentifierNestedClassHierarchyTest.cc" , 142, gtest_ar.failure_message()) = ::testing::Message(); | |||
143 | 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/IdentifierNestedClassHierarchyTest.cc" , 143, gtest_ar.failure_message()) = ::testing::Message(); | |||
144 | ||||
145 | 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/IdentifierNestedClassHierarchyTest.cc" , 145, gtest_ar.failure_message()) = ::testing::Message(); | |||
146 | 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/IdentifierNestedClassHierarchyTest.cc" , 146, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
147 | ||||
148 | 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/IdentifierNestedClassHierarchyTest.cc" , 148, gtest_ar.failure_message()) = ::testing::Message(); | |||
149 | 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/IdentifierNestedClassHierarchyTest.cc" , 149, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
150 | 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/IdentifierNestedClassHierarchyTest.cc" , 150, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
151 | 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/IdentifierNestedClassHierarchyTest.cc" , 151, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
152 | 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/IdentifierNestedClassHierarchyTest.cc" , 152, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
153 | } | |||
154 | ||||
155 | TEST_F(IdentifierNestedClassHierarchyTest, TestNested2)class IdentifierNestedClassHierarchyTest_TestNested2_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestNested2_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestNested2_Test (IdentifierNestedClassHierarchyTest_TestNested2_Test const & ); void operator=(IdentifierNestedClassHierarchyTest_TestNested2_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestNested2_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestNested2", __null, __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestNested2_Test>);void IdentifierNestedClassHierarchyTest_TestNested2_Test::TestBody () | |||
156 | { | |||
157 | Identifier* identifier = Class(Nested2)orxonox::ClassIdentifier<Nested2>::getIdentifier(); | |||
158 | ||||
159 | 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/IdentifierNestedClassHierarchyTest.cc" , 159, gtest_ar.failure_message()) = ::testing::Message(); | |||
160 | 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/IdentifierNestedClassHierarchyTest.cc" , 160, gtest_ar.failure_message()) = ::testing::Message(); | |||
161 | ||||
162 | 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/IdentifierNestedClassHierarchyTest.cc" , 162, gtest_ar.failure_message()) = ::testing::Message(); | |||
163 | 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/IdentifierNestedClassHierarchyTest.cc" , 163, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
164 | ||||
165 | 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/IdentifierNestedClassHierarchyTest.cc" , 165, gtest_ar.failure_message()) = ::testing::Message(); | |||
166 | 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/IdentifierNestedClassHierarchyTest.cc" , 166, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
167 | 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/IdentifierNestedClassHierarchyTest.cc" , 167, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
168 | 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/IdentifierNestedClassHierarchyTest.cc" , 168, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
169 | 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/IdentifierNestedClassHierarchyTest.cc" , 169, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
170 | } | |||
171 | ||||
172 | TEST_F(IdentifierNestedClassHierarchyTest, TestBaseClass)class IdentifierNestedClassHierarchyTest_TestBaseClass_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestBaseClass_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestBaseClass_Test (IdentifierNestedClassHierarchyTest_TestBaseClass_Test const & ); void operator=(IdentifierNestedClassHierarchyTest_TestBaseClass_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestBaseClass_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestBaseClass", __null , __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestBaseClass_Test>);void IdentifierNestedClassHierarchyTest_TestBaseClass_Test::TestBody () | |||
173 | { | |||
174 | Identifier* identifier = Class(BaseClass)orxonox::ClassIdentifier<BaseClass>::getIdentifier(); | |||
175 | ||||
176 | EXPECT_EQ(6u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(6u)) == 1)>::Compare("6u", "identifier->getDirectChildren().size()", 6u, identifier-> getDirectChildren().size()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 176, gtest_ar.failure_message()) = ::testing::Message(); | |||
177 | EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class1_notNested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectChildren(), orxonox::ClassIdentifier<Class1_notNested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 177, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectChildren(), Class(Class1_notNested))" , "false", "true").c_str()) = ::testing::Message(); | |||
178 | EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class2_oneNested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectChildren(), orxonox::ClassIdentifier<Class2_oneNested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 178, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectChildren(), Class(Class2_oneNested))" , "false", "true").c_str()) = ::testing::Message(); | |||
179 | EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class3_twoNested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectChildren(), orxonox::ClassIdentifier<Class3_twoNested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 179, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectChildren(), Class(Class3_twoNested))" , "false", "true").c_str()) = ::testing::Message(); | |||
180 | EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class4_class1Nested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectChildren(), orxonox::ClassIdentifier<Class4_class1Nested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 180, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectChildren(), Class(Class4_class1Nested))" , "false", "true").c_str()) = ::testing::Message(); | |||
181 | EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class5_class2Nested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectChildren(), orxonox::ClassIdentifier<Class5_class2Nested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 181, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectChildren(), Class(Class5_class2Nested))" , "false", "true").c_str()) = ::testing::Message(); | |||
182 | EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class6_class3Nested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectChildren(), orxonox::ClassIdentifier<Class6_class3Nested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 182, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectChildren(), Class(Class6_class3Nested))" , "false", "true").c_str()) = ::testing::Message(); | |||
183 | ||||
184 | EXPECT_EQ(8u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(8u)) == 1)>::Compare("8u", "identifier->getChildren().size()", 8u, identifier->getChildren ().size()))) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 184, gtest_ar.failure_message()) = ::testing::Message(); | |||
185 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class1_notNested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class1_notNested> ::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 185, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class1_notNested))" , "false", "true").c_str()) = ::testing::Message(); | |||
186 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class2_oneNested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class2_oneNested> ::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 186, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class2_oneNested))" , "false", "true").c_str()) = ::testing::Message(); | |||
187 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class3_twoNested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class3_twoNested> ::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 187, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class3_twoNested))" , "false", "true").c_str()) = ::testing::Message(); | |||
188 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class4_class1Nested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class4_class1Nested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 188, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class4_class1Nested))" , "false", "true").c_str()) = ::testing::Message(); | |||
189 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class5_class2Nested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class5_class2Nested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 189, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class5_class2Nested))" , "false", "true").c_str()) = ::testing::Message(); | |||
190 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class6_class3Nested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class6_class3Nested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 190, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class6_class3Nested))" , "false", "true").c_str()) = ::testing::Message(); | |||
191 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class3_Child)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class3_Child>:: getIdentifier()))) ; else ::testing::internal::AssertHelper(:: testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 191, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class3_Child))" , "false", "true").c_str()) = ::testing::Message(); | |||
192 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class6_Child)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class6_Child>:: getIdentifier()))) ; else ::testing::internal::AssertHelper(:: testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 192, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class6_Child))" , "false", "true").c_str()) = ::testing::Message(); | |||
193 | ||||
194 | 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/IdentifierNestedClassHierarchyTest.cc" , 194, gtest_ar.failure_message()) = ::testing::Message(); | |||
195 | 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/IdentifierNestedClassHierarchyTest.cc" , 195, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
196 | ||||
197 | 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/IdentifierNestedClassHierarchyTest.cc" , 197, gtest_ar.failure_message()) = ::testing::Message(); | |||
198 | 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/IdentifierNestedClassHierarchyTest.cc" , 198, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
199 | 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/IdentifierNestedClassHierarchyTest.cc" , 199, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
200 | 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/IdentifierNestedClassHierarchyTest.cc" , 200, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
201 | 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/IdentifierNestedClassHierarchyTest.cc" , 201, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
202 | } | |||
203 | ||||
204 | TEST_F(IdentifierNestedClassHierarchyTest, TestClass1_notNested)class IdentifierNestedClassHierarchyTest_TestClass1_notNested_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestClass1_notNested_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestClass1_notNested_Test (IdentifierNestedClassHierarchyTest_TestClass1_notNested_Test const &); void operator=(IdentifierNestedClassHierarchyTest_TestClass1_notNested_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestClass1_notNested_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestClass1_notNested" , __null, __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestClass1_notNested_Test >);void IdentifierNestedClassHierarchyTest_TestClass1_notNested_Test ::TestBody() | |||
205 | { | |||
206 | Identifier* identifier = Class(Class1_notNested)orxonox::ClassIdentifier<Class1_notNested>::getIdentifier (); | |||
207 | ||||
208 | 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/IdentifierNestedClassHierarchyTest.cc" , 208, gtest_ar.failure_message()) = ::testing::Message(); | |||
209 | 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/IdentifierNestedClassHierarchyTest.cc" , 209, gtest_ar.failure_message()) = ::testing::Message(); | |||
210 | ||||
211 | 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/IdentifierNestedClassHierarchyTest.cc" , 211, gtest_ar.failure_message()) = ::testing::Message(); | |||
212 | 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/IdentifierNestedClassHierarchyTest.cc" , 212, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(BaseClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
213 | ||||
214 | 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/IdentifierNestedClassHierarchyTest.cc" , 214, gtest_ar.failure_message()) = ::testing::Message(); | |||
215 | 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/IdentifierNestedClassHierarchyTest.cc" , 215, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
216 | 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/IdentifierNestedClassHierarchyTest.cc" , 216, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
217 | 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/IdentifierNestedClassHierarchyTest.cc" , 217, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
218 | 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/IdentifierNestedClassHierarchyTest.cc" , 218, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
219 | 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/IdentifierNestedClassHierarchyTest.cc" , 219, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(BaseClass))", "false" , "true").c_str()) = ::testing::Message(); | |||
220 | } | |||
221 | ||||
222 | TEST_F(IdentifierNestedClassHierarchyTest, TestClass2_oneNested)class IdentifierNestedClassHierarchyTest_TestClass2_oneNested_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestClass2_oneNested_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestClass2_oneNested_Test (IdentifierNestedClassHierarchyTest_TestClass2_oneNested_Test const &); void operator=(IdentifierNestedClassHierarchyTest_TestClass2_oneNested_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestClass2_oneNested_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestClass2_oneNested" , __null, __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestClass2_oneNested_Test >);void IdentifierNestedClassHierarchyTest_TestClass2_oneNested_Test ::TestBody() | |||
223 | { | |||
224 | Identifier* identifier = Class(Class2_oneNested)orxonox::ClassIdentifier<Class2_oneNested>::getIdentifier (); | |||
225 | ||||
226 | 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/IdentifierNestedClassHierarchyTest.cc" , 226, gtest_ar.failure_message()) = ::testing::Message(); | |||
227 | 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/IdentifierNestedClassHierarchyTest.cc" , 227, gtest_ar.failure_message()) = ::testing::Message(); | |||
228 | ||||
229 | 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/IdentifierNestedClassHierarchyTest.cc" , 229, gtest_ar.failure_message()) = ::testing::Message(); | |||
230 | 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/IdentifierNestedClassHierarchyTest.cc" , 230, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(BaseClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
231 | ||||
232 | 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/IdentifierNestedClassHierarchyTest.cc" , 232, gtest_ar.failure_message()) = ::testing::Message(); | |||
233 | 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/IdentifierNestedClassHierarchyTest.cc" , 233, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
234 | 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/IdentifierNestedClassHierarchyTest.cc" , 234, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
235 | 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/IdentifierNestedClassHierarchyTest.cc" , 235, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
236 | 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/IdentifierNestedClassHierarchyTest.cc" , 236, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
237 | 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/IdentifierNestedClassHierarchyTest.cc" , 237, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(BaseClass))", "false" , "true").c_str()) = ::testing::Message(); | |||
238 | } | |||
239 | ||||
240 | TEST_F(IdentifierNestedClassHierarchyTest, TestClass3_twoNested)class IdentifierNestedClassHierarchyTest_TestClass3_twoNested_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestClass3_twoNested_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestClass3_twoNested_Test (IdentifierNestedClassHierarchyTest_TestClass3_twoNested_Test const &); void operator=(IdentifierNestedClassHierarchyTest_TestClass3_twoNested_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestClass3_twoNested_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestClass3_twoNested" , __null, __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestClass3_twoNested_Test >);void IdentifierNestedClassHierarchyTest_TestClass3_twoNested_Test ::TestBody() | |||
241 | { | |||
242 | Identifier* identifier = Class(Class3_twoNested)orxonox::ClassIdentifier<Class3_twoNested>::getIdentifier (); | |||
243 | ||||
244 | EXPECT_EQ(1u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u", "identifier->getDirectChildren().size()", 1u, identifier-> getDirectChildren().size()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 244, gtest_ar.failure_message()) = ::testing::Message(); | |||
245 | EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class3_Child)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectChildren(), orxonox::ClassIdentifier<Class3_Child >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 245, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectChildren(), Class(Class3_Child))" , "false", "true").c_str()) = ::testing::Message(); | |||
246 | ||||
247 | EXPECT_EQ(1u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u", "identifier->getChildren().size()", 1u, identifier->getChildren ().size()))) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 247, gtest_ar.failure_message()) = ::testing::Message(); | |||
248 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class3_Child)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class3_Child>:: getIdentifier()))) ; else ::testing::internal::AssertHelper(:: testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 248, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class3_Child))" , "false", "true").c_str()) = ::testing::Message(); | |||
249 | ||||
250 | 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/IdentifierNestedClassHierarchyTest.cc" , 250, gtest_ar.failure_message()) = ::testing::Message(); | |||
251 | 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/IdentifierNestedClassHierarchyTest.cc" , 251, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(BaseClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
252 | ||||
253 | 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/IdentifierNestedClassHierarchyTest.cc" , 253, gtest_ar.failure_message()) = ::testing::Message(); | |||
254 | 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/IdentifierNestedClassHierarchyTest.cc" , 254, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
255 | 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/IdentifierNestedClassHierarchyTest.cc" , 255, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
256 | 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/IdentifierNestedClassHierarchyTest.cc" , 256, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
257 | 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/IdentifierNestedClassHierarchyTest.cc" , 257, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
258 | 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/IdentifierNestedClassHierarchyTest.cc" , 258, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(BaseClass))", "false" , "true").c_str()) = ::testing::Message(); | |||
259 | } | |||
260 | ||||
261 | TEST_F(IdentifierNestedClassHierarchyTest, TestClass4_class1Nested)class IdentifierNestedClassHierarchyTest_TestClass4_class1Nested_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestClass4_class1Nested_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestClass4_class1Nested_Test (IdentifierNestedClassHierarchyTest_TestClass4_class1Nested_Test const &); void operator=(IdentifierNestedClassHierarchyTest_TestClass4_class1Nested_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestClass4_class1Nested_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestClass4_class1Nested" , __null, __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestClass4_class1Nested_Test >);void IdentifierNestedClassHierarchyTest_TestClass4_class1Nested_Test ::TestBody() | |||
262 | { | |||
263 | Identifier* identifier = Class(Class4_class1Nested)orxonox::ClassIdentifier<Class4_class1Nested>::getIdentifier (); | |||
264 | ||||
265 | 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/IdentifierNestedClassHierarchyTest.cc" , 265, gtest_ar.failure_message()) = ::testing::Message(); | |||
266 | 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/IdentifierNestedClassHierarchyTest.cc" , 266, gtest_ar.failure_message()) = ::testing::Message(); | |||
267 | ||||
268 | 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/IdentifierNestedClassHierarchyTest.cc" , 268, gtest_ar.failure_message()) = ::testing::Message(); | |||
269 | 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/IdentifierNestedClassHierarchyTest.cc" , 269, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(BaseClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
270 | ||||
271 | 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/IdentifierNestedClassHierarchyTest.cc" , 271, gtest_ar.failure_message()) = ::testing::Message(); | |||
272 | 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/IdentifierNestedClassHierarchyTest.cc" , 272, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
273 | 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/IdentifierNestedClassHierarchyTest.cc" , 273, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
274 | 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/IdentifierNestedClassHierarchyTest.cc" , 274, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
275 | 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/IdentifierNestedClassHierarchyTest.cc" , 275, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
276 | 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/IdentifierNestedClassHierarchyTest.cc" , 276, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(BaseClass))", "false" , "true").c_str()) = ::testing::Message(); | |||
277 | } | |||
278 | ||||
279 | TEST_F(IdentifierNestedClassHierarchyTest, TestClass5_class2Nested)class IdentifierNestedClassHierarchyTest_TestClass5_class2Nested_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestClass5_class2Nested_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestClass5_class2Nested_Test (IdentifierNestedClassHierarchyTest_TestClass5_class2Nested_Test const &); void operator=(IdentifierNestedClassHierarchyTest_TestClass5_class2Nested_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestClass5_class2Nested_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestClass5_class2Nested" , __null, __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestClass5_class2Nested_Test >);void IdentifierNestedClassHierarchyTest_TestClass5_class2Nested_Test ::TestBody() | |||
280 | { | |||
281 | Identifier* identifier = Class(Class5_class2Nested)orxonox::ClassIdentifier<Class5_class2Nested>::getIdentifier (); | |||
282 | ||||
283 | 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/IdentifierNestedClassHierarchyTest.cc" , 283, gtest_ar.failure_message()) = ::testing::Message(); | |||
284 | 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/IdentifierNestedClassHierarchyTest.cc" , 284, gtest_ar.failure_message()) = ::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/IdentifierNestedClassHierarchyTest.cc" , 286, gtest_ar.failure_message()) = ::testing::Message(); | |||
287 | 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/IdentifierNestedClassHierarchyTest.cc" , 287, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(BaseClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
288 | ||||
289 | 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/IdentifierNestedClassHierarchyTest.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/IdentifierNestedClassHierarchyTest.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/IdentifierNestedClassHierarchyTest.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/IdentifierNestedClassHierarchyTest.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/IdentifierNestedClassHierarchyTest.cc" , 293, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
294 | 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/IdentifierNestedClassHierarchyTest.cc" , 294, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(BaseClass))", "false" , "true").c_str()) = ::testing::Message(); | |||
295 | } | |||
296 | ||||
297 | TEST_F(IdentifierNestedClassHierarchyTest, TestClass6_class3Nested)class IdentifierNestedClassHierarchyTest_TestClass6_class3Nested_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestClass6_class3Nested_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestClass6_class3Nested_Test (IdentifierNestedClassHierarchyTest_TestClass6_class3Nested_Test const &); void operator=(IdentifierNestedClassHierarchyTest_TestClass6_class3Nested_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestClass6_class3Nested_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestClass6_class3Nested" , __null, __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestClass6_class3Nested_Test >);void IdentifierNestedClassHierarchyTest_TestClass6_class3Nested_Test ::TestBody() | |||
298 | { | |||
299 | Identifier* identifier = Class(Class6_class3Nested)orxonox::ClassIdentifier<Class6_class3Nested>::getIdentifier (); | |||
300 | ||||
301 | EXPECT_EQ(1u, identifier->getDirectChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u", "identifier->getDirectChildren().size()", 1u, identifier-> getDirectChildren().size()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 301, gtest_ar.failure_message()) = ::testing::Message(); | |||
302 | EXPECT_TRUE(contains(identifier->getDirectChildren(), Class(Class6_Child)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectChildren(), orxonox::ClassIdentifier<Class6_Child >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 302, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectChildren(), Class(Class6_Child))" , "false", "true").c_str()) = ::testing::Message(); | |||
303 | ||||
304 | EXPECT_EQ(1u, identifier->getChildren().size())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(1u)) == 1)>::Compare("1u", "identifier->getChildren().size()", 1u, identifier->getChildren ().size()))) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 304, gtest_ar.failure_message()) = ::testing::Message(); | |||
305 | EXPECT_TRUE(contains(identifier->getChildren(), Class(Class6_Child)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getChildren(), orxonox::ClassIdentifier<Class6_Child>:: getIdentifier()))) ; else ::testing::internal::AssertHelper(:: testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 305, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getChildren(), Class(Class6_Child))" , "false", "true").c_str()) = ::testing::Message(); | |||
306 | ||||
307 | 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/IdentifierNestedClassHierarchyTest.cc" , 307, gtest_ar.failure_message()) = ::testing::Message(); | |||
308 | 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/IdentifierNestedClassHierarchyTest.cc" , 308, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(BaseClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
309 | ||||
310 | 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/IdentifierNestedClassHierarchyTest.cc" , 310, gtest_ar.failure_message()) = ::testing::Message(); | |||
311 | 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/IdentifierNestedClassHierarchyTest.cc" , 311, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
312 | 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/IdentifierNestedClassHierarchyTest.cc" , 312, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
313 | 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/IdentifierNestedClassHierarchyTest.cc" , 313, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
314 | 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/IdentifierNestedClassHierarchyTest.cc" , 314, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
315 | 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/IdentifierNestedClassHierarchyTest.cc" , 315, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(BaseClass))", "false" , "true").c_str()) = ::testing::Message(); | |||
316 | } | |||
317 | ||||
318 | TEST_F(IdentifierNestedClassHierarchyTest, TestClass3_Child)class IdentifierNestedClassHierarchyTest_TestClass3_Child_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestClass3_Child_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestClass3_Child_Test (IdentifierNestedClassHierarchyTest_TestClass3_Child_Test const &); void operator=(IdentifierNestedClassHierarchyTest_TestClass3_Child_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestClass3_Child_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestClass3_Child", __null , __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestClass3_Child_Test> );void IdentifierNestedClassHierarchyTest_TestClass3_Child_Test ::TestBody() | |||
319 | { | |||
320 | Identifier* identifier = Class(Class3_Child)orxonox::ClassIdentifier<Class3_Child>::getIdentifier(); | |||
321 | ||||
322 | 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/IdentifierNestedClassHierarchyTest.cc" , 322, gtest_ar.failure_message()) = ::testing::Message(); | |||
323 | 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/IdentifierNestedClassHierarchyTest.cc" , 323, gtest_ar.failure_message()) = ::testing::Message(); | |||
324 | ||||
325 | 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/IdentifierNestedClassHierarchyTest.cc" , 325, gtest_ar.failure_message()) = ::testing::Message(); | |||
326 | EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Class3_twoNested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectParents(), orxonox::ClassIdentifier<Class3_twoNested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 326, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(Class3_twoNested))" , "false", "true").c_str()) = ::testing::Message(); | |||
327 | ||||
328 | EXPECT_EQ(6u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(6u)) == 1)>::Compare("6u", "identifier->getParents().size()", 6u, identifier->getParents ().size()))) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 328, gtest_ar.failure_message()) = ::testing::Message(); | |||
329 | 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/IdentifierNestedClassHierarchyTest.cc" , 329, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
330 | 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/IdentifierNestedClassHierarchyTest.cc" , 330, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
331 | 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/IdentifierNestedClassHierarchyTest.cc" , 331, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
332 | 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/IdentifierNestedClassHierarchyTest.cc" , 332, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
333 | 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/IdentifierNestedClassHierarchyTest.cc" , 333, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(BaseClass))", "false" , "true").c_str()) = ::testing::Message(); | |||
334 | EXPECT_TRUE(contains(identifier->getParents(), Class(Class3_twoNested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getParents(), orxonox::ClassIdentifier<Class3_twoNested> ::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 334, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Class3_twoNested))" , "false", "true").c_str()) = ::testing::Message(); | |||
335 | } | |||
336 | ||||
337 | TEST_F(IdentifierNestedClassHierarchyTest, TestClass6_Child)class IdentifierNestedClassHierarchyTest_TestClass6_Child_Test : public IdentifierNestedClassHierarchyTest { public: IdentifierNestedClassHierarchyTest_TestClass6_Child_Test () {} private: virtual void TestBody(); static ::testing::TestInfo * const test_info_ __attribute__ ((unused)); IdentifierNestedClassHierarchyTest_TestClass6_Child_Test (IdentifierNestedClassHierarchyTest_TestClass6_Child_Test const &); void operator=(IdentifierNestedClassHierarchyTest_TestClass6_Child_Test const &);};::testing::TestInfo* const IdentifierNestedClassHierarchyTest_TestClass6_Child_Test ::test_info_ = ::testing::internal::MakeAndRegisterTestInfo( "IdentifierNestedClassHierarchyTest", "TestClass6_Child", __null , __null, (::testing::internal::GetTypeId<IdentifierNestedClassHierarchyTest >()), IdentifierNestedClassHierarchyTest::SetUpTestCase, IdentifierNestedClassHierarchyTest ::TearDownTestCase, new ::testing::internal::TestFactoryImpl< IdentifierNestedClassHierarchyTest_TestClass6_Child_Test> );void IdentifierNestedClassHierarchyTest_TestClass6_Child_Test ::TestBody() | |||
338 | { | |||
339 | Identifier* identifier = Class(Class6_Child)orxonox::ClassIdentifier<Class6_Child>::getIdentifier(); | |||
340 | ||||
341 | 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/IdentifierNestedClassHierarchyTest.cc" , 341, gtest_ar.failure_message()) = ::testing::Message(); | |||
342 | 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/IdentifierNestedClassHierarchyTest.cc" , 342, gtest_ar.failure_message()) = ::testing::Message(); | |||
343 | ||||
344 | 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/IdentifierNestedClassHierarchyTest.cc" , 344, gtest_ar.failure_message()) = ::testing::Message(); | |||
345 | EXPECT_TRUE(contains(identifier->getDirectParents(), Class(Class6_class3Nested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getDirectParents(), orxonox::ClassIdentifier<Class6_class3Nested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 345, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getDirectParents(), Class(Class6_class3Nested))" , "false", "true").c_str()) = ::testing::Message(); | |||
346 | ||||
347 | EXPECT_EQ(6u, identifier->getParents().size())switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar = (::testing::internal:: EqHelper<(sizeof(::testing ::internal::IsNullLiteralHelper(6u)) == 1)>::Compare("6u", "identifier->getParents().size()", 6u, identifier->getParents ().size()))) ; else ::testing::internal::AssertHelper(::testing ::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 347, gtest_ar.failure_message()) = ::testing::Message(); | |||
348 | 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/IdentifierNestedClassHierarchyTest.cc" , 348, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Identifiable))" , "false", "true").c_str()) = ::testing::Message(); | |||
349 | 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/IdentifierNestedClassHierarchyTest.cc" , 349, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Listable))", "false" , "true").c_str()) = ::testing::Message(); | |||
350 | 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/IdentifierNestedClassHierarchyTest.cc" , 350, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Configurable))" , "false", "true").c_str()) = ::testing::Message(); | |||
351 | 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/IdentifierNestedClassHierarchyTest.cc" , 351, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(OrxonoxClass))" , "false", "true").c_str()) = ::testing::Message(); | |||
352 | 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/IdentifierNestedClassHierarchyTest.cc" , 352, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(BaseClass))", "false" , "true").c_str()) = ::testing::Message(); | |||
353 | EXPECT_TRUE(contains(identifier->getParents(), Class(Class6_class3Nested)))switch (0) case 0: default: if (const ::testing::AssertionResult gtest_ar_ = ::testing::AssertionResult(contains(identifier-> getParents(), orxonox::ClassIdentifier<Class6_class3Nested >::getIdentifier()))) ; else ::testing::internal::AssertHelper (::testing::TestPartResult::kNonFatalFailure, "/home/jenkins/workspace/orxonox_qc_trunk_checks/test/core/class/IdentifierNestedClassHierarchyTest.cc" , 353, ::testing::internal::GetBoolAssertionFailureMessage( gtest_ar_ , "contains(identifier->getParents(), Class(Class6_class3Nested))" , "false", "true").c_str()) = ::testing::Message(); | |||
354 | } | |||
355 | } |