Home
last modified time | relevance | path

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

/openbmc/phosphor-logging/extensions/openpower-pels/
H A Dregistry.hpp432 uint8_t getSRCType(const nlohmann::json& src, const std::string& name);
H A Dregistry.cpp175 uint8_t getSRCType(const nlohmann::json& src, const std::string& name) in getSRCType() function
789 entry.src.type = helper::getSRCType(src, name); in lookup()
/openbmc/phosphor-logging/test/openpower-pels/
H A Dregistry_test.cpp375 EXPECT_EQ(getSRCType(R"({"Type": "11"})"_json, "foo"), 0x11); in TEST_F()
376 EXPECT_EQ(getSRCType(R"({"Type": "BF"})"_json, "foo"), 0xBF); in TEST_F()
378 EXPECT_THROW(getSRCType(R"({"Type": "1"})"_json, "foo"), in TEST_F()
381 EXPECT_THROW(getSRCType(R"({"Type": "111"})"_json, "foo"), in TEST_F()