public Entry getLineStats()

in report-builder/src/jetbrains/coverage/report/idea/IDEACoverageClassInfo.java [65:81]


  public Entry getLineStats() {
    int total = 0;
    int covered = 0;
    if (myClassData == null) return null;

    LineData[] lines = (LineData[]) myClassData.getLines();
    if (lines == null) return null;

    for (LineData ld: lines) {
      if (ld == null) continue; // if ld is null the line is not executable
      total++;
      if (isCovered(ld.getStatus())) {
        covered++;
      }
    }
    return new Entry(total, covered);
  }