| 8099 | namespace 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 | } |
no test coverage detected