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

Method TestBackTrace

util/generic/yexception_ut.cpp:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 }
84
85 inline void TestBackTrace() {
86 try {
87 ythrow TWithBackTrace<TIoSystemError>() << "test";
88 } catch (...) {
89 UNIT_ASSERT(CurrentExceptionMessage().find('\n') != TString::npos);
90
91 return;
92 }
93
94 UNIT_ASSERT(false);
95 }
96
97 template <typename TException>
98 static void EnsureCurrentExceptionHasBackTrace() {

Callers

nothing calls this directly

Calls 2

CurrentExceptionMessageFunction · 0.85
findMethod · 0.45

Tested by

no test coverage detected