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

Function CheckTryFromStringFail

tools/enum_parser/parse_enum/ut/enums.cpp:98–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97 template<typename T>
98 void CheckTryFromStringFail(const TString& strValue) {
99 T x = T(-666);
100 UNIT_ASSERT_VALUES_EQUAL(TryFromString(TStringBuf(strValue), x), false);
101 UNIT_ASSERT_VALUES_EQUAL(int(x), -666);
102 }
103
104 Y_UNIT_TEST(TryFromStringTest) {
105 // ESimple

Callers

nothing calls this directly

Calls 2

TryFromStringFunction · 0.85
TClass · 0.50

Tested by

no test coverage detected