Package net.sourceforge.cobertura.coveragedata

Examples of net.sourceforge.cobertura.coveragedata.ClassData.touch()


            }
            int diffHits = (int) (afterHits - prevHits);
            result.addLine(lld.getLineNumber(), lld.getMethodName(),
                    lld.getMethodDescriptor());
            if (diffHits > 0) {
                result.touch(lld.getLineNumber(), diffHits);
            }
            if (diffHits < 0) {
                errors.add("Coverage decreased on line " + lld.getLineNumber()
                        + " of " + larger.getName());
            }
View Full Code Here


        if (cd == null) {
            cd = new ClassData(className);
            data.addClassData(cd);
        }
        for (int i = 0; i < numberOfLinesToTouch; i++) {
            cd.touch(i, 1);
        }
    }

    void touchAJump(ProjectData data, String className, int lineNumber,
            boolean whichBranch) {
View Full Code Here

        if (cd == null) {
            cd = new ClassData(className);
            data.addClassData(cd);
        }
        for (int i = 0; i < numberOfLinesToTouch; i++) {
            cd.touch(i, 1);
        }
    }

    ProjectData buildBaseProjectData() {
        ProjectData data = new ProjectData();
View Full Code Here

        getLogger().debug("ignoring " + file + " from touch");
      } else {
          ClassData classData = this.coverageProjectData.getOrCreateClassData( ApparatUtil.toClassname( file ) );
          for ( Integer touch : touchs )
          {
              classData.touch( touch, 1 );
          }
      }
    }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.