MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / parseSpecialTag

Function parseSpecialTag

extlibs/catch/include/catch/catch.hpp:13448–13464  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13446
13447 namespace {
13448 TestCaseInfo::SpecialProperties parseSpecialTag( std::string const& tag ) {
13449 if( startsWith( tag, '.' ) ||
13450 tag == "!hide" )
13451 return TestCaseInfo::IsHidden;
13452 else if( tag == "!throws" )
13453 return TestCaseInfo::Throws;
13454 else if( tag == "!shouldfail" )
13455 return TestCaseInfo::ShouldFail;
13456 else if( tag == "!mayfail" )
13457 return TestCaseInfo::MayFail;
13458 else if( tag == "!nonportable" )
13459 return TestCaseInfo::NonPortable;
13460 else if( tag == "!benchmark" )
13461 return static_cast<TestCaseInfo::SpecialProperties>( TestCaseInfo::Benchmark | TestCaseInfo::IsHidden );
13462 else
13463 return TestCaseInfo::None;
13464 }
13465 bool isReservedTag( std::string const& tag ) {
13466 return parseSpecialTag( tag ) == TestCaseInfo::None && tag.size() > 0 && !std::isalnum( static_cast<unsigned char>(tag[0]) );
13467 }

Callers 3

isReservedTagFunction · 0.85
makeTestCaseFunction · 0.85
setTagsFunction · 0.85

Calls 1

startsWithFunction · 0.70

Tested by

no test coverage detected