Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-1403

CalculateAbsUsedCapacity: overflow unit tests

    XMLWordPrintableJSON

Details

    Description

      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:

      // protect against negative integer overflow
      if absResValue > 0 && div < 0 {
      

      Attachments

        Activity

          People

            simon1000010 Simon Blessenohl
            wilfreds Wilfred Spiegelenburg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: