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