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

Method Test

library/cpp/json/converter/ut/test_conversion.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 static void Test(const TValues& values) {
53 TestEncoding(values);
54 TestDecoding(values);
55
56 for (const auto& [serializedValue, value] : values) {
57 const auto encodedValue = TConverter<T>::Encode(value);
58 const auto decodedValue = TConverter<T>::Decode(encodedValue);
59 UNIT_ASSERT_EQUAL(value, decodedValue);
60 }
61 }
62 };
63
64 template <typename T>

Callers

nothing calls this directly

Calls 2

DecodeFunction · 0.85
EncodeFunction · 0.50

Tested by

no test coverage detected