Home
last modified time | relevance | path

Searched refs:scaledVal (Results 1 – 2 of 2) sorted by relevance

/openbmc/intel-ipmi-oem/tests/
H A Dtest_sensorcommands.cpp318 uint8_t scaledVal; in TEST() local
332 scaledVal = ipmi::scaleIPMIValueFromDouble(0x50, mValue, rExp, bValue, bExp, in TEST()
334 EXPECT_NEAR(scaledVal, expected, expected * 0.01); in TEST()
355 scaledVal = ipmi::scaleIPMIValueFromDouble(-20, mValue, rExp, bValue, bExp, in TEST()
357 EXPECT_NEAR(scaledVal, expected, expected * 0.01); in TEST()
390 scaledVal = ipmi::scaleIPMIValueFromDouble(12.2, mValue, rExp, bValue, bExp, in TEST()
394 EXPECT_NEAR(scaledVal, expected, expected * 0.01); in TEST()
432 scaledVal = in TEST()
436 EXPECT_NEAR(scaledVal, expected, expected * 0.01); in TEST()
450 scaledVal = ipmi::scaleIPMIValueFromDouble(maxValue, mValue, rExp, bValue, in TEST()
[all …]
/openbmc/phosphor-host-ipmid/test/dbus-sdr/
H A Dsensorcommands_unittest.cpp319 uint8_t scaledVal; in TEST() local
333 scaledVal = ipmi::scaleIPMIValueFromDouble(0x50, mValue, rExp, bValue, bExp, in TEST()
335 EXPECT_NEAR(scaledVal, expected, expected * 0.01); in TEST()
356 scaledVal = ipmi::scaleIPMIValueFromDouble(-20, mValue, rExp, bValue, bExp, in TEST()
358 EXPECT_NEAR(scaledVal, expected, expected * 0.01); in TEST()
391 scaledVal = ipmi::scaleIPMIValueFromDouble(12.2, mValue, rExp, bValue, bExp, in TEST()
395 EXPECT_NEAR(scaledVal, expected, expected * 0.01); in TEST()
433 scaledVal = in TEST()
437 EXPECT_NEAR(scaledVal, expected, expected * 0.01); in TEST()
451 scaledVal = ipmi::scaleIPMIValueFromDouble(maxValue, mValue, rExp, bValue, in TEST()
[all …]