| 26 | size_t ApplicationContextTest::initialize_times; |
| 27 | |
| 28 | TEST_F(ApplicationContextTest, get_component_after_register) { |
| 29 | ASSERT_FALSE(context.component_accessor<::std::string>()); |
| 30 | context.register_component(DefaultComponentHolder<::std::string>::create()); |
| 31 | ASSERT_TRUE(context.component_accessor<::std::string>()); |
| 32 | for (auto& holder : context) { |
| 33 | ASSERT_EQ(&::babylon::TypeId<::std::string>::ID, holder.type_id()); |
| 34 | ASSERT_EQ(1, holder.accessible_path_number()); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | TEST_F(ApplicationContextTest, |
| 39 | component_with_same_type_is_ambiguous_to_get_by_type) { |
nothing calls this directly
no test coverage detected