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

Function parseSpecialTag

compiler/cpp/tests/catch/catch.hpp:8101–8116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8099namespace Catch {
8100
8101 inline TestCaseInfo::SpecialProperties parseSpecialTag( std::string const& tag ) {
8102 if( startsWith( tag, '.' ) ||
8103 tag == "hide" ||
8104 tag == "!hide" )
8105 return TestCaseInfo::IsHidden;
8106 else if( tag == "!throws" )
8107 return TestCaseInfo::Throws;
8108 else if( tag == "!shouldfail" )
8109 return TestCaseInfo::ShouldFail;
8110 else if( tag == "!mayfail" )
8111 return TestCaseInfo::MayFail;
8112 else if( tag == "!nonportable" )
8113 return TestCaseInfo::NonPortable;
8114 else
8115 return TestCaseInfo::None;
8116 }
8117 inline bool isReservedTag( std::string const& tag ) {
8118 return parseSpecialTag( tag ) == TestCaseInfo::None && tag.size() > 0 && !std::isalnum( tag[0] );
8119 }

Callers 3

isReservedTagFunction · 0.85
makeTestCaseFunction · 0.85
setTagsFunction · 0.85

Calls 1

startsWithFunction · 0.85

Tested by

no test coverage detected