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

Method TestFormat1

util/generic/yexception_ut.cpp:270–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268 }
269
270 inline void TestFormat1() {
271 try {
272 throw yexception() << 1 << " qw " << 12.1;
273 UNIT_ASSERT(false);
274 } catch (...) {
275 const TString err = CurrentExceptionMessage();
276
277 UNIT_ASSERT(err.Contains("1 qw 12.1"));
278 }
279 }
280
281 static inline void CheckCurrentExceptionContains(const char* message) {
282 TString err = CurrentExceptionMessage();

Callers

nothing calls this directly

Calls 3

yexceptionClass · 0.85
CurrentExceptionMessageFunction · 0.85
ContainsMethod · 0.45

Tested by

no test coverage detected