Home
last modified time | relevance | path

Searched refs:subNodeStr (Results 1 – 2 of 2) sorted by relevance

/openbmc/bmcweb/test/redfish-core/include/utils/
H A Dsensor_utils_test.cpp52 std::string subNodeStr; in TEST() local
54 subNodeStr = chassisSubNodeToString(ChassisSubNode::powerNode); in TEST()
55 EXPECT_EQ(subNodeStr, "Power"); in TEST()
57 subNodeStr = chassisSubNodeToString(ChassisSubNode::sensorsNode); in TEST()
58 EXPECT_EQ(subNodeStr, "Sensors"); in TEST()
60 subNodeStr = chassisSubNodeToString(ChassisSubNode::thermalNode); in TEST()
61 EXPECT_EQ(subNodeStr, "Thermal"); in TEST()
63 subNodeStr = chassisSubNodeToString(ChassisSubNode::thermalMetricsNode); in TEST()
64 EXPECT_EQ(subNodeStr, "ThermalMetrics"); in TEST()
66 subNodeStr = chassisSubNodeToString(ChassisSubNode::unknownNode); in TEST()
[all …]
/openbmc/bmcweb/redfish-core/include/utils/
H A Dsensor_utils.hpp57 inline ChassisSubNode chassisSubNodeFromString(const std::string& subNodeStr) in chassisSubNodeFromString() argument
62 if (subNodeStr == "Power") in chassisSubNodeFromString()
66 else if (subNodeStr == "Sensors") in chassisSubNodeFromString()
70 else if (subNodeStr == "Thermal") in chassisSubNodeFromString()
74 else if (subNodeStr == "ThermalMetrics") in chassisSubNodeFromString()