| 8 | |
| 9 | struct ObjectPoolTest : public ::testing::Test { |
| 10 | void SetUp() override { |
| 11 | auto_pool.reserve_and_clear(4); |
| 12 | auto_pool.set_creator([&] { |
| 13 | create_times++; |
| 14 | return new ::std::string {"auto"}; |
| 15 | }); |
| 16 | |
| 17 | pool.reserve_and_clear(4); |
| 18 | } |
| 19 | |
| 20 | ObjectPool<::std::string> auto_pool; |
| 21 | ObjectPool<::std::string> pool; |
nothing calls this directly
no test coverage detected