Home
last modified time | relevance | path

Searched refs:has_value (Results 1 – 25 of 116) sorted by relevance

12345

/openbmc/phosphor-power/phosphor-regulators/test/
H A Dpresence_detection_tests.cpp103 EXPECT_FALSE(detection.getCachedPresence().has_value()); in TEST()
122 EXPECT_FALSE(detection->getCachedPresence().has_value()); in TEST()
129 EXPECT_TRUE(detection->getCachedPresence().has_value()); in TEST()
136 EXPECT_FALSE(detection->getCachedPresence().has_value()); in TEST()
158 EXPECT_FALSE(detection->getCachedPresence().has_value()); in TEST()
174 EXPECT_TRUE(detection->getCachedPresence().has_value()); in TEST()
180 EXPECT_TRUE(detection->getCachedPresence().has_value()); in TEST()
197 EXPECT_FALSE(detection->getCachedPresence().has_value()); in TEST()
213 EXPECT_TRUE(detection->getCachedPresence().has_value()); in TEST()
219 EXPECT_TRUE(detection->getCachedPresence().has_value()); in TEST()
[all …]
/openbmc/phosphor-bmc-code-mgmt/eeprom-device/
H A Deeprom_device_software_manager.cpp56 if (!bus.has_value() || !address.has_value() || !type.has_value() || in initDevice()
57 !fwDevice.has_value()) in initDevice()
118 if (bus.has_value() && address.has_value() && type.has_value()) in initDevice()
126 if (!bus.has_value() || !address.has_value() || !type.has_value()) in initDevice()
151 if (!name.has_value() || !polarity.has_value()) in initDevice()
/openbmc/phosphor-power/phosphor-regulators/src/actions/
H A Dpmbus_write_vout_command_action.cpp79 if (volts.has_value()) in toString()
86 if (exponent.has_value()) in toString()
99 if (exponent.has_value()) in getExponentValue()
130 if (volts.has_value()) in getVoltsValue()
135 else if (environment.getVolts().has_value()) in getVoltsValue()
H A Dpmbus_read_sensor_action.cpp87 if (exponent.has_value()) in toString()
101 if (exponent.has_value()) in getExponentValue()
/openbmc/phosphor-bmc-code-mgmt/cpld/
H A Dcpld_software_manager.cpp28 if (!busNo.has_value() || !address.has_value() || !chipType.has_value() || in initDevice()
29 !chipName.has_value()) in initDevice()
57 if (!name.has_value() || !polarity.has_value()) in initDevice()
/openbmc/phosphor-networkd/src/
H A Dncsi_cmd.cpp260 if (!interface.has_value()) in parseGlobalOptions()
268 if (!package.has_value()) in parseGlobalOptions()
276 if (!mctp.has_value()) in parseGlobalOptions()
284 if (!chan.has_value()) in parseGlobalOptions()
300 if (interface.has_value() && mctp.has_value()) in parseGlobalOptions()
305 else if (interface.has_value()) in parseGlobalOptions()
309 else if (mctp.has_value()) in parseGlobalOptions()
323 if (!package.has_value()) in parseGlobalOptions()
414 if (!type.has_value() || *type > 0x80) in ncsiCommandRaw()
423 if (!tmp.has_value()) in ncsiCommandRaw()
[all …]
/openbmc/phosphor-bmc-code-mgmt/bios/
H A Dbios_software_manager.cpp32 if (!spiControllerIndex.has_value()) in initDevice()
42 if (!spiDeviceIndex.has_value()) in initDevice()
76 if (!name.has_value() || !polarity.has_value()) in initDevice()
/openbmc/phosphor-ipmi-blobs/test/
H A Dhelper.cpp23 EXPECT_TRUE(actualReply.has_value()); in validateReply()
24 if (!actualReply.has_value()) in validateReply()
/openbmc/google-ipmi-sys/test/
H A Dgoogle_accel_oob_unittest.cpp53 ASSERT_EQ(payload.has_value(), true); in TEST()
95 ASSERT_EQ(payload.has_value(), true); in TEST()
156 ASSERT_EQ(payload.has_value(), true); in TEST()
222 ASSERT_EQ(payload.has_value(), true); in TEST()
257 ASSERT_EQ(payload.has_value(), true); in TEST()
281 ASSERT_EQ(payload.has_value(), false); in TEST()
301 ASSERT_EQ(payload.has_value(), true); in TEST()
328 ASSERT_EQ(payload.has_value(), false); in TEST()
/openbmc/phosphor-user-manager/test/
H A Djson_serializer_test.cpp94 EXPECT_TRUE(leaf.has_value()); in TEST_F()
95 if (leaf.has_value()) in TEST_F()
101 EXPECT_FALSE(leaf.has_value()); in TEST_F()
/openbmc/phosphor-power/tools/power-utils/
H A Dutils.cpp102 if (i2cbus.has_value() && i2caddr.has_value()) in getPsuI2c()
109 if (!i2cbus.has_value() || !i2caddr.has_value()) in getPsuI2c()
/openbmc/phosphor-bmc-code-mgmt/i2c-vr/
H A Di2cvr_software_manager.cpp61 if (!busNum.has_value() || !address.has_value() || !vrChipType.has_value()) in initDevice()
/openbmc/phosphor-power/phosphor-regulators/src/
H A Dconfiguration.cpp53 if (volts.has_value()) in execute()
62 if (volts.has_value()) in execute()
/openbmc/entity-manager/src/fru_device/
H A Dfru_reader.cpp15 if (eof.has_value() && cursor >= eof.value()) in read()
56 if (eof.has_value() && (eof.value() / cacheBlockSize == blk)) in read()
/openbmc/openpower-debug-collector/dump/
H A Ddump_collect_main.cpp56 !failingUnit.has_value()) in main()
73 if (failingUnit.has_value()) in main()
/openbmc/phosphor-power/phosphor-regulators/test/actions/
H A Daction_environment_tests.cpp62 EXPECT_EQ(env.getVolts().has_value(), false); in TEST()
286 EXPECT_EQ(env.getVolts().has_value(), false); in TEST()
288 EXPECT_EQ(env.getVolts().has_value(), true); in TEST()
346 EXPECT_EQ(env.getVolts().has_value(), false); in TEST()
348 EXPECT_EQ(env.getVolts().has_value(), true); in TEST()
H A Dpmbus_write_vout_command_action_tests.cpp56 EXPECT_EQ(action.getVolts().has_value(), true); in TEST()
59 EXPECT_EQ(action.getExponent().has_value(), true); in TEST()
76 EXPECT_EQ(action.getVolts().has_value(), false); in TEST()
78 EXPECT_EQ(action.getExponent().has_value(), false); in TEST()
582 EXPECT_EQ(action.getExponent().has_value(), true); in TEST()
590 EXPECT_EQ(action.getExponent().has_value(), false); in TEST()
614 EXPECT_EQ(action.getVolts().has_value(), true); in TEST()
622 EXPECT_EQ(action.getVolts().has_value(), false); in TEST()
/openbmc/phosphor-led-sysfs/interfaces/
H A Dinternal_interface.cpp41 if (ledDescr.devicename.has_value()) in getDbusName()
45 if (ledDescr.function.has_value()) in getDbusName()
50 if (ledDescr.color.has_value()) in getDbusName()
/openbmc/phosphor-bmc-code-mgmt/tpm/
H A Dtpm_software_manager.cpp31 if (!tpmIndex.has_value()) in initDevice()
40 if (!type.has_value()) in initDevice()
/openbmc/pldm/libpldmresponder/
H A Dbios_string_attribute.cpp68 if (!dBusMap.has_value()) in setAttrValueOnDbus()
80 if (!dBusMap.has_value()) in getAttrValue()
117 if (optAttributeValue.has_value()) in constructEntry()
H A Dbios_enum_attribute.cpp42 if (dBusMap.has_value()) in BIOSEnumAttribute()
134 if (!dBusMap.has_value()) in getAttrValueIndex()
175 if (!dBusMap.has_value()) in setAttrValueOnDbus()
228 if (optAttributeValue.has_value()) in constructEntry()
H A Dbios_integer_attribute.cpp53 if (!dBusMap.has_value()) in setAttrValueOnDbus()
122 if (optAttributeValue.has_value()) in constructEntry()
189 if (!dBusMap.has_value()) in getAttrValue()
/openbmc/phosphor-networkd/test/
H A Dtest_config_parser.cpp37 EXPECT_FALSE(parseBool("tru").has_value()); in TEST()
40 EXPECT_FALSE(parseBool("ye").has_value()); in TEST()
45 EXPECT_FALSE(parseBool("fal").has_value()); in TEST()
/openbmc/estoraged/src/test/
H A Dutil_test.cpp137 EXPECT_TRUE(result.has_value()); in TEST()
195 EXPECT_TRUE(result.has_value()); in TEST()
242 EXPECT_FALSE(result.has_value()); in TEST()
281 EXPECT_FALSE(result.has_value()); in TEST()
313 EXPECT_FALSE(result.has_value()); in TEST()
/openbmc/sdeventplus/src/sdeventplus/utility/
H A Dtimer.cpp32 setEnabled(interval.has_value()); in Timer()
146 setEnabled(userdata->interval.has_value()); in restart()
193 initialized(interval.has_value()), callback(std::move(callback)), in TimerData()

12345