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

Function CheckTryFromString

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

Source from the content-addressed store, hash-verified

89
90 template<typename T>
91 void CheckTryFromString(const TString& strValue, const T& value) {
92 T x;
93 UNIT_ASSERT_VALUES_EQUAL(TryFromString(TStringBuf(strValue), x), true);
94 UNIT_ASSERT_VALUES_EQUAL(x, value);
95 }
96
97 template<typename T>
98 void CheckTryFromStringFail(const TString& strValue) {

Callers 1

Y_UNIT_TESTFunction · 0.85

Calls 1

TryFromStringFunction · 0.85

Tested by

no test coverage detected