| 7 | namespace NGTest::NInternal { |
| 8 | namespace { |
| 9 | void FormatActual(const std::exception& err, const TBackTrace* bt, TStringBuilder& out) { |
| 10 | out << "an exception of type " << TypeName(err) << " " |
| 11 | << "with message " << TString(err.what()).Quote() << "."; |
| 12 | if (bt) { |
| 13 | out << "\n Trace: "; |
| 14 | for (auto& line: StringSplitter(bt->PrintToString()).Split('\n')) { |
| 15 | out << " " << line.Token() << "\n"; |
| 16 | } |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | void FormatActual(TStringBuilder& out) { |
| 21 | out << " Actual: it throws "; |
no test coverage detected