| 11367 | |
| 11368 | namespace { |
| 11369 | TestCaseInfo::SpecialProperties parseSpecialTag( std::string const& tag ) { |
| 11370 | if( startsWith( tag, '.' ) || |
| 11371 | tag == "!hide" ) |
| 11372 | return TestCaseInfo::IsHidden; |
| 11373 | else if( tag == "!throws" ) |
| 11374 | return TestCaseInfo::Throws; |
| 11375 | else if( tag == "!shouldfail" ) |
| 11376 | return TestCaseInfo::ShouldFail; |
| 11377 | else if( tag == "!mayfail" ) |
| 11378 | return TestCaseInfo::MayFail; |
| 11379 | else if( tag == "!nonportable" ) |
| 11380 | return TestCaseInfo::NonPortable; |
| 11381 | else if( tag == "!benchmark" ) |
| 11382 | return static_cast<TestCaseInfo::SpecialProperties>( TestCaseInfo::Benchmark | TestCaseInfo::IsHidden ); |
| 11383 | else |
| 11384 | return TestCaseInfo::None; |
| 11385 | } |
| 11386 | bool isReservedTag( std::string const& tag ) { |
| 11387 | return parseSpecialTag( tag ) == TestCaseInfo::None && tag.size() > 0 && !std::isalnum( static_cast<unsigned char>(tag[0]) ); |
| 11388 | } |
no test coverage detected