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

Method TestEnsureWithBackTrace1

util/generic/yexception_ut.cpp:111–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109 }
110
111 inline void TestEnsureWithBackTrace1() {
112 try {
113 Y_ENSURE_BT(4 > 6);
114 } catch (...) {
115 const TString msg = CurrentExceptionMessage();
116 UNIT_ASSERT(msg.Contains("4 > 6"));
117 UNIT_ASSERT(msg.Contains("\n"));
118 EnsureCurrentExceptionHasBackTrace<yexception>();
119 return;
120 }
121 UNIT_ASSERT(false);
122 }
123
124 inline void TestEnsureWithBackTrace2() {
125 try {

Callers

nothing calls this directly

Calls 2

CurrentExceptionMessageFunction · 0.85
ContainsMethod · 0.45

Tested by

no test coverage detected