| 3 | #include "gtest/gtest.h" |
| 4 | |
| 5 | struct ApplicationContextTest : public ::testing::Test { |
| 6 | using ApplicationContext = ::babylon::ApplicationContext; |
| 7 | template <typename T, typename... BS> |
| 8 | using DefaultComponentHolder = |
| 9 | ApplicationContext::DefaultComponentHolder<T, BS...>; |
| 10 | template <typename T, typename... BS> |
| 11 | using FactoryComponentHolder = |
| 12 | ApplicationContext::FactoryComponentHolder<T, BS...>; |
| 13 | using Any = ::babylon::Any; |
| 14 | |
| 15 | static size_t construct_times; |
| 16 | static size_t initialize_times; |
| 17 | |
| 18 | virtual void SetUp() override { |
| 19 | construct_times = 0; |
| 20 | initialize_times = 0; |
| 21 | } |
| 22 | |
| 23 | ::babylon::ApplicationContext context; |
| 24 | }; |
| 25 | size_t ApplicationContextTest::construct_times; |
| 26 | size_t ApplicationContextTest::initialize_times; |
| 27 |
nothing calls this directly
no outgoing calls
no test coverage detected