MCPcopy Create free account
hub / github.com/apache/trafficserver / parseSpecialTag

Function parseSpecialTag

lib/catch2/catch.hpp:14024–14040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

isReservedTagFunction · 0.85
makeTestCaseFunction · 0.85
setTagsFunction · 0.85

Calls 1

startsWithFunction · 0.85

Tested by

no test coverage detected