MCPcopy Create free account
hub / github.com/Profactor/cv-plot / preprocessPattern

Method preprocessPattern

CvPlot/ext/catch2/inc/catch.hpp:14572–14585  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14570 }
14571
14572 std::string TestSpecParser::preprocessPattern() {
14573 std::string token = m_patternName;
14574 for (std::size_t i = 0; i < m_escapeChars.size(); ++i)
14575 token = token.substr(0, m_escapeChars[i] - i) + token.substr(m_escapeChars[i] - i + 1);
14576 m_escapeChars.clear();
14577 if (startsWith(token, "exclude:")) {
14578 m_exclusion = true;
14579 token = token.substr(8);
14580 }
14581
14582 m_patternName.clear();
14583
14584 return token;
14585 }
14586
14587 void TestSpecParser::addNamePattern() {
14588 auto token = preprocessPattern();

Callers

nothing calls this directly

Calls 3

startsWithFunction · 0.85
sizeMethod · 0.80
substrMethod · 0.80

Tested by

no test coverage detected