Home
last modified time | relevance | path

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

1234

/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-networkd/src/
H A Dncsi_cmd.cpp251 if (!interface.has_value()) in toHexStr()
259 if (!package.has_value()) in toHexStr()
267 if (!mctp.has_value()) in ncsiCommand()
275 if (!chan.has_value()) in ncsiCommand()
289 if (interface.has_value() && mctp.has_value()) in ncsiCommandRaw()
294 else if (interface.has_value()) in ncsiCommandRaw()
298 else if (mctp.has_value()) in ncsiCommandRaw()
310 if (!package.has_value()) in ncsiCommandRaw()
384 if (!type.has_value() || *typ in main()
[all...]
/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/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-ipmi-blobs/test/
H A Dhelper.cpp23 EXPECT_TRUE(actualReply.has_value()); in validateReply()
24 if (!actualReply.has_value()) in validateReply()
/openbmc/phosphor-power/tools/power-utils/
H A Dutils.cpp106 if (i2cbus.has_value() && i2caddr.has_value()) in getPsuI2c()
113 if (!i2cbus.has_value() || !i2caddr.has_value()) in getPsuI2c()
/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-power/phosphor-regulators/src/
H A Dconfiguration.cpp53 if (volts.has_value()) in execute()
62 if (volts.has_value()) in execute()
/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()
H A Dplatform_config.cpp46 if (sysType.has_value()) in systemCompatibleCallback()
113 if (sysType.has_value()) in getPlatformName()
/openbmc/entity-manager/src/
H A Dfru_reader.cpp28 if (eof.has_value() && cursor >= eof.value()) in read()
69 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/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/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/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()
/openbmc/phosphor-power/phosphor-power-sequencer/test/
H A Drail_tests.cpp72 EXPECT_FALSE(rail.getPresence().has_value()); in TEST()
73 EXPECT_FALSE(rail.getPage().has_value()); in TEST()
77 EXPECT_FALSE(rail.getGPIO().has_value()); in TEST()
99 EXPECT_TRUE(rail.getPresence().has_value()); in TEST()
103 EXPECT_TRUE(rail.getPage().has_value()); in TEST()
108 EXPECT_TRUE(rail.getGPIO().has_value()); in TEST()
181 EXPECT_FALSE(rail.getPresence().has_value()); in TEST()
195 EXPECT_TRUE(rail.getPresence().has_value()); in TEST()
221 EXPECT_FALSE(rail.getPage().has_value()); in TEST()
234 EXPECT_TRUE(rail.getPage().has_value()); in TEST()
[all …]
H A Dconfig_file_parser_tests.cpp494 EXPECT_FALSE(rail->getPresence().has_value()); in TEST()
495 EXPECT_FALSE(rail->getPage().has_value()); in TEST()
499 EXPECT_FALSE(rail->getGPIO().has_value()); in TEST()
517 EXPECT_TRUE(rail->getPresence().has_value()); in TEST()
520 EXPECT_TRUE(rail->getPage().has_value()); in TEST()
525 EXPECT_TRUE(rail->getGPIO().has_value()); in TEST()
/openbmc/phosphor-dbus-monitor/src/test/
H A Dpropertywatchtest.cpp119 ASSERT_EQ(value.has_value(), true); in nonFilteredCheck()
237 ASSERT_EQ(value.has_value(), FilteredValues<T>::expected(ndx).has_value()); in filteredCheck()
238 if (value.has_value()) in filteredCheck()
/openbmc/phosphor-bmc-code-mgmt/test/create_package/
H A Dfirmware_device_id_area.cpp70 if (optVendorIANA.has_value()) in create_pldm_firmware_device_descriptors_v1_0_0()
84 if (optCompatible.has_value()) in create_pldm_firmware_device_descriptors_v1_0_0()
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/system/core/
H A Dstub-out-fastdeploy.patch30 - if (metadata.has_value()) {
45 - if (metadata.has_value()) {

1234