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

Method TestRethrowAppend

util/generic/yexception_ut.cpp:67–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65
66private:
67 inline void TestRethrowAppend() {
68 try {
69 try {
70 ythrow yexception() << "it";
71 } catch (yexception& e) {
72 e << "happens";
73
74 throw;
75 }
76 } catch (...) {
77 UNIT_ASSERT(CurrentExceptionMessage().Contains("ithappens"));
78 }
79 }
80
81 inline void TestCurrentExceptionMessageWhenThereisNoException() {
82 UNIT_ASSERT(CurrentExceptionMessage() == "(NO EXCEPTION)");

Callers

nothing calls this directly

Calls 2

CurrentExceptionMessageFunction · 0.85
ContainsMethod · 0.45

Tested by

no test coverage detected