Home
last modified time | relevance | path

Searched refs:PhaseFaultType (Results 1 – 18 of 18) sorted by relevance

/openbmc/phosphor-power/phosphor-regulators/test/actions/
H A Dlog_phase_fault_action_tests.cpp28 LogPhaseFaultAction action{PhaseFaultType::n}; in TEST()
29 EXPECT_EQ(action.getType(), PhaseFaultType::n); in TEST()
41 LogPhaseFaultAction action{PhaseFaultType::n}; in TEST()
45 EXPECT_EQ(env.getPhaseFaults().count(PhaseFaultType::n), 1); in TEST()
55 LogPhaseFaultAction action{PhaseFaultType::n_plus_1}; in TEST()
59 EXPECT_EQ(env.getPhaseFaults().count(PhaseFaultType::n_plus_1), 1); in TEST()
65 LogPhaseFaultAction action{PhaseFaultType::n_plus_1}; in TEST()
66 EXPECT_EQ(action.getType(), PhaseFaultType::n_plus_1); in TEST()
71 LogPhaseFaultAction action{PhaseFaultType::n_plus_1}; in TEST()
H A Daction_environment_tests.cpp92 env.addPhaseFault(PhaseFaultType::n); in TEST()
94 EXPECT_EQ(env.getPhaseFaults().count(PhaseFaultType::n), 1); in TEST()
95 EXPECT_EQ(env.getPhaseFaults().count(PhaseFaultType::n_plus_1), 0); in TEST()
98 env.addPhaseFault(PhaseFaultType::n_plus_1); in TEST()
100 EXPECT_EQ(env.getPhaseFaults().count(PhaseFaultType::n), 1); in TEST()
101 EXPECT_EQ(env.getPhaseFaults().count(PhaseFaultType::n_plus_1), 1); in TEST()
104 env.addPhaseFault(PhaseFaultType::n_plus_1); in TEST()
207 env.addPhaseFault(PhaseFaultType::n); in TEST()
208 env.addPhaseFault(PhaseFaultType::n_plus_1); in TEST()
210 EXPECT_EQ(env.getPhaseFaults().count(PhaseFaultType::n), 1); in TEST()
[all …]
/openbmc/phosphor-power/phosphor-regulators/src/
H A Dphase_fault.hpp36 enum class PhaseFaultType : unsigned char enum
63 inline ErrorType toErrorType(PhaseFaultType type) in toErrorType()
68 case PhaseFaultType::n: in toErrorType()
71 case PhaseFaultType::n_plus_1: in toErrorType()
84 inline std::string toString(PhaseFaultType type) in toString()
89 case PhaseFaultType::n: in toString()
92 case PhaseFaultType::n_plus_1: in toString()
H A Dphase_fault_detection.cpp63 checkForPhaseFault(PhaseFaultType::n, services, regulator, environment); in execute()
64 checkForPhaseFault(PhaseFaultType::n_plus_1, services, regulator, in execute()
87 PhaseFaultType faultType, Services& services, Device& regulator, in checkForPhaseFault()
98 (faultType == PhaseFaultType::n) ? nFaultCount : nPlus1FaultCount; in checkForPhaseFault()
127 void PhaseFaultDetection::logPhaseFault(PhaseFaultType faultType, in logPhaseFault()
132 Entry::Level severity = (faultType == PhaseFaultType::n) in logPhaseFault()
H A Dphase_fault_detection.hpp152 void checkForPhaseFault(PhaseFaultType faultType, Services& services,
163 void logPhaseFault(PhaseFaultType faultType, Services& services,
H A Derror_logging.hpp115 PhaseFaultType type, const std::string& inventoryPath,
189 Entry::Level severity, Journal& journal, PhaseFaultType type,
H A Derror_logging.cpp90 Entry::Level severity, Journal& journal, PhaseFaultType type, in logPhaseFault()
95 (type == PhaseFaultType::n) in logPhaseFault()
H A Dconfig_file_parser.cpp746 PhaseFaultType type = parsePhaseFaultType(typeElement); in parseLogPhaseFault()
810 PhaseFaultType parsePhaseFaultType(const json& element) in parsePhaseFaultType()
813 PhaseFaultType type{}; in parsePhaseFaultType()
817 type = PhaseFaultType::n; in parsePhaseFaultType()
821 type = PhaseFaultType::n_plus_1; in parsePhaseFaultType()
H A Dconfig_file_parser.hpp585 PhaseFaultType parsePhaseFaultType(const nlohmann::json& element);
/openbmc/phosphor-power/phosphor-regulators/test/
H A Dphase_fault_tests.cpp25 EXPECT_EQ(toErrorType(PhaseFaultType::n), ErrorType::phaseFaultN); in TEST()
26 EXPECT_EQ(toErrorType(PhaseFaultType::n_plus_1), in TEST()
32 EXPECT_EQ(toString(PhaseFaultType::n), "n"); in TEST()
33 EXPECT_EQ(toString(PhaseFaultType::n_plus_1), "n+1"); in TEST()
H A Dphase_fault_detection_tests.cpp191 actions.push_back(std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n)); in TEST_F()
195 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n_plus_1)); in TEST_F()
238 EXPECT_CALL(errorLogging, logPhaseFault(_, _, PhaseFaultType::n, _, _)) in TEST_F()
241 logPhaseFault(_, _, PhaseFaultType::n_plus_1, _, _)) in TEST_F()
379 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
434 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n_plus_1); in TEST_F()
474 auto action = std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
504 PhaseFaultType::n, regulator->getFRU(), in TEST_F()
508 logPhaseFault(_, _, PhaseFaultType::n_plus_1, _, _)) in TEST_F()
522 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n_plus_1); in TEST_F()
[all …]
H A Dmock_error_logging.hpp57 (Entry::Level severity, Journal& journal, PhaseFaultType type,
H A Dsystem_tests.cpp296 auto action = std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST()
324 auto action = std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST()
H A Dchassis_tests.cpp461 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
484 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
H A Ddevice_tests.cpp264 auto action = std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
658 auto action = std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
H A Dconfig_file_parser_tests.cpp3451 EXPECT_EQ(action->getType(), PhaseFaultType::n_plus_1); in TEST()
3741 PhaseFaultType type = parsePhaseFaultType(element); in TEST()
3742 EXPECT_EQ(type, PhaseFaultType::n); in TEST()
3748 PhaseFaultType type = parsePhaseFaultType(element); in TEST()
3749 EXPECT_EQ(type, PhaseFaultType::n_plus_1); in TEST()
/openbmc/phosphor-power/phosphor-regulators/src/actions/
H A Dlog_phase_fault_action.hpp50 explicit LogPhaseFaultAction(PhaseFaultType type) : type{type} {} in LogPhaseFaultAction()
71 PhaseFaultType getType() const in getType()
90 const PhaseFaultType type;
H A Daction_environment.hpp100 void addPhaseFault(PhaseFaultType type) in addPhaseFault()
156 const std::set<PhaseFaultType>& getPhaseFaults() const in getPhaseFaults()
276 std::set<PhaseFaultType> phaseFaults{};