Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include/internal/catch_test_case_info.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-06-22 20:11:14 +0200
committerMartin Hořeňovský2019-10-29 14:07:18 +0100
commit2bcf1b3db6e1a61328f1efe093d749ef40e0bbd6 (patch)
treed14888a076ac69459f215a0164e86510c133de05 /include/internal/catch_test_case_info.cpp
parentbe44cfa63baf05342d7cea6156504045a56bedf1 (diff)
downloadcatch3-2bcf1b3db6e1a61328f1efe093d749ef40e0bbd6.tar.gz
Remove support for test case descriptions
Closes #1189
Diffstat (limited to 'include/internal/catch_test_case_info.cpp')
-rw-r--r--include/internal/catch_test_case_info.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/internal/catch_test_case_info.cpp b/include/internal/catch_test_case_info.cpp
index 685ee30f..f9c22c81 100644
--- a/include/internal/catch_test_case_info.cpp
+++ b/include/internal/catch_test_case_info.cpp
@@ -57,16 +57,14 @@ namespace Catch {
// Parse out tags
std::vector<std::string> tags;
- std::string desc, tag;
+ std::string tag;
bool inTag = false;
for (char c : nameAndTags.tags) {
if( !inTag ) {
- if( c == '[' )
+ if (c == '[') {
inTag = true;
- else
- desc += c;
- }
- else {
+ }
+ } else {
if( c == ']' ) {
TestCaseInfo::SpecialProperties prop = parseSpecialTag( tag );
if( ( prop & TestCaseInfo::IsHidden ) != 0 )
@@ -92,7 +90,7 @@ namespace Catch {
tags.push_back( "." );
}
- TestCaseInfo info( static_cast<std::string>(nameAndTags.name), _className, desc, tags, _lineInfo );
+ TestCaseInfo info( static_cast<std::string>(nameAndTags.name), _className, tags, _lineInfo );
return TestCase( _testCase, std::move(info) );
}
@@ -111,12 +109,10 @@ namespace Catch {
TestCaseInfo::TestCaseInfo( std::string const& _name,
std::string const& _className,
- std::string const& _description,
std::vector<std::string> const& _tags,
SourceLineInfo const& _lineInfo )
: name( _name ),
className( _className ),
- description( _description ),
lineInfo( _lineInfo ),
properties( None )
{