Skip to content

Commit

Permalink
UniLog: clarify testcase name
Browse files Browse the repository at this point in the history
  • Loading branch information
fchn289 committed Dec 25, 2023
1 parent a1ff69e commit d640948
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions ut/log/UniLogTest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ struct UNI_LOG_TEST : public Test
};

// ***********************************************************************************************
TEST_F(UNI_LOG_TEST, GOLD_usr_of_class_and_func)
TEST_F(UNI_LOG_TEST, GOLD_OneCellWith_classes_and_funcs)
{
for (size_t i=0; i < 100; ++i) // for perf bug
{
SCOPED_TRACE(i);
SCOPED_TRACE(i); // debug which "i" failed

ClassUsr classUsr(logName_);
const auto len_1 = UNI_LOG::logLen(logName_);
Expand All @@ -103,7 +103,7 @@ TEST_F(UNI_LOG_TEST, GOLD_usr_of_class_and_func)
}

// ***********************************************************************************************
TEST_F(UNI_LOG_TEST, low_couple_objects)
TEST_F(UNI_LOG_TEST, withinOneCell_decouple_objects)
{
auto classUsr = make_shared<ClassUsr>((logName_));
const auto len_1 = UNI_LOG::logLen(logName_);
Expand All @@ -119,7 +119,7 @@ TEST_F(UNI_LOG_TEST, low_couple_objects)

if (Test::HasFailure()) classUsr_2.needLog();
}
TEST_F(UNI_LOG_TEST, low_couple_between_copies)
TEST_F(UNI_LOG_TEST, withinOneCell_decouple_copies)
{
auto classUsr = make_shared<ClassUsr>((logName_));
const auto len_1 = UNI_LOG::logLen(logName_);
Expand All @@ -144,9 +144,9 @@ TEST_F(UNI_LOG_TEST, low_couple_between_copies)

// req: UNI_LOG not support assignemt, copy is enough

copy.needLog(); // req: can still output log to screen
copy.needLog(); // req: can still output log to screen
}
TEST_F(UNI_LOG_TEST, low_couple_callbackFunc)
TEST_F(UNI_LOG_TEST, withinOneCell_decouple_callbackFuncs)
{
auto classUsr = make_shared<ClassUsr>((logName_));
const auto len_1 = UNI_LOG::logLen(logName_);
Expand All @@ -164,7 +164,7 @@ TEST_F(UNI_LOG_TEST, low_couple_callbackFunc)
}

// ***********************************************************************************************
TEST_F(UNI_LOG_TEST, no_explicit_CellLog_like_legacy)
TEST_F(UNI_LOG_TEST, GOLD_no_explicit_CellLog_like_legacy)
{
const auto len_1 = UNI_LOG::logLen();
ClassUsr classUsr; // no explicit UNI_LOG
Expand Down
2 changes: 1 addition & 1 deletion ut/thread/MtInQueueTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ TEST_F(MtInQueueTest, discard_noHdlrEle)
mt_getQ().handleAllEle();
EXPECT_EQ(0u, mt_getQ().mt_sizeQ()) << "REQ: discard ele w/o hdlr - simple & no mem leak";
}
TEST_F(MtInQueueTest, handleAllEle_shallnot_blocked)
TEST_F(MtInQueueTest, handleAllEle_shallnot_block)
{
MtInQueue mtQ; // cov destructor with ele left

Expand Down

0 comments on commit d640948

Please sign in to comment.