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

Function AssertJsonsEqual

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

Source from the content-addressed store, hash-verified

13
14namespace NJson {
15 void AssertJsonsEqual(const TJsonValue& actualJson, const TJsonValue& expectedJson) {
16 const auto actualString = WriteJson(actualJson, /*formatOutput*/ true, /*sortkeys*/ true, /*validateUtf8*/ true);
17 const auto expectedString = WriteJson(expectedJson, /*formatOutput*/ true, /*sortkeys*/ true, /*validateUtf8*/ true);
18 UNIT_ASSERT_NO_DIFF(actualString, expectedString);
19 }
20
21 void AssertJsonsEqual(const TJsonValue& actualJson, TStringBuf expectedString) {
22 const auto expectedJson = ReadJsonFastTree(expectedString);

Callers 1

TestEncodingMethod · 0.85

Calls 2

WriteJsonFunction · 0.50
ReadJsonFastTreeFunction · 0.50

Tested by

no test coverage detected