Test Object Pool Source
Functions
-
TEST(ObjectPoolTest, BorrowAndReturnObject)
Test borrowing and returning objects in the object pool.
This test validates the correct borrowing and returning behavior of the ObjectPool class. It ensures that returned objects can be reused by the pool without duplicating or recreating objects unnecessarily.
-
TEST(ObjectPoolTest, BorrowFromEmptyPool)
Test borrowing from an empty object pool.
This test ensures that attempting to borrow an object from an empty pool throws a
std::runtime_error. It verifies that the pool correctly handles cases where no reusable objects are available.
-
TEST(ObjectPoolTest, MultipleBorrowAndReturn)
Test multiple borrow and return operations in the object pool.
This test validates the behavior of the ObjectPool class under multiple consecutive borrow and return operations. It ensures that objects are properly reset and can be reused in a predictable manner.