| 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 { |
nothing calls this directly
no test coverage detected