Class DefaultCoverage

    • Constructor Detail

      • DefaultCoverage

        public DefaultCoverage()
      • DefaultCoverage

        public DefaultCoverage​(@Nullable
                               SensorStorage storage)
    • Method Detail

      • lineHits

        public NewCoverage lineHits​(int line,
                                    int hits)
        Description copied from interface: NewCoverage
        Call this method as many time as needed to report coverage hits per line. This method should only be called for executable lines.
        Specified by:
        lineHits in interface NewCoverage
        Parameters:
        line - Line number (starts at 1).
        hits - Number of time the line was hit.
      • conditions

        public NewCoverage conditions​(int line,
                                      int conditions,
                                      int coveredConditions)
        Description copied from interface: NewCoverage
        Call this method as many time as needed to report coverage of conditions.
        Specified by:
        conditions in interface NewCoverage
        Parameters:
        line - Line number (starts at 1).
        conditions - Number of conditions on this line (should be greater than 1).
        coveredConditions - Number of covered conditions.
      • coveredLines

        public int coveredLines()
      • linesToCover

        public int linesToCover()
      • conditions

        public int conditions()
      • coveredConditions

        public int coveredConditions()
      • hitsByLine

        public java.util.SortedMap<java.lang.Integer,​java.lang.Integer> hitsByLine()
      • conditionsByLine

        public java.util.SortedMap<java.lang.Integer,​java.lang.Integer> conditionsByLine()
      • coveredConditionsByLine

        public java.util.SortedMap<java.lang.Integer,​java.lang.Integer> coveredConditionsByLine()