MCPcopy Create free account
hub / github.com/catboost/catboost / FormatActual

Function FormatActual

library/cpp/testing/gtest_extensions/assertions.cpp:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7namespace 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 ";

Callers 2

Calls 7

StringSplitterFunction · 0.85
TypeNameFunction · 0.50
whatMethod · 0.45
SplitMethod · 0.45
PrintToStringMethod · 0.45
TokenMethod · 0.45
BackTraceMethod · 0.45

Tested by

no test coverage detected