10000 Change camelCase methods to PascalCase · unittest-cpp/unittest-cpp@57fc32c · GitHub
[go: up one dir, main page]

Skip to content

Commit 57fc32c

Browse files
committed
Change camelCase methods to PascalCase
1 parent 40b8f0b commit 57fc32c

File tree

6 files changed

+10
-11
lines changed
  • 6 files changed

    +10
    -11
    lines changed

    UnitTest++/RequireMacros.h

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -8,11 +8,11 @@
    88
    #endif
    99

    1010
    #ifndef UNITTEST_NO_EXCEPTIONS
    11-
    #define REQUIRE for(UnitTest::RequiredCheckTestReporter decoratedReporter(UnitTest::CurrentTest::Results()); decoratedReporter.next(); )
    11+
    #define REQUIRE for(UnitTest::RequiredCheckTestReporter decoratedReporter(UnitTest::CurrentTest::Results()); decoratedReporter.Next(); )
    1212
    #endif
    1313

    1414
    #ifdef UNITTEST_NO_EXCEPTIONS
    15-
    #define REQUIRE
    15+
    #define REQUIRE
    1616
    #endif
    1717

    1818
    #endif

    UnitTest++/RequiredCheckTestReporter.cpp

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -12,17 +12,17 @@ namespace UnitTest {
    1212
    {
    1313
    if(m_results)
    1414
    {
    15-
    m_throwingReporter.setDecorated(m_results->m_testReporter);
    15+
    m_throwingReporter.SetDecorated(m_results->m_testReporter);
    1616
    m_results->m_testReporter = &m_throwingReporter;
    1717
    }
    1818
    }
    1919

    2020
    RequiredCheckTestReporter::~RequiredCheckTestReporter()
    2121
    {
    22-
    if(m_results) m_results->m_testReporter = m_throwingReporter.getDecorated();
    22+
    if(m_results) m_results->m_testReporter = m_throwingReporter.GetDecorated();
    2323
    }
    2424

    25-
    bool RequiredCheckTestReporter::next()
    25+
    bool RequiredCheckTestReporter::Next()
    2626
    {
    2727
    return m_continue++ == 0;
    2828
    }

    UnitTest++/RequiredCheckTestReporter.h

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -16,7 +16,7 @@ namespace UnitTest {
    1616
    explicit RequiredCheckTestReporter(TestResults* results);
    1717
    ~RequiredCheckTestReporter();
    1818

    19-
    bool next();
    19+
    bool Next();
    2020

    2121
    private:
    2222
    TestResults* m_results;

    UnitTest++/TestResults.h

    Lines changed: 0 additions & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -25,7 +25,6 @@ namespace UnitTest {
    2525
    private:
    2626
    friend class RequiredCheckTestReporter;
    2727

    28-
    private:
    2928
    TestReporter* m_testReporter;
    3029
    int m_totalTestCount;
    3130
    int m_failedTestCount;

    UnitTest++/ThrowingTestReporter.cpp

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -36,12 +36,12 @@ namespace UnitTest {
    3636
    if(m_decoratedReporter) m_decoratedReporter->ReportSummary(totalTestCount, failedTestCount, failureCount, secondsElapsed);
    3737
    }
    3838

    39-
    TestReporter* ThrowingTestReporter::getDecorated() const
    39+
    TestReporter* ThrowingTestReporter::GetDecorated() const
    4040
    {
    4141
    return m_decoratedReporter;
    4242
    }
    4343

    44-
    void ThrowingTestReporter::setDecorated(TestReporter* reporter)
    44+
    void ThrowingTestReporter::SetDecorated(TestReporter* reporter)
    4545
    {
    4646
    m_decoratedReporter = reporter;
    4747
    }

    UnitTest++/ThrowingTestReporter.h

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -18,8 +18,8 @@ namespace UnitTest {
    1818
    virtual void ReportTestFinish(TestDetails const& test, float secondsElapsed);
    1919
    virtual void ReportSummary(int totalTestCount, int failedTestCount, int failureCount, float secondsElapsed);
    2020

    21-
    TestReporter* getDecorated() const;
    22-
    void setDecorated(TestReporter* reporter);
    21+
    TestReporter* GetDecorated() const;
    22+
    void SetDecorated(TestReporter* reporter);
    2323

    2424
    private:
    2525
    TestReporter* m_decoratedReporter;

    0 commit comments

    Comments
     (0)
    0