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

Method describe

unittests/catch.hpp:2293–2307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2291 return false;
2292 }
2293 std::string describe() const override {
2294 std::string description;
2295 description.reserve( 4 + m_matchers.size()*32 );
2296 description += "( ";
2297 bool first = true;
2298 for( auto matcher : m_matchers ) {
2299 if( first )
2300 first = false;
2301 else
2302 description += " or ";
2303 description += matcher->toString();
2304 }
2305 description += " )";
2306 return description;
2307 }
2308
2309 MatchAnyOf<ArgT>& operator || ( MatcherBase<ArgT> const& other ) {
2310 m_matchers.push_back( &other );

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected