mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-27 08:33:45 +03:00
getCurrentTest returns node instead of test
This commit is contained in:
parent
8fca8ed301
commit
cb32b4fa08
3 changed files with 2 additions and 13 deletions
|
|
@ -44,17 +44,6 @@ TestListNode* const ParameterizedManager::retrieveTest(TestDetails const * const
|
|||
}
|
||||
|
||||
|
||||
Test* const ParameterizedManager::getCurrentTest() const
|
||||
{
|
||||
if (_currentTest == nullptr)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return _currentTest->m_test;
|
||||
}
|
||||
|
||||
|
||||
bool ParameterizedManager::isCurrentTest(TestDetails const * const details) const
|
||||
{
|
||||
if (_currentTest == nullptr)
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ namespace UnitTest
|
|||
{
|
||||
public:
|
||||
static ParameterizedManager & getInstance();
|
||||
Test* const getCurrentTest() const;
|
||||
TestListNode* const getCurrentTest() const { return _currentTest; }
|
||||
bool isCurrentTest(TestDetails const * const details) const;
|
||||
void beginExecute(TestDetails const * const details);
|
||||
void endExecute(TestDetails const * const details);
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ void TestParameterAbstract::nextIndex(bool first)
|
|||
_index++;
|
||||
}
|
||||
|
||||
peekCurrent(&ParameterizedManager::getInstance().getCurrentTest()->m_details, _index);
|
||||
peekCurrent(&ParameterizedManager::getInstance().getCurrentTest()->m_test->m_details, _index);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue