Wilfred Spiegelenburg created YUNIKORN-1403:
-----------------------------------------------
Summary: CalculateAbsUsedCapacity: overflow unit tests
Key: YUNIKORN-1403
URL: https://issues.apache.org/jira/browse/YUNIKORN-1403
Project: Apache YuniKorn
Issue Type: Improvement
Components: core - common, test - unit
Reporter: Wilfred Spiegelenburg
CalculateAbsUsedCapacity is guarded against positive and negative overflow. The
postive case is unit tested. The negative case is not unit tested.
Need to add a test case for te negative side:
{code}
// protect against negative integer overflow
if absResValue > 0 && div < 0 {
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]