mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-26 16:19:30 +03:00
29 lines
No EOL
682 B
C++
29 lines
No EOL
682 B
C++
#include "RequiredCheckTestReporter.h"
|
|
|
|
#include "CurrentTest.h"
|
|
#include "TestResults.h"
|
|
|
|
namespace UnitTest {
|
|
|
|
RequiredCheckTestReporter::RequiredCheckTestReporter(TestResults* results)
|
|
: m_results(results)
|
|
, m_throwingReporter(0)
|
|
, m_continue(0)
|
|
{
|
|
if(m_results)
|
|
{
|
|
m_throwingReporter.SetDecorated(m_results->m_testReporter);
|
|
m_results->m_testReporter = &m_throwingReporter;
|
|
}
|
|
}
|
|
|
|
RequiredCheckTestReporter::~RequiredCheckTestReporter()
|
|
{
|
|
if(m_results) m_results->m_testReporter = m_throwingReporter.GetDecorated();
|
|
}
|
|
|
|
bool RequiredCheckTestReporter::Next()
|
|
{
|
|
return m_continue++ == 0;
|
|
}
|
|
} |