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