MCPcopy Create free account
hub / github.com/apache/qpid-proton / preprocessPattern

Method preprocessPattern

tests/include/catch.hpp:14875–14889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14873 }
14874
14875 std::string TestSpecParser::preprocessPattern() {
14876 std::string token = m_patternName;
14877 for (std::size_t i = 0; i < m_escapeChars.size(); ++i)
14878 token = token.substr(0, m_escapeChars[i] - i) + token.substr(m_escapeChars[i] - i + 1);
14879 m_escapeChars.clear();
14880 if (startsWith(token, "exclude:")) {
14881 m_exclusion = true;
14882 token = token.substr(8);
14883 }
14884
14885 m_patternName.clear();
14886 m_realPatternPos = 0;
14887
14888 return token;
14889 }
14890
14891 void TestSpecParser::addNamePattern() {
14892 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