Examples of touchSwitch()


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

                        }
                    }
                    for (int j = 0; j < prevBranchHits.length; j++) {
                        long diffBranchHits = lsd.getHits(j)
                                - prevBranchHits[j];
                        result.touchSwitch(lld.getLineNumber(), i, j,
                                (int) diffBranchHits);
                        if (diffBranchHits < 0) {
                            errors.add("Switch coverage " + i + "," + j
                                    + " on line " + lld.getLineNumber()
                                    + " decreased.");
View Full Code Here

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

                        }
                    }
                    long diffDefaultHits = lsd.getDefaultHits()
                            - prevDefaultHits;
                    if (diffDefaultHits > 0) {
                        result.touchSwitch(lld.getLineNumber(), i, -1,
                                (int) diffDefaultHits);
                    }
                    if (diffDefaultHits < 0) {
                        errors.add("Switch coverage " + i + ",default on line "
                                + lld.getLineNumber() + " decreased.");
View Full Code Here

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

    }

    void touchASwitch(ProjectData data, String className, int lineNumber,
            int switchNumber) {
        ClassData cd = data.getClassData(className);
        cd.touchSwitch(lineNumber, 0, switchNumber, 1);
    }

    ProjectData buildBaseProjectData() {
        ProjectData data = new ProjectData();
        addSomeStuff(data, "foo", 3);
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.