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

Method TestSetFormatBackTraceFn

util/system/backtrace_ut.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void TestSetFormatBackTraceFn() {
50 TFormatBackTraceFn prevFn = SetFormatBackTraceFn(FormatBackTraceReplacement);
51 TStringStream out;
52 FormatBackTrace(&out);
53 SetFormatBackTraceFn(prevFn);
54 UNIT_ASSERT(out.Str().Contains("WorksLikeACharm"));
55 TestPrintBackTrace();
56 }
57
58 void TestBackTrace() {
59 // PrintBackTrace();

Callers

nothing calls this directly

Calls 4

SetFormatBackTraceFnFunction · 0.85
FormatBackTraceFunction · 0.85
ContainsMethod · 0.45
StrMethod · 0.45

Tested by

no test coverage detected