Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Small naming correction

Commit
625fc832eec2af7b1e7d1126ddc014505d69baa4
Author
Phil Nash ·
Parents
deb3ced619cc

Files · Download .tar.gz

Changes

 include/reporters/catch_reporter_basic.hpp               | 12 ++++++------
 projects/XCode4/CatchSelfTest/CatchSelfTest/BDDTests.cpp |  9 +++++++++
 projects/XCode4/CatchSelfTest/CatchSelfTest/File.h       | 14 ++++++++++++++
 3 files changed, 29 insertions(+), 6 deletions(-)

diff --git a/include/reporters/catch_reporter_basic.hpp b/include/reporters/catch_reporter_basic.hpp
index 6b794ca6..33d381f0 100644
--- a/include/reporters/catch_reporter_basic.hpp
+++ b/include/reporters/catch_reporter_basic.hpp
@@ -129,12 +129,12 @@ namespace Catch {
         }
 
         virtual void NoAssertionsInSection( const std::string& sectionName ) {
-            StartSpansLazily();
+            startSpansLazily();
             TextColour colour( TextColour::ResultError );
             m_config.stream << "\nNo assertions in section, '" << sectionName << "'\n" << std::endl;
         }
         virtual void NoAssertionsInTestCase( const std::string& testName ) {
-            StartSpansLazily();
+            startSpansLazily();
             TextColour colour( TextColour::ResultError );
             m_config.stream << "\nNo assertions in test case, '" << testName << "'\n" << std::endl;
         }
@@ -163,7 +163,7 @@ namespace Catch {
             if( !m_config.includeSuccessfulResults && resultInfo.getResultType() == ResultWas::Ok )
                 return;
             
-            StartSpansLazily();
+            startSpansLazily();
             
             if( !resultInfo.getFilename().empty() ) {
                 TextColour colour( TextColour::FileName );
@@ -245,12 +245,12 @@ namespace Catch {
                                     const std::string& stdOut, 
                                     const std::string& stdErr ) {
             if( !stdOut.empty() ) {
-                StartSpansLazily();
+                startSpansLazily();
                 streamVariableLengthText( "stdout", stdOut );
             }
             
             if( !stdErr.empty() ) {
-                StartSpansLazily();
+                startSpansLazily();
                 streamVariableLengthText( "stderr", stdErr );
             }
             
@@ -263,7 +263,7 @@ namespace Catch {
         
     private: // helpers
         
-        void StartSpansLazily() {
+        void startSpansLazily() {
             if( !m_testingSpan.emitted ) {
                 if( m_config.name.empty() )
                     m_config.stream << "[Started testing]" << std::endl;
diff --git a/projects/XCode4/CatchSelfTest/CatchSelfTest/BDDTests.cpp b/projects/XCode4/CatchSelfTest/CatchSelfTest/BDDTests.cpp
new file mode 100644
index 00000000..c0177bc8
--- /dev/null
+++ b/projects/XCode4/CatchSelfTest/CatchSelfTest/BDDTests.cpp
@@ -0,0 +1,9 @@
+//
+//  File.cpp
+//  CatchSelfTest
+//
+//  Created by Phil Nash on 02/09/2012.
+//
+//
+
+#include "File.h"
diff --git a/projects/XCode4/CatchSelfTest/CatchSelfTest/File.h b/projects/XCode4/CatchSelfTest/CatchSelfTest/File.h
new file mode 100644
index 00000000..ba6e9cff
--- /dev/null
+++ b/projects/XCode4/CatchSelfTest/CatchSelfTest/File.h
@@ -0,0 +1,14 @@
+//
+//  File.h
+//  CatchSelfTest
+//
+//  Created by Phil Nash on 02/09/2012.
+//
+//
+
+#ifndef __CatchSelfTest__File__
+#define __CatchSelfTest__File__
+
+#include <iostream>
+
+#endif /* defined(__CatchSelfTest__File__) */