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

Remove unused method on TestCase

Commit
09b66ccfdebf6ed951cb18b222037a04d7584540
Author
Martin Hořeňovský ·
Parents
d1cb727e85b5

Files · Download .tar.gz

Changes

 include/internal/catch_test_case_info.cpp | 6 ------
 include/internal/catch_test_case_info.h   | 2 --
 2 files changed, 8 deletions(-)

diff --git a/include/internal/catch_test_case_info.cpp b/include/internal/catch_test_case_info.cpp
index a2069051..b610d7a4 100644
--- a/include/internal/catch_test_case_info.cpp
+++ b/include/internal/catch_test_case_info.cpp
@@ -158,12 +158,6 @@ namespace Catch {
     TestCase::TestCase( ITestInvoker* testCase, TestCaseInfo&& info ) : TestCaseInfo( std::move(info) ), test( testCase ) {}
 
 
-    TestCase TestCase::withName( std::string const& _newName ) const {
-        TestCase other( *this );
-        other.name = _newName;
-        return other;
-    }
-
     void TestCase::invoke() const {
         test->invoke();
     }
diff --git a/include/internal/catch_test_case_info.h b/include/internal/catch_test_case_info.h
index 1ade26fc..b78cde22 100644
--- a/include/internal/catch_test_case_info.h
+++ b/include/internal/catch_test_case_info.h
@@ -62,8 +62,6 @@ namespace Catch {
 
         TestCase( ITestInvoker* testCase, TestCaseInfo&& info );
 
-        TestCase withName( std::string const& _newName ) const;
-
         void invoke() const;
 
         TestCaseInfo const& getTestCaseInfo() const;