MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / preprocessPattern

Method preprocessPattern

Source/ThirdParty/catch2/catch.hpp:14864–14878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14862 }
14863
14864 std::string TestSpecParser::preprocessPattern() {
14865 std::string token = m_patternName;
14866 for (std::size_t i = 0; i < m_escapeChars.size(); ++i)
14867 token = token.substr(0, m_escapeChars[i] - i) + token.substr(m_escapeChars[i] - i + 1);
14868 m_escapeChars.clear();
14869 if (startsWith(token, "exclude:")) {
14870 m_exclusion = true;
14871 token = token.substr(8);
14872 }
14873
14874 m_patternName.clear();
14875 m_realPatternPos = 0;
14876
14877 return token;
14878 }
14879
14880 void TestSpecParser::addNamePattern() {
14881 auto token = preprocessPattern();

Callers

nothing calls this directly

Calls 4

startsWithFunction · 0.85
substrMethod · 0.80
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected