Searched refs:getEstimatedJsonSize (Results 1 – 3 of 3) sorted by relevance
/openbmc/bmcweb/redfish-core/src/utils/ |
H A D | json_utils.cpp | 42 uint64_t getEstimatedJsonSize(const nlohmann::json& root) in getEstimatedJsonSize() function 72 sum += getEstimatedJsonSize(element); in getEstimatedJsonSize() 84 sum += k.size() + getEstimatedJsonSize(v) + colonQuoteSpaceSize; in getEstimatedJsonSize()
|
/openbmc/bmcweb/test/redfish-core/include/utils/ |
H A D | json_utils_test.cpp | 580 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(123)), 8); in TEST() 581 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(77777777777)), 8); in TEST() 582 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(3.14)), 8); in TEST() 587 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(true)), 5); in TEST() 588 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json(false)), 5); in TEST() 593 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json()), 4); in TEST() 598 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json("1234")), 6); in TEST() 599 EXPECT_EQ(getEstimatedJsonSize(nlohmann::json::binary({1, 2, 3, 4})), 4); in TEST() 605 EXPECT_EQ(getEstimatedJsonSize(arr), 8 + 8 + 5 + 4); in TEST() 630 EXPECT_EQ(getEstimatedJsonSize(obj), expected); in TEST()
|
/openbmc/bmcweb/redfish-core/include/utils/ |
H A D | json_utils.hpp | 901 uint64_t getEstimatedJsonSize(const nlohmann::json& root);
|