MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / enforceNotReservedTag

Function enforceNotReservedTag

unittests/catch.hpp:9852–9857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9850 return parseSpecialTag( tag ) == TestCaseInfo::None && tag.size() > 0 && !std::isalnum( tag[0] );
9851 }
9852 void enforceNotReservedTag( std::string const& tag, SourceLineInfo const& _lineInfo ) {
9853 CATCH_ENFORCE( !isReservedTag(tag),
9854 "Tag name: [" << tag << "] is not allowed.\n"
9855 << "Tag names starting with non alpha-numeric characters are reserved\n"
9856 << _lineInfo );
9857 }
9858
9859 TestCase makeTestCase( ITestInvoker* _testCase,
9860 std::string const& _className,

Callers 1

makeTestCaseFunction · 0.85

Calls 1

isReservedTagFunction · 0.85

Tested by

no test coverage detected