Home
last modified time | relevance | path

Searched refs:getEstimatedJsonSize (Results 1 – 3 of 3) sorted by relevance

/openbmc/bmcweb/redfish-core/src/utils/
H A Djson_utils.cpp54 uint64_t getEstimatedJsonSize(const nlohmann::json& root) in getEstimatedJsonSize() function
84 sum += getEstimatedJsonSize(element); in getEstimatedJsonSize()
96 sum += k.size() + getEstimatedJsonSize(v) + colonQuoteSpaceSize; in getEstimatedJsonSize()
/openbmc/bmcweb/test/redfish-core/include/utils/
H A Djson_utils_test.cpp533 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(123)), 8); in TEST()
534 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(77777777777)), 8); in TEST()
535 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(3.14)), 8); in TEST()
540 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(true)), 5); in TEST()
541 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(false)), 5); in TEST()
546 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json()), 4); in TEST()
551 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json("1234")), 6); in TEST()
552 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json::binary({1, 2, 3, 4})), 4); in TEST()
558 EXPECT_EQ(getEstimatedJsonSize(arr), 8 + 8 + 5 + 4); in TEST()
583 EXPECT_EQ(getEstimatedJsonSize(obj), expected); in TEST()
/openbmc/bmcweb/redfish-core/include/utils/
H A Djson_utils.hpp872 uint64_t getEstimatedJsonSize(const nlohmann::json& root);