MCPcopy Create free account
hub / github.com/apache/qpid-proton / parseSpecialTag

Function parseSpecialTag

tests/include/catch.hpp:14028–14044  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14026
14027 namespace {
14028 TestCaseInfo::SpecialProperties parseSpecialTag( std::string const& tag ) {
14029 if( startsWith( tag, '.' ) ||
14030 tag == "!hide" )
14031 return TestCaseInfo::IsHidden;
14032 else if( tag == "!throws" )
14033 return TestCaseInfo::Throws;
14034 else if( tag == "!shouldfail" )
14035 return TestCaseInfo::ShouldFail;
14036 else if( tag == "!mayfail" )
14037 return TestCaseInfo::MayFail;
14038 else if( tag == "!nonportable" )
14039 return TestCaseInfo::NonPortable;
14040 else if( tag == "!benchmark" )
14041 return static_cast<TestCaseInfo::SpecialProperties>( TestCaseInfo::Benchmark | TestCaseInfo::IsHidden );
14042 else
14043 return TestCaseInfo::None;
14044 }
14045 bool isReservedTag( std::string const& tag ) {
14046 return parseSpecialTag( tag ) == TestCaseInfo::None && tag.size() > 0 && !std::isalnum( static_cast<unsigned char>(tag[0]) );
14047 }

Callers 3

isReservedTagFunction · 0.85
makeTestCaseFunction · 0.85
setTagsFunction · 0.85

Calls 1

startsWithFunction · 0.85

Tested by

no test coverage detected