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

Function TEST

library/cpp/yt/yson_string/unittests/convert_ut.cpp:22–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22TEST(TConvertTest, Basic)
23{
24 Check<i8>(13);
25 Check<i32>(13);
26 Check<i64>(13);
27 Check<i8>(-13);
28 Check<i32>(-13);
29 Check<i64>(-13);
30 Check<ui8>(13);
31 Check<ui32>(13);
32 Check<ui64>(13);
33 Check<TString>("");
34 Check<TString>("hello");
35 Check<TStringBuf, TString>("hello");
36 Check<const char*, TString>("hello");
37 Check<float>(3.14);
38 Check<double>(3.14);
39 Check<bool>(true);
40 Check<bool>(false);
41 Check<TInstant>(TInstant::Now());
42 Check<TDuration>(TDuration::Seconds(123));
43 Check<TGuid>(TGuid::FromString("12345678-12345678-abcdabcd-fefefefe"));
44}
45
46TEST(TConvertTest, InRange)
47{

Callers

nothing calls this directly

Calls 4

ConvertToYsonStringFunction · 0.85
NowFunction · 0.50
SecondsFunction · 0.50
FromStringFunction · 0.50

Tested by

no test coverage detected