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

Method CheckExc

util/string/cast_ut.cpp:63–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62 template <class B>
63 inline void CheckExc(B v) {
64 UNIT_ASSERT_EXCEPTION(FromString<A>(ToString(v)), yexception); // char
65 UNIT_ASSERT_EXCEPTION(FromString<A>(ToWtring(v)), yexception); // wide char
66 HEX_MACROS_MAP(EXC_HEX_CHECK, A, v);
67 }
68
69 template <class B>
70 inline void CheckTryOK(B v) {

Callers

nothing calls this directly

Calls 2

ToWtringFunction · 0.85
ToStringFunction · 0.70

Tested by

no test coverage detected