Skip to content

Commit

Permalink
Rename test to GroupQueueTest
Browse files Browse the repository at this point in the history
  • Loading branch information
herrcristi committed Dec 25, 2024
1 parent 5a30fed commit d4d2a09
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions tests/test_group_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ namespace {
kJob3,
};

class JobsQueueTest : public testing::Test
class GroupQueueTest : public testing::Test
{
protected:
JobsQueueTest() = default;
GroupQueueTest() = default;

void SetUp() override
{
Expand All @@ -33,7 +33,7 @@ namespace {
//
// lock
//
TEST_F(JobsQueueTest, Lock)
TEST_F(GroupQueueTest, Lock)
{
small::group_queue<JobType, int> q;

Expand Down Expand Up @@ -79,7 +79,7 @@ namespace {
//
// queue
//
TEST_F(JobsQueueTest, Queue_Operations)
TEST_F(GroupQueueTest, Queue_Operations)
{
small::group_queue<JobType, int, JobType /*as group*/, small::EnumPriorities> q(
{.priorities{{
Expand Down Expand Up @@ -131,7 +131,7 @@ namespace {
ASSERT_EQ(q.size(), 0);
}

TEST_F(JobsQueueTest, Queue_Operations_Vec)
TEST_F(GroupQueueTest, Queue_Operations_Vec)
{
small::group_queue<JobType, int> q;
q.add_type_group(JobType::kJob1, JobType::kJob1 /*as group*/);
Expand Down Expand Up @@ -171,7 +171,7 @@ namespace {
q.clear();
}

TEST_F(JobsQueueTest, Queue_Operations_Clear)
TEST_F(GroupQueueTest, Queue_Operations_Clear)
{
small::group_queue<JobType, int> q;
q.add_type_group(JobType::kJob1, JobType::kJob1 /*as group*/);
Expand Down Expand Up @@ -202,7 +202,7 @@ namespace {
ASSERT_EQ(q.size(), 0);
}

TEST_F(JobsQueueTest, Queue_Operations_Timeout)
TEST_F(GroupQueueTest, Queue_Operations_Timeout)
{
small::group_queue<JobType, int> q;
q.add_type_group(JobType::kJob1, JobType::kJob1 /*as group*/);
Expand Down Expand Up @@ -244,7 +244,7 @@ namespace {
ASSERT_EQ(ret, small::EnumLock::kTimeout);
}

TEST_F(JobsQueueTest, Queue_Operations_Timeout_Vec)
TEST_F(GroupQueueTest, Queue_Operations_Timeout_Vec)
{
small::group_queue<JobType, int> q;
q.add_type_group(JobType::kJob1, JobType::kJob1 /*as group*/);
Expand Down Expand Up @@ -287,7 +287,7 @@ namespace {
ASSERT_EQ(ret, small::EnumLock::kTimeout);
}

TEST_F(JobsQueueTest, Queue_Operations_Thread)
TEST_F(GroupQueueTest, Queue_Operations_Thread)
{
small::group_queue<JobType, int> q;
q.add_type_group(JobType::kJob1, JobType::kJob1 /*as group*/);
Expand Down Expand Up @@ -320,7 +320,7 @@ namespace {
ASSERT_GE(elapsed, 300 - 1); // due conversion
}

TEST_F(JobsQueueTest, Queue_Operations_Signal_Exit_Force)
TEST_F(GroupQueueTest, Queue_Operations_Signal_Exit_Force)
{
small::group_queue<JobType, int> q;
q.add_type_group(JobType::kJob1, JobType::kJob1 /*as group*/);
Expand Down Expand Up @@ -364,7 +364,7 @@ namespace {
ASSERT_EQ(q.size(), 0);
}

TEST_F(JobsQueueTest, Queue_Operations_Signal_Exit_When_Done)
TEST_F(GroupQueueTest, Queue_Operations_Signal_Exit_When_Done)
{
small::group_queue<JobType, int> q;
q.add_type_group(JobType::kJob1, JobType::kJob1 /*as group*/);
Expand Down

0 comments on commit d4d2a09

Please sign in to comment.