mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-26 16:19:30 +03:00
Change camelCase methods to PascalCase
This commit is contained in:
parent
40b8f0b17b
commit
57fc32c114
6 changed files with 10 additions and 11 deletions
|
|
@ -8,11 +8,11 @@
|
|||
#endif
|
||||
|
||||
#ifndef UNITTEST_NO_EXCEPTIONS
|
||||
#define REQUIRE for(UnitTest::RequiredCheckTestReporter decoratedReporter(UnitTest::CurrentTest::Results()); decoratedReporter.next(); )
|
||||
#define REQUIRE for(UnitTest::RequiredCheckTestReporter decoratedReporter(UnitTest::CurrentTest::Results()); decoratedReporter.Next(); )
|
||||
#endif
|
||||
|
||||
#ifdef UNITTEST_NO_EXCEPTIONS
|
||||
#define REQUIRE
|
||||
#define REQUIRE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
@ -12,17 +12,17 @@ namespace UnitTest {
|
|||
{
|
||||
if(m_results)
|
||||
{
|
||||
m_throwingReporter.setDecorated(m_results->m_testReporter);
|
||||
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();
|
||||
if(m_results) m_results->m_testReporter = m_throwingReporter.GetDecorated();
|
||||
}
|
||||
|
||||
bool RequiredCheckTestReporter::next()
|
||||
bool RequiredCheckTestReporter::Next()
|
||||
{
|
||||
return m_continue++ == 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace UnitTest {
|
|||
explicit RequiredCheckTestReporter(TestResults* results);
|
||||
~RequiredCheckTestReporter();
|
||||
|
||||
bool next();
|
||||
bool Next();
|
||||
|
||||
private:
|
||||
TestResults* m_results;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@ namespace UnitTest {
|
|||
private:
|
||||
friend class RequiredCheckTestReporter;
|
||||
|
||||
private:
|
||||
TestReporter* m_testReporter;
|
||||
int m_totalTestCount;
|
||||
int m_failedTestCount;
|
||||
|
|
|
|||
|
|
@ -36,12 +36,12 @@ namespace UnitTest {
|
|||
if(m_decoratedReporter) m_decoratedReporter->ReportSummary(totalTestCount, failedTestCount, failureCount, secondsElapsed);
|
||||
}
|
||||
|
||||
TestReporter* ThrowingTestReporter::getDecorated() const
|
||||
TestReporter* ThrowingTestReporter::GetDecorated() const
|
||||
{
|
||||
return m_decoratedReporter;
|
||||
}
|
||||
|
||||
void ThrowingTestReporter::setDecorated(TestReporter* reporter)
|
||||
void ThrowingTestReporter::SetDecorated(TestReporter* reporter)
|
||||
{
|
||||
m_decoratedReporter = reporter;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ namespace UnitTest {
|
|||
virtual void ReportTestFinish(TestDetails const& test, float secondsElapsed);
|
||||
virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed);
|
||||
|
||||
TestReporter* getDecorated() const;
|
||||
void setDecorated(TestReporter* reporter);
|
||||
TestReporter* GetDecorated() const;
|
||||
void SetDecorated(TestReporter* reporter);
|
||||
|
||||
private:
|
||||
TestReporter* m_decoratedReporter;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue