/openbmc/phosphor-power/phosphor-regulators/test/actions/ |
H A D | log_phase_fault_action_tests.cpp | 28 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 D | action_environment_tests.cpp | 92 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 D | phase_fault.hpp | 36 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 D | phase_fault_detection.cpp | 63 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 D | phase_fault_detection.hpp | 152 void checkForPhaseFault(PhaseFaultType faultType, Services& services, 163 void logPhaseFault(PhaseFaultType faultType, Services& services,
|
H A D | error_logging.hpp | 115 PhaseFaultType type, const std::string& inventoryPath, 189 Entry::Level severity, Journal& journal, PhaseFaultType type,
|
H A D | error_logging.cpp | 90 Entry::Level severity, Journal& journal, PhaseFaultType type, in logPhaseFault() 95 (type == PhaseFaultType::n) in logPhaseFault()
|
H A D | config_file_parser.cpp | 746 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 D | config_file_parser.hpp | 585 PhaseFaultType parsePhaseFaultType(const nlohmann::json& element);
|
/openbmc/phosphor-power/phosphor-regulators/test/ |
H A D | phase_fault_tests.cpp | 25 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 D | phase_fault_detection_tests.cpp | 191 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 D | mock_error_logging.hpp | 57 (Entry::Level severity, Journal& journal, PhaseFaultType type,
|
H A D | system_tests.cpp | 296 auto action = std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST() 324 auto action = std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST()
|
H A D | chassis_tests.cpp | 461 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F() 484 std::make_unique<LogPhaseFaultAction>(PhaseFaultType::n); in TEST_F()
|
H A D | device_tests.cpp | 264 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 D | config_file_parser_tests.cpp | 3451 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 D | log_phase_fault_action.hpp | 50 explicit LogPhaseFaultAction(PhaseFaultType type) : type{type} {} in LogPhaseFaultAction() 71 PhaseFaultType getType() const in getType() 90 const PhaseFaultType type;
|
H A D | action_environment.hpp | 100 void addPhaseFault(PhaseFaultType type) in addPhaseFault() 156 const std::set<PhaseFaultType>& getPhaseFaults() const in getPhaseFaults() 276 std::set<PhaseFaultType> phaseFaults{};
|