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

Function parseSpecialTag

Source/ThirdParty/catch2/catch.hpp:14017–14033  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

isReservedTagFunction · 0.85
makeTestCaseFunction · 0.85
setTagsFunction · 0.85

Calls 1

startsWithFunction · 0.85

Tested by

no test coverage detected