MCPcopy Create free account
hub / github.com/catchorg/Catch2 / formatReconstructedExpression

Function formatReconstructedExpression

extras/catch_amalgamated.cpp:4046–4053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4044 }
4045
4046 void formatReconstructedExpression( std::ostream &os, std::string const& lhs, StringRef op, std::string const& rhs ) {
4047 if( lhs.size() + rhs.size() < 40 &&
4048 lhs.find('\n') == std::string::npos &&
4049 rhs.find('\n') == std::string::npos )
4050 os << lhs << ' ' << op << ' ' << rhs;
4051 else
4052 os << lhs << '\n' << op << '\n' << rhs;
4053 }
4054}
4055
4056

Callers 1

Calls 2

sizeMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected