Add tests for ThreadPool::getThreadCount()

This commit is contained in:
Stephen Seo 2021-09-07 20:21:20 +09:00
parent 5c72ecb74b
commit 4fd463a870

View file

@ -66,3 +66,14 @@ TEST(ECThreadPool, Simple) {
ASSERT_EQ(data.load(), 11); ASSERT_EQ(data.load(), 11);
} }
TEST(ECThreadPool, QueryCount) {
{
OneThreadPool oneP;
ASSERT_EQ(1, oneP.getThreadCount());
}
{
ThreeThreadPool threeP;
ASSERT_EQ(3, threeP.getThreadCount());
}
}