public BranchData getBranchData()

in src/com/intellij/rt/coverage/data/LineData.java [204:229]


  public BranchData getBranchData() {
    if (myJumpsAndSwitches == null) return null;
    int total = 0;
    int covered = 0;

    JumpData[] jumps = myJumpsAndSwitches.getJumps();
    if (jumps != null) {
      for (JumpData jump : jumps) {
        total += 2;
        if (jump.getFalseHits() > 0) covered++;
        if (jump.getTrueHits() > 0) covered++;
      }
    }

    SwitchData[] switches = myJumpsAndSwitches.getSwitches();
    if (switches != null) {
      for (SwitchData switchData : switches) {
        for (int hit : switchData.getHits()) {
          total++;
          if (hit > 0) covered++;
        }
      }
    }

    return new BranchData(total, covered);
  }