Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-493

Hit counts that are greater than the maximum value of an integer need to be accounted for

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.5
    • 2.4.3
    • Database
    • None

    Description

      when statements in java code are executed
      more than maximum value of integer number(2^31 - 1 = 2147483647). Under such
      condition, coverage data overflows and represented as negative number. This
      causes following behavior:

      1) Statements and branches that have negative coverage data are not counted
      as executed by clover 2.4.2. On the other hand, these are counted as executed
      by clover 1.3.14. It makes a difference both of statement coverage and branch
      coverage.

      2) Branches that have negative coverage data, clover 2.4.2 indicates sum of
      conditionals that evaluated to "true" and "false" on HTML report. On the
      other hand, clover 1.3.14 indicates statement coverage on HTML data under
      same condition. It makes a difference between them on HTML report.

      That is why we need clover 1.x compatible option for clover 2.x HTML report
      output.

      Attachments

        Activity

          People

            npellow Nick
            pkamal Partha
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: