MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/TriangleMeshDistance / parseSpecialTag

Function parseSpecialTag

tests/catch.hpp:11369–11385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 }

Callers 3

isReservedTagFunction · 0.85
makeTestCaseFunction · 0.85
setTagsFunction · 0.85

Calls 1

startsWithFunction · 0.85

Tested by

no test coverage detected